Index: Source/modules/accessibility/AXNodeObject.cpp |
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp |
index 09883e6104ac1c15b031829f0539f4cc86626894..6b9bf8b09f5030ffa6a3f2ed4c3f37b3541cedfc 100644 |
--- a/Source/modules/accessibility/AXNodeObject.cpp |
+++ b/Source/modules/accessibility/AXNodeObject.cpp |
@@ -799,13 +799,13 @@ bool AXNodeObject::isReadOnly() const |
bool AXNodeObject::isRequired() const |
{ |
- if (equalIgnoringCase(getAttribute(aria_requiredAttr), "true")) |
- return true; |
- |
Node* n = this->node(); |
if (n && (n->isElementNode() && toElement(n)->isFormControlElement())) |
return toHTMLFormControlElement(n)->isRequired(); |
+ if (equalIgnoringCase(getAttribute(aria_requiredAttr), "true")) |
+ return true; |
+ |
return false; |
} |