Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Update browser_use/dom/serializer/serializer.py
Magnus Müllercfeef1d03190
diff --git a/browser_use/dom/serializer/serializer.py b/browser_use/dom/serializer/serializer.pyindex 3d2f7e90a..b1d575f3b 100644--- a/browser_use/dom/serializer/serializer.py+++ b/browser_use/dom/serializer/serializer.py@@ -990,7 +990,7 @@ class DOMTreeSerializer:if node.tag_name and node.tag_name.lower() == 'input' and node.attributes:input_type = node.attributes.get('type', '').lower()# Only add placeholder if it doesn't already exist- if 'placeholder' not in attributes_to_include:+ if 'placeholder' in include_attributes and 'placeholder' not in attributes_to_include:# Native HTML5 date/time inputs - ISO format requiredif input_type == 'date':attributes_to_include['placeholder'] = 'YYYY-MM-DD'