Repository navigation
v1.15.7
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Avoid an out-of-bounds read in
minify_csswhen memory allocation fails while minifying a+operator in a math function (#1613) by @gaborbernat. - Avoid an out-of-bounds read in
minify_csswhen memory allocation fails while minifying a nested selector (#1598) by @gaborbernat. - CSS selector lists and XPath unions with more than 1,024 alternatives no longer fail
Node.xpathwithan expression nested too deeply(#1608) by @gaborbernat. - Drop attribute names CommonMark cannot read from the raw HTML that Markdown output embeds for nested tables and HTML-mode images, so the tag renders as HTML instead of literal text (#1596) by @gaborbernat.
- Keep CSS minification stable across repeated passes when a block, function or bad
url(is left open at the end of the input (#1602) by @gaborbernat. - Keep CSS minification stable across repeated passes when an at-statement follows stray top-level text (#1604) by @gaborbernat.
- Keep CSS minification stable across repeated passes when an unquoted
@import url(holds a quote, a comment is left open at the end of the input, merged rules match the rule before them, or stray top-level text runs into the next node;StyleRule.selector_textalso keeps a trailing escaped space (#1615) by @gaborbernat. - Keep tables and images that
to_markdownpasses through as raw HTML in one HTML block when their content holds a blank line, instead of reading the rest as Markdown (#1606) by @gaborbernat. - Raise
MemoryErrorinstead of crashing or returning a wrong result whenText.dataassignment,Node.equals(),copy.copy()/copy.deepcopy(),Element.normalize(),Rangecontent operations,main_text(),article(),collapse_whitespace_node(),XMLSchema.validate(),RelaxNGcompilation or an XSLTxsl:strip-spacecannot materialize parsed text (#1617) by @gaborbernat. - Raise
MemoryErrorinstead of crashing when canonicalization, pretty-printing, minification, Markdown rendering,to_source()or afind(text=)regex scan cannot materialize parsed text (#1600) by @gaborbernat. - Raise
MemoryErrorinstead of crashing, raisingSystemErroror returning a wrong verdict whenRelaxNGcompilation orRelaxNG.validate()cannot allocate;XMLSchemacompilation and validation raise it too instead of keeping a partial schema or a wrong verdict (#1620) by @gaborbernat.
Security
- Compile XPath expressions whose predicates hold long operator chains without exhausting the C stack (#1611) by @gaborbernat.