Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: Source/core/accessibility/AXNodeObject.cpp

Issue 631183002: Fixing mapping conflicts for required html attribute and aria-required (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index f90ad0135b5ef1208f51cc0f546e02e4fbe81d61..a4dc7b8565dc39abcd7aa2b1360c649762d2b68e 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -746,13 +746,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"))
shreeramk 2014/12/05 07:32:54 Spec says http://w3c.github.io/aria/aria/aria.html
+ return true;
+
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698