Skip to content

Conversation

@krichprollsch
Copy link
Member

When using a non-html document through CDP, you still want to be able to take actions on a DOM tree.
Chrome builds a pseudo DOM tree for non-html webpages.

We display the content in a <pre> tag for well known content type and an empty document for others.

@krichprollsch krichprollsch self-assigned this Jun 27, 2025
@karlseguin
Copy link
Collaborator

LGTM

@krichprollsch krichprollsch merged commit 3ea8d0b into main Jun 29, 2025
10 checks passed
@krichprollsch krichprollsch deleted the dom-non-html branch June 29, 2025 17:44
@github-actions github-actions bot locked and limited conversation to collaborators Jun 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants