newspeak
newspeak copied to clipboard
Add custom view for DOM nodes
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?
@gbracha what do you mean by "HTML pretty printer"?
@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.
The most basic thing would be to print out their outerhtml