haikuwebkit/LayoutTests/accessibility/roles-computedRoleString.html

360 lines
24 KiB
HTML
Raw Permalink Normal View History

Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!DOCTYPE HTML>
<html>
<body>
<script src="../resources/js-test-pre.js"></script>
<!-- ==================================================================================================== -->
<!-- HTML elements in alphabetical order, excepting the need for nesting (e.g. <li> is with its <ol> and <ul> parents) -->
<!-- This only tests elements that have an exact 1:1 ARIA role mapping, and computed role overrides. -->
<!-- ==================================================================================================== -->
<div id="content">
<a data-role="link" href="#" data-note="[href]" data-platform="atk,mac" class="ex">X</a>
<article data-role="article" data-platform="atk,mac" class="ex">X</article>
<aside data-role="complementary" data-platform="atk,mac" class="ex">X</aside>
<button data-role="button" data-platform="atk,mac" class="ex">X</button>
<del data-role="deletion" data-platform="atk,mac" class="ex">X</ins>
<dfn data-role="definition" data-platform="atk,mac" class="ex">X</dfn>
<dl data-role="" data-platform="atk,mac" class="ex">
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<dt>X</dt>
<dd>X</dd>
</dl>
AX: <footer> HTML5 tag not reading as ARIA Landmark to VoiceOver https://bugs.webkit.org/show_bug.cgi?id=190138 <rdar://problem/44907695> Reviewed by Joanmarie Diggs. Source/WebCore: Make sure that footer elements use the right role depending on their context. If scoped to body, they become contentinfo. Otherwise they are just delineated by a footer subrole. * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::isLandmark const): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const): (WebCore::AccessibilityRenderObject::isDescendantOfElementType const): (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/AccessibilityRenderObject.h: * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityIsLandmarkRole:]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper subrole]): LayoutTests: * accessibility/mac/footer-expected.txt: * accessibility/mac/footer-roledescription-expected.txt: * accessibility/mac/footer-roledescription.html: * accessibility/mac/footer.html: * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/209375@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-02-25 19:15:23 +00:00
<footer data-role="contentinfo" data-platform="atk,mac" class="ex">X</footer>
<form data-role="form" data-platform="atk,mac" class="ex">X</form>
<header data-role="banner" data-platform="atk,mac" class="ex">X</header>
<h1 data-role="heading" data-platform="atk,mac" class="ex">X</h1>
<h2 data-role="heading" data-platform="atk,mac" class="ex">X</h2>
<h3 data-role="heading" data-platform="atk,mac" class="ex">X</h3>
<h4 data-role="heading" data-platform="atk,mac" class="ex">X</h4>
<h5 data-role="heading" data-platform="atk,mac" class="ex">X</h5>
<h5 data-role="heading" data-platform="atk,mac" class="ex">X</h6>
<hr data-role="separator" data-platform="atk,mac" class="ex">
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
<img data-role="image" data-platform="atk,mac" class="ex" data-note=":not([src]):not([alt])">
<img data-role="" data-platform="atk,mac" class="ex" alt="" data-note="[alt='']">
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
<img data-role="image" data-platform="atk,mac" class="ex" src="foo.png" data-note="[src]:not([alt])">
<img data-role="image" data-platform="atk,mac" class="ex" alt="X" data-note="[alt='X']">
<input type="button" value="X" data-role="button" data-platform="atk,mac" class="ex" data-note="[type='button']">
<input type="checkbox" data-role="checkbox" data-platform="atk,mac" class="ex" data-note="[type='checkbox']">
<input type="date" data-role=""data-platform="atk,mac" class="ex" data-note="[type='date']">
<input type="datetime" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='datetime']">
<input type="datetime-local" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='datetime-local']">
<input type="email" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='email']">
<input type="file" data-role="button" data-platform="atk,mac" class="ex" data-note="[type='file']">
<input type="hidden" data-role="" data-platform="atk,mac" class="ex" data-note="[type='hidden']">
<input type="image" data-role="button" data-platform="atk,mac" class="ex" data-note="[type='image']">
<input type="month" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='month']">
<input type="number" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='number']">
<input type="password" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='password']">
<input type="radio" data-role="radio" data-platform="atk,mac" class="ex" data-note="[type='radio']">
<input type="range" data-role="slider" data-platform="atk,mac" class="ex" data-note="[type='range']">
<input type="reset" data-role="button" data-platform="atk,mac" class="ex" data-note="[type='reset']">
<input type="search" value="X" data-role="searchbox" data-platform="atk,mac" class="ex" data-note="[type='search']">
<input type="submit" data-role="button" data-platform="atk,mac" class="ex" data-note="[type='submit']">
<input type="tel" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='tel']">
<input type="text" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='text']">
<input type="time" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='time']">
<input type="url" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='url']">
<input type="week" value="X" data-role="" data-platform="atk,mac" class="ex" data-note="[type='week']">
AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time https://bugs.webkit.org/show_bug.cgi?id=199692 Reviewed by Chris Fleizach. Source/WebCore: Create new AccessibilityRole types which correspond to the new ARIA roles and update AccessibilityRenderObject::determineAccessibilityRole() to assign these internal roles to the related HTML elements. Update both ATK and Mac to recognize these new internal roles. In addition, update the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via the AtkObject xml-roles attribute so that this information is not completely absent for GTK or WPE built against earlier versions of ATK. Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup(). These two methods were only being used by ATK and are no longer needed for platform role mapping. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted. (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): Tools: Add support for output of AXDeletion and AXInsertion roles for tests. Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2 which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * gtk/jhbuild.modules: * wpe/jhbuild.modules: LayoutTests: Add the new roles to the existing role-exposure tests and update expectations accordingly. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/object-attributes.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: * platform/wpe/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/213585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-11 13:36:50 +00:00
<ins data-role="insertion" data-platform="atk,mac" class="ex">X</ins>
<mark data-role="" data-platform="atk,mac" class="ex">X</mark>
<math data-role="math" data-platform="atk,mac" class="ex">X</math>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- skipped <menu> -->
<!-- skipped <meta> -->
2019-03-20 13:09:02 +00:00
<!-- renable for atk after http://webkit.org/b/163383 fixed --><meter data-role="meter" data-platform="mac" class="ex" value="0.75">X</meter>
<nav data-role="navigation" data-platform="atk,mac" class="ex">X</nav>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- skipped <noscript> -->
<!-- skipped <object> -->
<ol data-role="list" data-platform="atk,mac" class="ex">
<li data-role="listitem" data-platform="atk,mac" class="ex">X</li>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</ol>
<!-- skipped <optgroup> -->
<!-- skipped <option> -->
<!-- skipped <output> -->
AX: Implement support for new blockquote, caption, and paragraph ARIA roles https://bugs.webkit.org/show_bug.cgi?id=186274 Reviewed by Chris Fleizach. Source/WebCore: Add the three new ARIA roles to the internal rolemap so that they are treated in the same fashion as their HTML element counterparts. Also ensure that an element with an explicit caption role does not get pruned from the macOS accessibility tree. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject const): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Add the three ARIA roles to the existing role-exposure tests and update expectations accordingly. Also update several additional GTK tests because the mapping of these ARIA roles results in new object attributes appearing for native HTML blockquote, paragraph, and caption elements. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * inspector/dom/hideHighlight-expected.txt: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/gtk/accessibility/table-one-cell-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/201689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-05 15:55:06 +00:00
<p data-role="paragraph" data-platform="atk,mac" class="ex">X</p>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- skipped <param> -->
<pre data-role="" data-platform="atk,mac" class="ex">X</pre>
<progress data-role="progressbar" data-platform="atk,mac" class="ex" value="0.75">X</progress>
<q data-role="" data-platform="atk,mac" class="ex">X</q>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- skipped <ruby/rp/rt> -->
<s data-role="" data-platform="atk,mac" class="ex">X</s>
<samp data-role="" data-platform="atk,mac" class="ex">X</samp>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- skipped <script> -->
<section data-role="" data-platform="atk,mac" class="ex" data-note=":not([aria-label]:not([aria-labelledby])">X</section>
<section data-role="region" data-platform="atk,mac" class="ex" aria-label="x" data-note="[aria-label]">X</section>
<section data-role="region" data-platform="atk,mac" class="ex" aria-labelledby="section-label" data-note="[aria-labelledby]">
AX: ARIA 'region' role is now a landmark; HTML 'section' element should be a landmark only if named https://bugs.webkit.org/show_bug.cgi?id=157331 Reviewed by Chris Fleizach. Source/WebCore: The 'region' role is now mapped as a landmark: The WebCore DocumentRegionRole AccessibilityRole has been renamed to LandmarkRegionRole. The AXDocumentRegion subrole has been renamed to AXLandmarkRegion. A 'section' element is mapped to the LandmarkRegionRole if it has an author-provided accessible name via either the aria-label or aria-labelledby attribute. Otherwise, it is mapped as GroupRole with no subrole. Our existing test coverage for exposure of the 'region' role and the 'section' element is sufficient. These tests were updated to reflect the new behavior. Several new test cases were added to cover both sections with accessible names and those without. * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::accessibleNameDerivesFromContent): (WebCore::AccessibilityObject::isLandmark): (WebCore::initializeRoleMap): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored): (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityIsLandmarkRole:]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (-[WebAccessibilityObjectWrapperBase ariaLandmarkRoleDescription]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): * platform/LocalizedStrings.cpp: (WebCore::AXARIAContentGroupText): Source/WebKit/win: As part of this change, the WebCore DocumentRegionRole AccessibilityRole has been renamed to LandmarkRegionRole. Update MSAARole() to use the new name. * AccessibleBase.cpp: (MSAARole): Tools: Add AXLandmarkRegion to the landmark strings handled by roleToString for objects with ATK_ROLE_LANDMARK. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: LayoutTests: Our existing test coverage for exposure of the 'region' role and the 'section' element is sufficient. These tests were updated to reflect the new behavior. Several new test cases were added to cover both sections with accessible names and those without. * accessibility/gtk/xml-roles-exposed-expected.txt: Updated. * accessibility/mac/aria-grouping-roles-expected.txt: Updated. * accessibility/mac/aria-grouping-roles.html: Updated. * accessibility/mac/html-section-elements-expected.txt: Updated. * accessibility/mac/html-section-elements.html: Updated. * accessibility/mac/landmark-not-ignored-expected.txt: Updated. * accessibility/mac/landmark-not-ignored.html: Updated. * accessibility/roles-computedRoleString-expected.txt: Updated. * accessibility/roles-computedRoleString.html: New test cases added. * accessibility/roles-exposed.html: New test cases added. * platform/efl/accessibility/roles-exposed-expected.txt: Updated. * platform/gtk/accessibility/roles-computedRoleString-expected.txt: Updated. * platform/gtk/accessibility/roles-exposed-expected.txt: Updated. * platform/mac-mavericks/accessibility/roles-exposed-expected.txt: Updated. * platform/mac/accessibility/roles-exposed-expected.txt: Updated. * platform/win/accessibility/roles-exposed-expected.txt: Updated. Canonical link: https://commits.webkit.org/175448@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-05-04 12:54:59 +00:00
<h2 id="section-label">X</h2>
</section>
<select data-role="button" data-platform="atk,mac" class="ex" data-note=":not([multiple])">
<option data-role="" data-platform="atk,mac" class="ex">X</option>
<optgroup data-role="" data-platform="atk,mac" class="ex" label="more">
<option data-role="" data-platform="atk,mac" class="ex">X</option>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</optgroup>
</select>
<select data-role="listbox" data-platform="atk,mac" class="ex" multiple data-note="[multiple]">
<option data-role="option" data-platform="atk,mac" class="ex">X</option>
<optgroup data-role="option" data-platform="atk,mac" class="ex" label="more">
<option data-role="option" data-platform="atk,mac" class="ex">Y</option>
<option data-role="option" data-platform="atk,mac" class="ex">Z</option>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</optgroup>
</select>
<small data-role="" data-platform="atk,mac" class="ex">X</small>
<span data-role="" data-platform="atk,mac" class="ex">X</span>
<strong data-role="" data-platform="atk,mac" class="ex">X</strong>
AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time https://bugs.webkit.org/show_bug.cgi?id=199692 Reviewed by Chris Fleizach. Source/WebCore: Create new AccessibilityRole types which correspond to the new ARIA roles and update AccessibilityRenderObject::determineAccessibilityRole() to assign these internal roles to the related HTML elements. Update both ATK and Mac to recognize these new internal roles. In addition, update the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via the AtkObject xml-roles attribute so that this information is not completely absent for GTK or WPE built against earlier versions of ATK. Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup(). These two methods were only being used by ATK and are no longer needed for platform role mapping. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted. (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): Tools: Add support for output of AXDeletion and AXInsertion roles for tests. Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2 which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * gtk/jhbuild.modules: * wpe/jhbuild.modules: LayoutTests: Add the new roles to the existing role-exposure tests and update expectations accordingly. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/object-attributes.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: * platform/wpe/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/213585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-11 13:36:50 +00:00
<sub data-role="subscript" data-platform="atk,mac" class="ex">X</sub>
<sup data-role="superscript" data-platform="atk,mac" class="ex">X</sup>
<svg data-role="" data-platform="atk,mac" class="ex">X</svg>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<table data-role="table" data-platform="atk,mac" class="ex">
AX: Implement support for new blockquote, caption, and paragraph ARIA roles https://bugs.webkit.org/show_bug.cgi?id=186274 Reviewed by Chris Fleizach. Source/WebCore: Add the three new ARIA roles to the internal rolemap so that they are treated in the same fashion as their HTML element counterparts. Also ensure that an element with an explicit caption role does not get pruned from the macOS accessibility tree. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject const): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Add the three ARIA roles to the existing role-exposure tests and update expectations accordingly. Also update several additional GTK tests because the mapping of these ARIA roles results in new object attributes appearing for native HTML blockquote, paragraph, and caption elements. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * inspector/dom/hideHighlight-expected.txt: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/gtk/accessibility/table-one-cell-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/201689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-05 15:55:06 +00:00
<caption data-role="caption" data-platform="atk,mac" class="ex">X</caption>
<thead data-role="rowgroup" data-platform="atk,mac" class="ex">
<tr data-role="row" data-platform="atk,mac" class="ex">
<th data-role="columnheader" data-platform="atk,mac" class="ex">X</th>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</tr>
</thead>
<tbody data-role="rowgroup" data-platform="atk,mac" class="ex">
<tr data-role="row" data-platform="atk,mac" class="ex">
<td data-role="cell" data-platform="atk,mac" class="ex">X</td>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</tr>
</tbody>
<tfoot data-role="rowgroup" data-platform="atk,mac" class="ex">
<tr data-role="row" data-platform="atk,mac" class="ex">
<td data-role="cell" data-platform="atk,mac" class="ex">X</td>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</tr>
</tfoot>
</table>
Source/WebCore: Added ARIA 1.1 "cell" and "table" roles. https://bugs.webkit.org/show_bug.cgi?id=146011 <rdar://problem/21398946> Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Created a new role called GridCellRole to match the gridcell role, so the previous CellRole and TableRole will match to cell and table role. Made the changes to make sure that both GridRole and TableRole have same behavior, as well as the circumstance for GridCellRole and CellRole. Test: accessibility/roles-table-and-cell.html * accessibility/AXObjectCache.cpp: (WebCore::createFromRenderer): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::supportsRequiredAttribute): (WebCore::AccessibilityNodeObject::canSetSelectedAttribute): * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::setSelectedRows): (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): (WebCore::AccessibilityRenderObject::selectedChildren): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::roleValue): * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]): (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Added tests for new role: table and cell. https://bugs.webkit.org/show_bug.cgi?id=146011. Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Added tests for table and cell role. Also modified other tests to fit the changes. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibilit/roles-table-and-cell-expected.txt: Added. * accessibility/roles-table-and-cell.html: Added. * platform/mac/accessibility/aria-table-hierarchy-expected.txt: * platform/mac/accessibility/aria-tables-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/164929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-10 22:04:50 +00:00
<table role="grid" data-role="grid" data-platform="atk,mac" class="ex">
<caption data-role="" data-platform="atk,mac" class="ex">X</caption>
<thead data-role="rowgroup" data-platform="atk,mac" class="ex">
<tr data-role="row" data-platform="atk,mac" class="ex">
<th data-role="columnheader" data-platform="atk,mac" class="ex">X</th>
Source/WebCore: Added ARIA 1.1 "cell" and "table" roles. https://bugs.webkit.org/show_bug.cgi?id=146011 <rdar://problem/21398946> Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Created a new role called GridCellRole to match the gridcell role, so the previous CellRole and TableRole will match to cell and table role. Made the changes to make sure that both GridRole and TableRole have same behavior, as well as the circumstance for GridCellRole and CellRole. Test: accessibility/roles-table-and-cell.html * accessibility/AXObjectCache.cpp: (WebCore::createFromRenderer): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::supportsRequiredAttribute): (WebCore::AccessibilityNodeObject::canSetSelectedAttribute): * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::setSelectedRows): (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): (WebCore::AccessibilityRenderObject::selectedChildren): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::roleValue): * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]): (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Added tests for new role: table and cell. https://bugs.webkit.org/show_bug.cgi?id=146011. Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Added tests for table and cell role. Also modified other tests to fit the changes. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibilit/roles-table-and-cell-expected.txt: Added. * accessibility/roles-table-and-cell.html: Added. * platform/mac/accessibility/aria-table-hierarchy-expected.txt: * platform/mac/accessibility/aria-tables-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/164929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-10 22:04:50 +00:00
</tr>
</thead>
<tbody data-role="rowgroup" data-platform="atk,mac" class="ex">
<tr data-role="row" data-platform="atk,mac" class="ex">
<td role="gridcell" data-role="gridcell" data-platform="atk,mac" class="ex">X</td>
Source/WebCore: Added ARIA 1.1 "cell" and "table" roles. https://bugs.webkit.org/show_bug.cgi?id=146011 <rdar://problem/21398946> Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Created a new role called GridCellRole to match the gridcell role, so the previous CellRole and TableRole will match to cell and table role. Made the changes to make sure that both GridRole and TableRole have same behavior, as well as the circumstance for GridCellRole and CellRole. Test: accessibility/roles-table-and-cell.html * accessibility/AXObjectCache.cpp: (WebCore::createFromRenderer): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::supportsRequiredAttribute): (WebCore::AccessibilityNodeObject::canSetSelectedAttribute): * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::setSelectedRows): (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): (WebCore::AccessibilityRenderObject::selectedChildren): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::roleValue): * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]): (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Added tests for new role: table and cell. https://bugs.webkit.org/show_bug.cgi?id=146011. Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Added tests for table and cell role. Also modified other tests to fit the changes. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibilit/roles-table-and-cell-expected.txt: Added. * accessibility/roles-table-and-cell.html: Added. * platform/mac/accessibility/aria-table-hierarchy-expected.txt: * platform/mac/accessibility/aria-tables-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/164929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-10 22:04:50 +00:00
</tr>
</tbody>
<tfoot data-role="rowgroup" data-platform="atk,mac" class="ex">
<tr data-role="row" data-platform="atk,mac" class="ex">
<td role="gridcell" data-role="gridcell" data-platform="atk,mac" class="ex">X</td>
Source/WebCore: Added ARIA 1.1 "cell" and "table" roles. https://bugs.webkit.org/show_bug.cgi?id=146011 <rdar://problem/21398946> Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Created a new role called GridCellRole to match the gridcell role, so the previous CellRole and TableRole will match to cell and table role. Made the changes to make sure that both GridRole and TableRole have same behavior, as well as the circumstance for GridCellRole and CellRole. Test: accessibility/roles-table-and-cell.html * accessibility/AXObjectCache.cpp: (WebCore::createFromRenderer): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::supportsRequiredAttribute): (WebCore::AccessibilityNodeObject::canSetSelectedAttribute): * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::setSelectedRows): (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): (WebCore::AccessibilityRenderObject::selectedChildren): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::roleValue): * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]): (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Added tests for new role: table and cell. https://bugs.webkit.org/show_bug.cgi?id=146011. Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Added tests for table and cell role. Also modified other tests to fit the changes. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibilit/roles-table-and-cell-expected.txt: Added. * accessibility/roles-table-and-cell.html: Added. * platform/mac/accessibility/aria-table-hierarchy-expected.txt: * platform/mac/accessibility/aria-tables-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/164929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-10 22:04:50 +00:00
</tr>
</tfoot>
</table>
<textarea data-role="textbox" data-platform="atk,mac" class="ex">X</textarea>
AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time https://bugs.webkit.org/show_bug.cgi?id=199692 Reviewed by Chris Fleizach. Source/WebCore: Create new AccessibilityRole types which correspond to the new ARIA roles and update AccessibilityRenderObject::determineAccessibilityRole() to assign these internal roles to the related HTML elements. Update both ATK and Mac to recognize these new internal roles. In addition, update the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via the AtkObject xml-roles attribute so that this information is not completely absent for GTK or WPE built against earlier versions of ATK. Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup(). These two methods were only being used by ATK and are no longer needed for platform role mapping. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted. (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): Tools: Add support for output of AXDeletion and AXInsertion roles for tests. Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2 which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * gtk/jhbuild.modules: * wpe/jhbuild.modules: LayoutTests: Add the new roles to the existing role-exposure tests and update expectations accordingly. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/object-attributes.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: * platform/wpe/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/213585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-11 13:36:50 +00:00
<time data-role="time" data-platform="atk,mac" class="ex">X</time>
<ul data-role="list" data-platform="atk,mac" class="ex">
<li data-role="listitem" data-platform="atk,mac" class="ex">X</li>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</ul>
<var data-role="" data-platform="atk,mac" class="ex">X</var>
<wbr data-role="" data-platform="atk,mac" class="ex">X</wbr>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- ==================================================================================================== -->
<!-- Abstract ARIA roles in alphabetical order; only generic role should be exposed on abstract roles -->
<!-- ==================================================================================================== -->
<div role="command" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="composite" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="input" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="landmark" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="range" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="roletype" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="section" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="sectionhead" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="select" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="structure" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="widget" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="window" data-role="" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- ==================================================================================================== -->
<!-- Non-abstract ARIA roles in alphabetical order, excepting the need for nesting (e.g. row is with its grid parent) -->
<!-- ==================================================================================================== -->
<div role="alert" data-role="alert" data-platform="atk,mac" class="ex">X</div>
<div role="alertdialog" data-role="alertdialog" data-platform="atk,mac" class="ex">X</div>
<div role="application" data-role="application" data-platform="atk,mac" class="ex">X</div>
<div role="article" data-role="article" data-platform="atk,mac" class="ex">X</div>
<div role="banner" data-role="banner" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for new blockquote, caption, and paragraph ARIA roles https://bugs.webkit.org/show_bug.cgi?id=186274 Reviewed by Chris Fleizach. Source/WebCore: Add the three new ARIA roles to the internal rolemap so that they are treated in the same fashion as their HTML element counterparts. Also ensure that an element with an explicit caption role does not get pruned from the macOS accessibility tree. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject const): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Add the three ARIA roles to the existing role-exposure tests and update expectations accordingly. Also update several additional GTK tests because the mapping of these ARIA roles results in new object attributes appearing for native HTML blockquote, paragraph, and caption elements. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * inspector/dom/hideHighlight-expected.txt: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/gtk/accessibility/table-one-cell-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/201689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-05 15:55:06 +00:00
<div role="blockquote" data-role="blockquote" data-platform="atk,mac" class="ex">X</div>
<div role="button" data-role="button" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for new blockquote, caption, and paragraph ARIA roles https://bugs.webkit.org/show_bug.cgi?id=186274 Reviewed by Chris Fleizach. Source/WebCore: Add the three new ARIA roles to the internal rolemap so that they are treated in the same fashion as their HTML element counterparts. Also ensure that an element with an explicit caption role does not get pruned from the macOS accessibility tree. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject const): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Add the three ARIA roles to the existing role-exposure tests and update expectations accordingly. Also update several additional GTK tests because the mapping of these ARIA roles results in new object attributes appearing for native HTML blockquote, paragraph, and caption elements. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * inspector/dom/hideHighlight-expected.txt: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/gtk/accessibility/table-one-cell-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/201689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-05 15:55:06 +00:00
<div role="caption" data-role="caption" data-platform="atk,mac" class="ex">X</div>
<div role="checkbox" data-role="checkbox" data-platform="atk,mac" class="ex">X</div>
<div role="combobox" data-role="combobox" data-platform="atk,mac" class="ex">X</div>
<div role="complementary" data-role="complementary" data-platform="atk,mac" class="ex">X</div>
<div role="contentinfo" data-role="contentinfo" data-platform="atk,mac" class="ex">X</div>
<div role="definition" data-role="definition" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time https://bugs.webkit.org/show_bug.cgi?id=199692 Reviewed by Chris Fleizach. Source/WebCore: Create new AccessibilityRole types which correspond to the new ARIA roles and update AccessibilityRenderObject::determineAccessibilityRole() to assign these internal roles to the related HTML elements. Update both ATK and Mac to recognize these new internal roles. In addition, update the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via the AtkObject xml-roles attribute so that this information is not completely absent for GTK or WPE built against earlier versions of ATK. Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup(). These two methods were only being used by ATK and are no longer needed for platform role mapping. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted. (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): Tools: Add support for output of AXDeletion and AXInsertion roles for tests. Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2 which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * gtk/jhbuild.modules: * wpe/jhbuild.modules: LayoutTests: Add the new roles to the existing role-exposure tests and update expectations accordingly. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/object-attributes.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: * platform/wpe/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/213585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-11 13:36:50 +00:00
<div role="deletion" data-role="deletion" data-platform="atk,mac" class="ex">X</div>
<div role="dialog" data-role="dialog" data-platform="atk,mac" class="ex">X</div>
<div role="directory" data-role="list" data-platform="atk,mac" class="ex">X</div><!-- FIXME: should be directory -->
<div role="document" data-role="document" data-platform="atk,mac" class="ex">X</div>
<div role="figure" data-role="figure" data-platform="atk,mac" class="ex">X</div>
<div role="form" data-role="form" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for Graphics ARIA roles https://bugs.webkit.org/show_bug.cgi?id=181796 Reviewed by Chris Fleizach. Source/WebCore: Add mappings for the three new roles (graphics-document, graphics-object, and graphics-symbol) as per the Graphics Accessibility API Mappings spec. No new tests; instead, new test cases added to roles-computedRoleString.html and roles-exposed.html. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::computedRoleString const): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): (-[WebAccessibilityObjectWrapper roleDescription]): LayoutTests: Add new test cases and update expectations accordingly. * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/197772@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-01-22 19:16:52 +00:00
<div role="graphics-document" data-role="document" data-platform="atk,mac" class="ex">X</div>
<div role="graphics-object" data-role="group" data-platform="atk,mac" class="ex">X</div>
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
<div role="graphics-symbol" data-role="image" data-platform="atk,mac" class="ex">X</div>
<div role="grid" data-role="grid" data-platform="atk,mac" class="ex">
<div role="rowgroup" data-role="rowgroup" data-platform="atk,mac" class="ex">
<div role="row" data-role="row" data-platform="atk,mac" class="ex">
<div role="rowheader" data-role="rowheader" data-platform="atk,mac" class="ex">X</div>
<div role="columnheader" data-role="columnheader" data-platform="atk,mac" class="ex">X</div>
<div role="gridcell" data-role="gridcell" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
</div>
</div>
<div role="feed" data-role="feed" data-platform="atk,mac" class="ex">X</div>
<div role="group" data-role="group" data-platform="atk,mac" class="ex">X</div>
<div role="heading" data-role="heading" data-platform="atk,mac" class="ex">X</div>
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
<div role="img" data-role="image" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time https://bugs.webkit.org/show_bug.cgi?id=199692 Reviewed by Chris Fleizach. Source/WebCore: Create new AccessibilityRole types which correspond to the new ARIA roles and update AccessibilityRenderObject::determineAccessibilityRole() to assign these internal roles to the related HTML elements. Update both ATK and Mac to recognize these new internal roles. In addition, update the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via the AtkObject xml-roles attribute so that this information is not completely absent for GTK or WPE built against earlier versions of ATK. Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup(). These two methods were only being used by ATK and are no longer needed for platform role mapping. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted. (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): Tools: Add support for output of AXDeletion and AXInsertion roles for tests. Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2 which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * gtk/jhbuild.modules: * wpe/jhbuild.modules: LayoutTests: Add the new roles to the existing role-exposure tests and update expectations accordingly. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/object-attributes.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: * platform/wpe/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/213585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-11 13:36:50 +00:00
<div role="insertion" data-role="insertion" data-platform="atk,mac" class="ex">X</div>
<div role="link" data-role="link" data-platform="atk,mac" class="ex">X</div>
<div role="list" data-role="list" data-platform="atk,mac" class="ex">
<div role="listitem" data-role="listitem" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
<div role="listbox" data-role="listbox" data-platform="atk,mac" class="ex">
<div role="option" data-role="option" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
<div role="log" data-role="log" data-platform="atk,mac" class="ex">X</div>
<div role="main" data-role="main" data-platform="atk,mac" class="ex">X</div>
<div role="marquee" data-role="marquee" data-platform="atk,mac" class="ex">X</div>
<div role="math" data-role="math" data-platform="atk,mac" class="ex">X</div>
<div role="menu" data-role="menu" data-platform="atk,mac" class="ex">
<div role="menuitem" data-role="menuitem" data-platform="atk,mac" class="ex">X</div>
<div role="menuitemcheckbox" data-role="menuitemcheckbox" data-platform="atk,mac" class="ex">X</div>
<div role="menuitemradio" data-role="menuitemradio" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
<div role="menubar" data-role="menubar" data-platform="atk,mac" class="ex">
<div role="menuitem" data-role="menuitem" data-platform="atk,mac" class="ex">X</div>
<div role="menuitemcheckbox" data-role="menuitemcheckbox" data-platform="atk,mac" class="ex">X</div>
<div role="menuitemradio" data-role="menuitemradio" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
2019-03-20 13:09:02 +00:00
<div role="meter" data-role="meter" data-platform="atk,mac" class="ex">X</div>
<div role="navigation" data-role="navigation" data-platform="atk,mac" class="ex">X</div>
<div role="note" data-role="note" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for new blockquote, caption, and paragraph ARIA roles https://bugs.webkit.org/show_bug.cgi?id=186274 Reviewed by Chris Fleizach. Source/WebCore: Add the three new ARIA roles to the internal rolemap so that they are treated in the same fashion as their HTML element counterparts. Also ensure that an element with an explicit caption role does not get pruned from the macOS accessibility tree. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject const): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Add the three ARIA roles to the existing role-exposure tests and update expectations accordingly. Also update several additional GTK tests because the mapping of these ARIA roles results in new object attributes appearing for native HTML blockquote, paragraph, and caption elements. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * inspector/dom/hideHighlight-expected.txt: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/gtk/accessibility/table-one-cell-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/201689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-05 15:55:06 +00:00
<div role="paragraph" data-role="paragraph" data-platform="atk,mac" class="ex">X</div>
<div role="presentation" data-role="" data-platform="atk,mac" class="ex">X</div>
<div role="progressbar" data-role="progressbar" data-platform="atk,mac" class="ex">X</div>
<div role="radiogroup" data-role="radiogroup" data-platform="atk,mac" class="ex">
<div role="radio" data-role="radio" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
<div role="region" data-platform="atk,mac" class="ex" data-role="" data-note=":not([aria-label]:not([aria-labelledby])">X</div>
<div role="region" data-platform="atk,mac" class="ex" data-role="region" aria-label="x" data-note="[aria-label]">X</div>
<div role="region" data-platform="atk,mac" class="ex" data-role="region" aria-labelledby="region-label" data-note="[aria-labelledby]">
AX: ARIA "region" role which lacks an accessible name should not be treated as a landmark https://bugs.webkit.org/show_bug.cgi?id=171180 Reviewed by Chris Fleizach. Source/WebCore: Remove mapping of LandmarkRegionRole for regions which lack an accessible name. Doing so had a side effect of causing a number of DPub ARIA roles to stop being mapped as ARIA landmarks. This is due to our internal role mappings, namely treating the DPub ARIA landmark roles as if they were regions. Because DPub's landmarks do not subclass region, and do not have the same name-from-author requirement as region, create a new LandmarkDocRegionRole AccessibilityRole and map DPub ARIA's generic landmarks to it. No new tests because we already have sufficient coverage. Several existing tests were given additional test cases to cover named and unnamed regions, and test expectations updated accordingly. * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::determineAriaRoleAttribute): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::accessibleNameDerivesFromContent): (WebCore::AccessibilityObject::isLandmark): (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityIsLandmarkRole:]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (-[WebAccessibilityObjectWrapperBase ariaLandmarkRoleDescription]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): LayoutTests: Add new test cases to several tests so that we have coverage for both named and unnamed regions, which now have different mappings. In aria-namefrom-author.html, the region role was replaced with the table role because the test requires elements which have mapped ARIA roles and lack an author-provided name. A region which lacks an author-provided name is no longer mapped as an ARIA role as per the spec. Table was introduced in ARIA 1.1 and serves the same purpose with respect to what is being tested. * accessibility/aria-namefrom-author.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/mac/aria-grouping-roles.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/188359@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-04-29 02:07:21 +00:00
<h2 id="region-label">X</h2>
</div>
<div role="scrollbar" data-role="scrollbar" data-platform="atk,mac" class="ex">X</div>
<div role="search" data-role="search" data-platform="atk,mac" class="ex">X</div>
<div role="separator" data-role="separator" data-platform="atk,mac" class="ex">X</div>
<div role="slider" data-role="slider" data-platform="atk,mac" class="ex">X</div>
<div role="spinbutton" data-role="spinbutton" data-platform="atk,mac" class="ex">X</div>
<div role="status" data-role="status" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time https://bugs.webkit.org/show_bug.cgi?id=199692 Reviewed by Chris Fleizach. Source/WebCore: Create new AccessibilityRole types which correspond to the new ARIA roles and update AccessibilityRenderObject::determineAccessibilityRole() to assign these internal roles to the related HTML elements. Update both ATK and Mac to recognize these new internal roles. In addition, update the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via the AtkObject xml-roles attribute so that this information is not completely absent for GTK or WPE built against earlier versions of ATK. Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup(). These two methods were only being used by ATK and are no longer needed for platform role mapping. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted. (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): Tools: Add support for output of AXDeletion and AXInsertion roles for tests. Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2 which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * gtk/jhbuild.modules: * wpe/jhbuild.modules: LayoutTests: Add the new roles to the existing role-exposure tests and update expectations accordingly. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/object-attributes.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: * platform/wpe/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/213585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-11 13:36:50 +00:00
<div role="subscript" data-role="subscript" data-platform="atk,mac" class="ex">X</div>
<div role="superscript" data-role="superscript" data-platform="atk,mac" class="ex">X</div>
<div role="tablist" data-role="tablist" data-platform="atk,mac" class="ex">
<div role="tab" data-role="tab" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
<div role="tabpanel" data-role="tabpanel" data-platform="atk,mac" class="ex">X</div>
<div role="textbox" data-role="" data-platform="atk,mac" class="ex">X</div><!-- FIXME: should be textbox -->
<div role="term" data-role="term" data-platform="atk,mac" class="ex">X</div>
AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time https://bugs.webkit.org/show_bug.cgi?id=199692 Reviewed by Chris Fleizach. Source/WebCore: Create new AccessibilityRole types which correspond to the new ARIA roles and update AccessibilityRenderObject::determineAccessibilityRole() to assign these internal roles to the related HTML elements. Update both ATK and Mac to recognize these new internal roles. In addition, update the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via the AtkObject xml-roles attribute so that this information is not completely absent for GTK or WPE built against earlier versions of ATK. Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup(). These two methods were only being used by ATK and are no longer needed for platform role mapping. No new tests. Instead add the roles to the existing role-exposure tests. * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted. (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper subrole]): Tools: Add support for output of AXDeletion and AXInsertion roles for tests. Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2 which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * gtk/jhbuild.modules: * wpe/jhbuild.modules: LayoutTests: Add the new roles to the existing role-exposure tests and update expectations accordingly. * accessibility/gtk/object-attributes-expected.txt: * accessibility/gtk/object-attributes.html: * accessibility/gtk/xml-roles-exposed-expected.txt: * accessibility/gtk/xml-roles-exposed.html: * accessibility/roles-computedRoleString.html: * accessibility/roles-exposed.html: * platform/gtk/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/roles-exposed-expected.txt: * platform/mac-wk2/accessibility/roles-exposed-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: * platform/wpe/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/213585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-11 13:36:50 +00:00
<div role="time" data-role="time" data-platform="atk,mac" class="ex">X</div>
<div role="timer" data-role="timer" data-platform="atk,mac" class="ex">X</div>
<div role="toolbar" data-role="toolbar" data-platform="atk,mac" class="ex">X</div>
<div role="tooltip" data-role="tooltip" data-platform="atk,mac" class="ex">X</div>
<div role="tree" data-role="tree" data-platform="atk,mac" class="ex">
<div role="treeitem" data-role="treeitem" data-platform="atk,mac" class="ex">X</div>
<div role="group" data-role="group" data-platform="atk,mac" class="ex">
<div role="treeitem" data-role="treeitem" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
</div>
<div role="treegrid" data-role="treegrid" data-platform="atk,mac" class="ex">
<div role="rowgroup" data-role="rowgroup" data-platform="atk,mac" class="ex">
<div role="row" data-role="row" data-platform="atk,mac" class="ex">
<div role="rowheader" data-role="rowheader" data-platform="atk,mac" class="ex">X</div>
<div role="columnheader" data-role="columnheader" data-platform="atk,mac" class="ex">X</div>
<div role="gridcell" data-role="gridcell" data-platform="atk,mac" class="ex">X</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
</div>
</div>
</div>
<!-- ==================================================================================================== -->
<!-- generic role attribute parsing tests -->
<!-- ==================================================================================================== -->
<div role="button foo" data-role="button" data-platform="atk,mac" class="ex">X</div>
<div role="foo button bar" data-role="button" data-platform="atk,mac" class="ex">X</div>
<div role="foo button bar" data-role="button" data-platform="atk,mac" class="ex">X</div><!-- [sic] Two spaces in role string -->
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- FIXME: These two should be button but fail b/c of http://webkit.org/b/128400 -->
<div role="foo button bar" data-role="" data-platform="atk,mac" class="ex">X</div><!-- [sic] Tab chars in role string -->
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<div role="foo
button
bar" data-role="" data-platform="atk,mac" class="ex">X</div><!-- [sic] Newlines in role string -->
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<!-- ==================================================================================================== -->
<!-- implicit role parsing tests -->
<!-- ==================================================================================================== -->
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
<img role="foo" src="foo.png" data-role="image" alt="X" data-platform="atk,mac" class="ex">
<img role="foo bar" src="foo.png" data-role="image" alt="X" data-platform="atk,mac" class="ex">
<img role="foo bar" src="foo.png" data-role="image" alt="X" data-platform="atk,mac" class="ex"><!-- [sic] Two spaces in role string -->
<img role="foo bar" src="foo.png" data-role="image" alt="X" data-platform="atk,mac" class="ex"><!-- [sic] Newline in role string -->
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<img role="foo
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
bar" src="foo.png" data-role="image" alt="X" data-platform="atk,mac" class="ex"><!-- [sic] Tab char in role string -->
<img role="text" src="foo.png" data-role="text" alt="X" data-platform="atk,mac" class="ex">
<img role="text img" src="foo.png" data-role="text" alt="X" data-platform="atk,mac" class="ex">
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
<img role="img text" src="foo.png" data-role="image" alt="X" data-platform="atk,mac" class="ex">
<img role="presentation" data-role="image" data-note="[aria-label]" alt="X" src="foo.png" aria-label="X" data-platform="atk,mac" class="ex"><!-- presentation with global attr should fallback to implicit role -->
<a href="#" role="foo bar" data-role="link" data-platform="atk,mac" class="ex">X</a>
</div>
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
<div id="console"></div>
<script>
if (window.testRunner && window.accessibilityController) {
description("This tests that native elements and ARIA overrides result in the same ARIA computed role, regardless of platform.")
var examples = document.querySelectorAll(".ex");
var el, contentAttrRoleString, axElement, computedAriaRole, output, expectedRole, expectation, result, note;
var currentPlatform = accessibilityController.platformName;
let consoleOutput = "";
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
for (var i = 0, c = examples.length; i < c; i++) {
el = examples[i];
el.id = "ex" + i
axElement = accessibilityController.accessibleElementById(el.id);
if (!axElement)
continue;
supportedPlatforms = el.getAttribute('data-platform');
if (!supportedPlatforms || supportedPlatforms.indexOf(currentPlatform) == -1)
continue;
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
computedAriaRole = axElement.computedRoleString;
contentAttrRoleString = el.getAttribute("role");
note = el.getAttribute("data-note")
output = el.tagName.toLowerCase() + (contentAttrRoleString ? ("[role=\""+contentAttrRoleString+"\"]") : "") + (note ? note : "");
output += " -> ";
output += computedAriaRole;
output += ". ";
expectedRole = "";
if (el.hasAttribute("data-role")) {
expectedRole = el.getAttribute("data-role");
}
expectation = expectedRole;
matchedResults = (computedAriaRole == expectedRole)
if (matchedResults)
consoleOutput += "PASS " + output + "\n";
else
consoleOutput += "FAIL " + output + "Expected: " + expectation + "\n";
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
}
document.getElementById("console").textContent = consoleOutput;
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
// Once tests are complete, hide all the example markup.
document.getElementById("content").style.visibility = "hidden";
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>