Open Bug 1652671 Opened 5 years ago Updated 3 years ago

[meta] Add a way to show DocumentFragment as a DOM-tree instead of showing its properties

Categories

(DevTools :: Console, enhancement, P3)

enhancement

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.

Severity: -- → S3
Component: Framework → Console
Depends on: 1552531
Priority: -- → P3

Looks like a great motive to do the final push on Bug 1552531!

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.

No longer depends on: 1552531

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?

Flags: needinfo?(nchevobbe)

let's turn it into something specific for DocumentFragment and block it on Bug 1552531

No longer blocks: sanitizer-api
Depends on: 1552531
Flags: needinfo?(nchevobbe)
Summary: [meta] DevTools considerations for experimental Sanitizer API → Add a way to show DocumentFragment as a DOM-tree instead of showing its properties
Summary: Add a way to show DocumentFragment as a DOM-tree instead of showing its properties → [meta] Add a way to show DocumentFragment as a DOM-tree instead of showing its properties
You need to log in before you can comment on or make changes to this bug.