[webkit-changes] [WebKit/WebKit] 46c79e: AX: header and footer elements should not be expos...

Tyler Wilcock noreply at github.com
Mon Nov 6 00:21:32 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 46c79e626d06e7ebad976e37f47e031eee8a6897
      https://github.com/WebKit/WebKit/commit/46c79e626d06e7ebad976e37f47e031eee8a6897
  Author: Tyler Wilcock <tyler_w at apple.com>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/html-aam/roles-contextual-expected.txt
    M Source/WebCore/accessibility/AccessibilityNodeObject.cpp

  Log Message:
  -----------
  AX: header and footer elements should not be exposed as a contentinfo landmarks if contained within sectioning content
https://bugs.webkit.org/show_bug.cgi?id=264227
rdar://problem/117967651

Reviewed by Chris Fleizach.

As defined here:

https://w3c.github.io/html-aam/#el-footer
https://w3c.github.io/html-aam/#el-header
https://html.spec.whatwg.org/multipage/dom.html#sectioning-content

And tested by existing web platform test el-footer and el-header cases:

https://wpt.fyi/results/html-aam/roles-contextual.html

We now pass these testcases.

* LayoutTests/imported/w3c/web-platform-tests/html-aam/roles-contextual-expected.txt:
* Source/WebCore/accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::determineAccessibilityRoleFromNode const):

Canonical link: https://commits.webkit.org/270255@main




More information about the webkit-changes mailing list