Escape "<" and ">" when serializing attribute values

Merged
ZC
1y ago
+8-7

Avoid a class of XSS attacks where markup goes through
a lossy parse-serialize-parse roundtrip and the original
attribute value is parsed in the data state.

This reverts 4eeb8a1706c9545d5aedb5d569d7f55778da9782.

Fixes #6235.

(See WHATWG Working Mode: Changes for more details.)


/parsing.html ( diff )


/parsing.html ( diff )