[Webkit-unassigned] [Bug 256186] New: AX: Setting aria-hidden on a slot does not hide the slots assigned nodes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 1 16:49:16 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=256186
Bug ID: 256186
Summary: AX: Setting aria-hidden on a slot does not hide the
slots assigned nodes
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Accessibility
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tyler_w at apple.com
CC: andresg_22 at apple.com,
webkit-bug-importer at group.apple.com
Testcase:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<body>
<x-button>slot<span>with child</span></x-button>
<script>
class XButton extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open", delegatesFocus: true });
const fragment = document.createRange().createContextualFragment("<input id='button' aria-labelledby='slot' type=button><slot id='slot' aria-hidden='true'></slot>");
this.shadowRoot.append(fragment.cloneNode(true));
}
}
customElements.define("x-button", XButton);
</script>
</body>
</html>
The only element exposed on this page should be the button, but WebKit exposes the text "slot with child" as well. Firefox and Chrome do not behave this way.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230501/150a88e0/attachment-0001.htm>
More information about the webkit-unassigned
mailing list