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

@LeaVerou the serialization doesn't depend on the context, but the parsing of it does. Given that mismatch, offering context-free serialization (i.e., `documentFragmentInstance.something` rather than `someElement.innerHTML`) will likely lead to subtle problems in practice. (As you know there's no way we can annotate the string and say that it can be only be handed to `innerHTML` successfully when used on a tr element or some such.)

-- 
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-843055124

Received on Tuesday, 18 May 2021 10:32:39 UTC