Summary:
Change the consumption steps of the
Sanitizer API so that it sanitizes during parse steps, rather than the reified tree.
The motivation for this is to address some issues around the non-parser sanitization steps which prevent sanitizing scoped registries and declarative shadow roots.
By and large this change should not be web observable, modulo the above two points. Scoped Registries has not shipped yet, and this is one way we can unblock them from shipping.
Bug:
Specification:
Standards Body:
WHATWG
Platform Coverage:
all.
Preference:
`dom.security.sanitizer.while_parsing`
DevTools Bug:
N/A
Use Counter:
I don't think this is necessary but happy to add one if people think it would be useful.
Standards-Positions Discussion:
Other Browsers:
- WebKit: Positive of the overall feature.