w3c / editing

Specs and explainers maintained by the editing task force
http://w3c.github.io/editing/
Other
192 stars 40 forks source link

Add example for read unsanitized option. #453

Closed snianu closed 1 year ago

snianu commented 1 year ago

Closes #????

The following tasks have been completed:

Implementation commitment:

yisibl commented 12 months ago

Hi @snianu

SVG has a very similar structure to HTML, is it possible to extend the unsanitized option to support SVG? This would solve the problem of missing <style> when copying to SVG (see https://bugs.chromium.org/p/chromium/issues/detail?id=1226150).

snianu commented 12 months ago

@yisibl Indeed. That is exactly the intention of having an unsanitized option -- to allow unsanitized read, but also provide a sanitized version by-default. In this proposal we're focusing on text/html for now, but if we see sufficient use cases for this, then I can add it to the unsanitized list and create a separate proposal.