Re: [whatwg/dom] Expose document fragment serialization algorithm (#965)

Probably for the same reason as `DocumentFragment`, you can't serialize a `document` either (except via `XMLSerializer` but this forces xhtml rather than html).

The [current proposal for declarative shadow dom](https://web.dev/declarative-shadow-dom/#serialization) contains a `.getInnerHTML(...)` function, so even if `.innerHTML` on `DocumentFragment`/`Document` is a web-compat issue, that could potentially be used instead.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/965#issuecomment-814486882

Received on Tuesday, 6 April 2021 22:57:56 UTC