web_sanitize icon indicating copy to clipboard operation
web_sanitize copied to clipboard

Sanitizer: Be aware of elements that have different parsing rules

Open leafo opened this issue 3 years ago • 1 comments
trafficstars

There are some html elements (eg. iframe) which use different parsing rules for the content of the tag. The sanitizer should be aware of this and treat those tags separately. None of the elements in the default whitelist are currently affected by this.

Note: Also worth investigating other elements that have special parsing rules: https://html.spec.whatwg.org/multipage/parsing.html#special

See: https://html.spec.whatwg.org/multipage/parsing.html#html-parser

leafo avatar Oct 23 '22 04:10 leafo

Random, but enjoying this line from the HTML spec: image

leafo avatar Oct 25 '22 17:10 leafo