Skip to content

fix(aria): show iframe content in ai snapshot when iframe has fallback text - #43633

Closed
Lazizbek Ergashev (lazerg) wants to merge 2 commits into
microsoft:mainfrom
lazerg:fix-43628
Closed

Lazizbek Ergashev (lazerg) wants to merge 2 commits into
microsoft:mainfrom
lazerg:fix-43628

Conversation

@lazerg

Copy link
Copy Markdown
Contributor

When an <iframe> has fallback text between its tags, the iframe node keeps that text after the child frame snapshot is merged in, and the renderer prints text instead of children, so the frame content disappears. Drop the text once a child snapshot is attached.

Fixes #43628

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ariaSnapshot({ mode: 'ai' }) omits iframe contents when the <iframe> element has fallback text

2 participants