[meta] Add a way to show DocumentFragment as a DOM-tree instead of showing its properties
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: freddy, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: meta)
Bug 1650370 and dependents will implement a new API that can sanitize bad HTML into a clean DOM tree. I'm filing this bug to have a place for DevTools considerations around this feature.
I will add developer-friendly logging to the API, but wanted to have an issue to tag related ideas, just in case.
E.g., the API returns a DocumentFragment, which might enjoy some improved DevTools support.
A DocFragment in the console shows as DocumentFragment [ html element names ]
, but expanding the object shows lots of less-interesting stuff.
I think it would be nice if w had a way to get the HTML content of a DocumentFragment shown as a string in DevTools.
Reporter | ||
Comment 1•5 years ago
|
||
This should be very easy given https://bugzilla.mozilla.org/show_bug.cgi?id=1653232
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Looks like a great motive to do the final push on Bug 1552531!
Reporter | ||
Comment 3•4 years ago
|
||
The latest API has moved away from DocumentFragment as the main return type and will focus on direct insertion (e.g., with Element.setHTML()
). It's probably still valuable to make DocumentFragments nicer to work with in DevTools, but it's no longer relevant for this API.
Comment 4•3 years ago
|
||
The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months.
:nchevobbe, maybe it's time to close this bug?
Comment 5•3 years ago
|
||
let's turn it into something specific for DocumentFragment and block it on Bug 1552531
Updated•3 years ago
|
Description
•