Closed Bug 1653232 Opened 5 years ago Closed 5 years ago

implement a public GetInnerHTML() for DocumentFragment (copied from ShadowRoot)

Categories

(Core :: DOM: Core & HTML, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: freddy, Assigned: freddy)

References

Details

Attachments

(1 file)

No description provided.

Curious, why? :)

taskcluster did not like it and fails restarting the decision task. https://treeherder.mozilla.org/#/jobs?repo=try&revision=3270246fa0f9b2d84e77554fba0a4c60eb8c700b

(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?

Blocks: 1652481
Severity: -- → N/A
Priority: -- → P5
Pushed by fbraun@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dce645f310a5 implement GetInnerHTML() for DocFragments r=emilio
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: