mirror of
https://github.com/lexmount/moli.git
synced 2026-11-14 00:08:12 +00:00
Share a strict XML fragment parser across Range.createContextualFragment, innerHTML, outerHTML and insertAdjacentHTML. Carry native in-scope namespace bindings without inherited DTD entities, preserve XML node kinds and UTF-16 TrustedHTML inputs, and keep parsed scripts inert after adoption. Validate the complete fragment before replacing existing children and expose syntax failures as DOMExceptions in the callee realm. Keep setHTMLUnsafe on its HTML parser path. Cover native Proxies, ShadowRoot and template contexts, cross-realm calls, mutation atomicity and malformed namespace declarations.