Open Bug 1652671 Opened 1 year ago Updated 1 year ago

[meta] DevTools considerations for experimental Sanitizer API

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: freddy, Unassigned)

References

(Depends on 1 open bug, Blocks 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!

You need to log in before you can comment on or make changes to this bug.