implement a public GetInnerHTML() for DocumentFragment (copied from ShadowRoot)
Categories
(Core :: DOM: Core & HTML, enhancement, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox80 | --- | fixed |
People
(Reporter: freddy, Assigned: freddy)
References
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
Curious, why? :)
| Assignee | ||
Comment 4•5 years ago
|
||
taskcluster did not like it and fails restarting the decision task. https://treeherder.mozilla.org/#/jobs?repo=try&revision=3270246fa0f9b2d84e77554fba0a4c60eb8c700b
| Assignee | ||
Comment 5•5 years ago
•
|
||
(In reply to Olli Pettay [:smaug] from comment #3)
Curious, why? :)
This makes code in bug 1652481 much easiser. The preliminary API accepts a String/DocumentFragment/Document and returns a sanitized DocumentFragment. The current prototype will just use nsTreeSanitizer as it is (and we'll iterate on sanitizer flags once we have agreement on compat questions).
From looking at assertions in nsTreeSanitizer, it seems that we want a new DocumentFragment and can't just call Sanitize on the DocumentFragment that was passed in (probably due to MutationObservers and stuff?).
Maybe there is a better/easier way to clone a DocumentFragment that I should use instead?
Updated•5 years ago
|
Comment 7•5 years ago
|
||
| bugherder | ||
Description
•