Skip to content

Prevent infinite loop in revealing algorithms - #11457

Merged
annevk merged 12 commits into
whatwg:mainfrom
josepharhar:reveal
Aug 1, 2025
Merged

Prevent infinite loop in revealing algorithms#11457
annevk merged 12 commits into
whatwg:mainfrom
josepharhar:reveal

Conversation

@josepharhar

@josepharhar josepharhar commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

The ancestor details revealing algorithm and the hidden until found revealing algorithm may both get stuck in infinite loops because they iterate the flat tree while firing synchronous events. If the page were to listen to these events and change the flat tree in response, then the algorithm could theoretically never end.

Fixes #11436

(See WHATWG Working Mode: Changes for more details.)


/browsing-the-web.html ( diff )
/interaction.html ( diff )
/interactive-elements.html ( diff )

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

hidden=until-found and details revealing algorithms can loop infinitely

5 participants