Index: Source/modules/accessibility/AXNodeObject.cpp |
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp |
index 5fb48fb68fe299f641808123f5c0c9ba45970c6f..c074372d55ff058355f1228540f0e0ccbde4265b 100644 |
--- a/Source/modules/accessibility/AXNodeObject.cpp |
+++ b/Source/modules/accessibility/AXNodeObject.cpp |
@@ -1047,7 +1047,7 @@ bool AXNodeObject::isReadOnly() const |
bool AXNodeObject::isRequired() const |
{ |
Node* n = this->node(); |
- if (n && (n->isElementNode() && toElement(n)->isFormControlElement())) |
+ if (n && (n->isElementNode() && toElement(n)->isFormControlElement()) && hasAttribute(requiredAttr)) |
return toHTMLFormControlElement(n)->isRequired(); |
if (equalIgnoringCase(getAttribute(aria_requiredAttr), "true")) |