Created attachment 395853 [details] DOM tree screen cap showing bug "Skip to Main Content" navigation broken on US Census site. https://my2020census.gov The skip link is nulled (“#”) and then they call a JavaScript function to focus an aria-hidden, yet focusable, empty span. No surprise this technique doesn’t work (who would do this?) but I think it might be a WebKit bug nonetheless. If focus is moved to a node that is rendered, but hidden via @aria-hidden, WebKit should invalidate the use of aria-hidden on the node or its ancestor node. ARIA 7.2 Tree Inclusion https://rawgit.com/w3c/aria/master/#tree_inclusion "…user agents MUST provide an accessible object in the accessibility tree for DOM elements that…are focusable…"
<rdar://problem/61469793>
Created attachment 396620 [details] patch
Created attachment 396621 [details] patch
The change makes sense to me but it looks like some additional tests may be in need of updating/rebasing.
Created attachment 396837 [details] patch
Created attachment 396838 [details] patch