v141 · dom

Update hidden=until-found and details ancestor revealing algorithm

The spec recently had some small changes to the revealing algorithms for hidden=until-found and details elements in order to prevent the browser from getting stuck in an infinite loop: https://github.com/whatwg/html/pull/11457

concepts

  1. Reveal Hidden

    Find-in-page now reveals hidden=until-found content AND auto-expands any closed <details> ancestors of a match. Brings the spec ancestor-revealing algorithm to Chrome.

  2. Find-in-Page Reveal

    Ctrl+F inside a doc with nested <details> and hidden=until-found. The 141 algorithm fix makes deep search-and-open reliable.

  3. Anchor Navigation

    Anchor links into 3-deep nested details + hidden regions. The whole ancestor chain opens, exactly to the target, no infinite walks.

  4. Accessibility Audit

    Runs a live audit of the page's hidden=until-found and <details> regions: checks that every found-section has a meaningful summary, that AT can read revealed content, and that the 141 ancestor-walk fix doesn't leave orphaned open ancestors. Results appear as pass/warn/fail rows with remediation hints.

why it shipped

The spec recently had some small changes to the revealing algorithms for hidden=until-found and details elements in order to prevent the browser from getting stuck in an infinite loop: https://github.com/whatwg/html/pull/11457

references