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
data-date-forma
Magnus Mülleracac902a878e
diff --git a/browser_use/dom/serializer/serializer.py b/browser_use/dom/serializer/serializer.pyindex c41747aee..4b9d45ce3 100644--- a/browser_use/dom/serializer/serializer.py+++ b/browser_use/dom/serializer/serializer.py@@ -1027,7 +1027,7 @@ class DOMTreeSerializer:# Default to common US format for jQuery datepickersattributes_to_include['placeholder'] = 'mm/dd/yyyy'# Also detect by data-* attributes- elif any(attr in node.attributes for attr in ['data-datepicker', 'data-provide']):+ elif any(attr in node.attributes for attr in ['data-datepicker']):date_format = node.attributes.get('data-date-format', '')if date_format:attributes_to_include['placeholder'] = date_formatdiff --git a/browser_use/dom/views.py b/browser_use/dom/views.pyindex 1bbec4cfa..3fc4b8552 100644--- a/browser_use/dom/views.py+++ b/browser_use/dom/views.py@@ -50,7 +50,6 @@ DEFAULT_INCLUDE_ATTRIBUTES = ['data-mask', # Input mask format (e.g., phone numbers, credit cards)'data-inputmask', # Alternative input mask attribute'data-datepicker', # jQuery datepicker indicator- 'data-date-format', # Date format hint for datepickers'contenteditable', # Rich text editor detection# Webkit shadow DOM identifiers'pseudo',