Unify inert fragment creation with createContextualFragment
This API also gives us access to a fragment parser.
While it is not inert by default (like template), creating a new detached HTMLDocument achieves the same result.
This simplifies the code and allows us to save a few more bytes.
Unify inert fragment creation with createContextualFragment
This API also gives us access to a fragment parser. While it is not inert by default (like template), creating a new detached HTMLDocument achieves the same result.
This simplifies the code and allows us to save a few more bytes.