Skip to content

v6.5.3

Latest

Choose a tag to compare

@stefcameron stefcameron released this 05 Dec 20:18
4578a02

Patch Changes

  • a691ae3: Exclude elements with an invalid contenteditable value (e.g. "bogus", "inherit") from focusable and tabbable results, since browsers don't focus them. A contenteditable value of "false" is now also excluded regardless of case (e.g. "FALSE" was previously treated as editable).
  • 2a34549: Fix elements inside the shadow tree of an inert shadow host being considered tabbable/focusable:
    • Any inert attribute value, including inert="false", now makes an element inert since inert is a boolean attribute (affected tabbable() and focusable() with getShadowRoot).
    • isTabbable() and isFocusable() now check for inert shadow hosts (and their inert ancestors) at every level of shadow DOM nesting, as well as for inert slots and slot containers an element is slotted into (open shadow roots only). An active modal <dialog> escapes the inertness of an inert shadow host and its ancestors, but not of an inert ancestor in its own tree (light DOM or the same shadow root).