Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom view for DOM nodes #87

Open
gbracha opened this issue Apr 29, 2021 · 3 comments
Open

Add custom view for DOM nodes #87

gbracha opened this issue Apr 29, 2021 · 3 comments

Comments

@gbracha
Copy link
Member

gbracha commented Apr 29, 2021

In the case of aliens that are DOM nodes, we should be able to display them as HTML.
Is there an HTML pretty printer exposed in the browser?

@Miciurash
Copy link
Contributor

@gbracha what do you mean by "HTML pretty printer"?

@gbracha
Copy link
Member Author

gbracha commented Aug 13, 2022

@Miciurash I mean a facility for displaying HTML with syntax highlighting or formatting beyond the raw text. Maybe by accessing dev tools? Though we'd want something portable. Otherwise, this would be pretty straightforward, just get the nodes outerhtml and show it in a CodeMirrorFragment. To do this, one needs tounderstand how we do custom object views in ObjectPresenters; we have such views for documents, lists, strings, numbers etc.

@gbracha
Copy link
Member Author

gbracha commented Aug 17, 2022

The most basic thing would be to print out their outerhtml

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

No branches or pull requests

2 participants