wpt
wpt copied to clipboard
Fix skipping CSP checks for styles when cloning nodes
Cloned nodes were re-parsing already-parsed style attributes. As such, they were also checking CSP, which shouldn't happen as the original node already was checked for it.
The existing WPT test now mostly passes. It had two cases which were passing in no browsers.
Part of #4577
Reviewed in servo/servo#37465