Repository navigation
Security
parse()no longer overflows the stack (RangeError) on deeply nested selectors (GHSA-2xp8-p559-r942, #1884).stringify()no longer overflows the stack (RangeError) on deeply nested selector ASTs (GHSA-9j36-46c5-8qff, #1885).
Changes
parse()accepts unescaped:in attribute names, such as[xml:lang|="es"](#1739).parse()decodes\0and out-of-range hex escapes to U+FFFD (#1741).parse()rejects unescaped{,},@, and(at the start of a name; escaped forms still parse (#1927, thanks @wozhenbang2004).stringify()escapes control characters, lone-, leading digits (including after-), and all special characters in names. Numeric arguments such as:nth-child(-1)keep their spelling (#1585 by @kainstar, #1741, #1802 by @spokodev, #1906 by @omisan01).- JavaScript source maps are now published (
16de513).
Full Changelog: v8.0.0...v8.1.0