Contact emails
[email protected], [email protected]

Explainer
https://github.com/whatwg/html/issues/11669


Specification
No information provided


Summary
Optionally run scripts when setting HTML: element.setHTMLUnsafe(html, 
{runScripts: true}) This behavior is already exposed via 
createContextualFragment, however that API is not very ergonomic, has 
undocumented side effects, and doesn't integrate with new features like the 
HTML sanitizer. Later this option will be also availabe for streamHTMLUnsafe, 
and in methods like streamAppendHTMLUnsafe. The "safe" variants don't include 
this option, as it's unsafe by definition.


Blink component
Blink>HTML>Parser


Web Feature ID
dom


Motivation
Organize the different HTML setting methods in an ergonomic and consistent way, 
so that all of them have access to the same options (script execution, 
sanitizing, streaming, partial/full replacement). Though most options are 
already available by means of using obscure APIs like createContextualFragment, 
having all of these consolidated explains the platform better and helps authors 
avoid mistakes and understand the implications of each method.


Initial public proposal
https://github.com/whatwg/html/issues/11669


Requires code in //chrome?
False


Tracking bug
https://issues.chromium.org/issues/469706054


Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5157829096898560?gate=5139780100816896


This intent message was generated by Chrome Platform Status.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6942d982.050a0220.1050d6.07ec.GAE%40google.com.

Reply via email to