Skip to content

v1.15.7

Choose a tag to compare

@github-actions github-actions released this 04 Nov 18:18
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Avoid an out-of-bounds read in minify_css when memory allocation fails while minifying a + operator in a math function (#1613) by @gaborbernat.
  • Avoid an out-of-bounds read in minify_css when 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.xpath with an 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_text also keeps a trailing escaped space (#1615) by @gaborbernat.
  • Keep tables and images that to_markdown passes 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 MemoryError instead of crashing or returning a wrong result when Text.data assignment, Node.equals(), copy.copy()/copy.deepcopy(), Element.normalize(), Range content operations, main_text(), article(), collapse_whitespace_node(), XMLSchema.validate(), RelaxNG compilation or an XSLT xsl:strip-space cannot materialize parsed text (#1617) by @gaborbernat.
  • Raise MemoryError instead of crashing when canonicalization, pretty-printing, minification, Markdown rendering, to_source() or a find(text=) regex scan cannot materialize parsed text (#1600) by @gaborbernat.
  • Raise MemoryError instead of crashing, raising SystemError or returning a wrong verdict when RelaxNG compilation or RelaxNG.validate() cannot allocate; XMLSchema compilation 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.

🐍 PyPI release

📜 Full Changelog