google / safevalues

Apache License 2.0
110 stars 13 forks source link

# Unify inert fragment creation with createContextualFragment #270

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

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.