Skip to content

v8.1.0

Latest

Choose a tag to compare

@fb55 fb55 released this 03 Dec 11:30

Security

Changes

  • parse() accepts unescaped : in attribute names, such as [xml:lang|="es"] (#1739).
  • parse() decodes \0 and 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