Changeset 148654 in webkit
- Timestamp:
- Apr 17, 2013 6:11:32 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r148652 r148654 1 2013-04-17 James Craig <james@cookiecrook.com> 2 3 AX: aria-level does not override implicit level on h1, h2, etc 4 https://bugs.webkit.org/show_bug.cgi?id=114692 5 6 Reviewed by Chris Fleizach. 7 8 aria-level now works on headings without an explicit role="heading" defined. Updated existing test coverage. 9 10 * accessibility/heading-level-expected.txt: 11 * accessibility/heading-level.html: 12 1 13 2013-04-17 Chris Fleizach <cfleizach@apple.com> 2 14 -
trunk/LayoutTests/accessibility/heading-level-expected.txt
r139534 r148654 22 22 PASS: level is 5. 23 23 PASS: level is 6. 24 PASS: level is 1. 25 PASS: level is 2. 26 PASS: level is 3. 27 PASS: level is 4. 28 PASS: level is 5. 29 PASS: level is 6. 24 30 PASS successfullyParsed is true 25 31 -
trunk/LayoutTests/accessibility/heading-level.html
r139534 r148654 12 12 <h6 class="ex" data-expected="6">X</h6> 13 13 14 <!-- explicit aria-level overrides on h1-h6 (withOUT explicit heading role declaration) does not work in current WebKit. --> 15 <!-- Waiting on thread resolution to determine if it's a bug: http://lists.w3.org/Archives/Public/wai-xtech/2013Jan/0019.html --> 16 <!-- 14 <!-- explicit aria-level overrides on h1-h6 (withOUT explicit heading role declaration) --> 17 15 <h6 class="ex" data-expected="1" aria-level="1">X</h6> 18 16 <h5 class="ex" data-expected="2" aria-level="2">X</h5> … … 21 19 <h2 class="ex" data-expected="5" aria-level="5">X</h2> 22 20 <h1 class="ex" data-expected="6" aria-level="6">X</h1> 23 -->24 21 25 22 <!-- explicit aria-level overrides on h1-h6 (with explicit heading role declaration) --> -
trunk/Source/WebCore/ChangeLog
r148652 r148654 1 2013-04-17 James Craig <james@cookiecrook.com> 2 3 AX: aria-level does not override implicit level on h1, h2, etc 4 https://bugs.webkit.org/show_bug.cgi?id=114692 5 6 Reviewed by Chris Fleizach. 7 8 aria-level now works on headings without an explicit role="heading" defined. Updated existing test coverage. 9 10 * accessibility/AccessibilityNodeObject.cpp: 11 (WebCore::AccessibilityNodeObject::headingLevel): 12 1 13 2013-04-17 Chris Fleizach <cfleizach@apple.com> 2 14 -
trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
r148652 r148654 717 717 return false; 718 718 719 if (ariaRoleAttribute() == HeadingRole) 720 return getAttribute(aria_levelAttr).toInt(); 719 if (isHeading()) { 720 int ariaLevel = getAttribute(aria_levelAttr).toInt(); 721 if (ariaLevel > 0) 722 return ariaLevel; 723 } 721 724 722 725 if (node->hasTagName(h1Tag))
Note: See TracChangeset
for help on using the changeset viewer.