Skip to content

v1.15.2

Choose a tag to compare

@gaborbernat gaborbernat released this 15 Oct 07:43
· 786 commits to main since this release
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Reject explicit ports in file: URLs passed to normalize_url. (#1395) by @gaborbernat.
  • Reject malformed XML qualified names in element, attribute, and namespace declarations. (#1396) by @gaborbernat.
  • Restore the empty XML namespace for HTML elements nested under SVG or MathML. (#1397) by @gaborbernat.
  • Omit invalid public identifiers from XML output while retaining valid system identifiers. (#1398) by @gaborbernat.
  • Drop XML-forbidden characters from doctype system identifiers during XML serialization. (#1399) by @gaborbernat.
  • Omit invalid Unicode attribute names from XML serialization. (#1400) by @gaborbernat.
  • Require XML whitespace around doctype external identifiers. (#1401) by @gaborbernat.
  • Reject relative namespace URIs during XML canonicalization. (#1402) by @gaborbernat.
  • Limit inherited XML attributes in Canonical XML 1.1 output. (#1403) by @gaborbernat.
  • Omit invalid processing-instruction targets from XML serialization. (#1404) by @gaborbernat.
  • Keep CSS backgrounds with two colors invalid during minification. (#1405) by @gaborbernat.
  • Resolve backslashes as separators in relative web URLs. (#1406) by @gaborbernat.
  • Keep CSS borders with two widths invalid during minification. (#1407) by @gaborbernat.
  • Keep required spaces around math operators in CSS filters. (#1408) by @gaborbernat.
  • Keep CSS borders with two colors invalid during minification. (#1409) by @gaborbernat.
  • Normalize file: paths and web URLs with omitted authority slashes; reject hosts that map to an empty domain. (#1412) by @gaborbernat.
  • Shorten constant CSS filter calculations, such as blur(calc(1px + 2px)) to blur(3px). (#1414) by @gaborbernat.
  • Resolve links beginning with backslashes against HTTP(S) document URLs the way browsers do. (#1416) by @gaborbernat.
  • Resolve links with extra leading slashes to their target host, matching browser URL handling. (#1417) by @gaborbernat.
  • Resolve HTTP(S) links and document base URLs with backslash authority separators without adding a path slash. (#1418) by @gaborbernat.
  • Remove literal . and .. path segments from absolute document base URLs. (#1419) by @gaborbernat.
  • Percent-encode brackets in URL userinfo when resolving document base URLs. (#1420) by @gaborbernat.
  • Resolve document base URLs with canonical hosts, file paths, and relative non-special schemes; reject malformed web hosts when cleaning URLs. (#1421) by @gaborbernat.
  • Raise MemoryError when XPath or XSLT runs out of memory instead of reporting malformed input or returning a result. (#1426) by @gaborbernat.
  • Keep CSS shorthand merges on one side of nested rules, and drop fallback fragments when resolving empty HTML base URLs. (#1434) by @gaborbernat.
  • Preserve invalid background declarations and both background-size components during CSS minification. (#1435) by @gaborbernat.
  • Preserve token boundaries in CSS filter values, including before variable functions and inside unresolved functions. (#1436) by @gaborbernat.
  • Reject qualified XML element and attribute names whose local part starts with an invalid character, and namespace declarations whose prefix starts with one. (#1437) by @gaborbernat.
  • Treat a backslash after a web URL's authority as one path separator and normalize following dot segments when resolving document URLs. (#1438) by @gaborbernat.
  • Resolve literal and encoded parent segments in special URL references that omit the authority slashes, including same-scheme encoded dots and backslash path separators. (#1439) by @gaborbernat.
  • Resolve single-slash and single-backslash special URL references before removing path segments. (#1440) by @gaborbernat.
  • Use the document fallback URL when a base element's href cannot be parsed, including missing or malformed hosts. (#1441) by @gaborbernat.
  • Resolve or reject special URL hosts before shortening paths after extra authority slashes. (#1442) by @gaborbernat.
  • Resolve a same-scheme special URL ending in a backslash to the host root instead of adding a second slash. (#1446) by @gaborbernat.
  • Reject extra host text after a bracketed IPv6 address. (#1447) by @gaborbernat.
  • Reject URL ports containing characters outside 0–9 or values above 65535 during normalization and cleaning. (#1448) by @gaborbernat.
  • Use the document URL when a relative base reference cannot resolve against an opaque-path URL. (#1449) by @gaborbernat.
  • Preserve a single-dot host when resolving a foreign special URL with one slash after its scheme. (#1450) by @gaborbernat.
  • Drop the fallback URL's fragment when resolving a reference that contains only the same special scheme. (#1451) by @gaborbernat.
  • Omit ancestor xml:* attributes when exclusively canonicalizing XML or HTML subtrees. (#1452) by @gaborbernat.
  • Resolve xml:base values across omitted ancestors when Canonical XML 1.1 serializes a subtree. (#1453) by @gaborbernat.
  • Escape CSS punctuation and leading digits in tag names and ID anchors returned by Element.css_path() so the path selects the element in HTML and XML trees. (#1454) by @gaborbernat.
  • Validate XML Schema name datatypes against the XML 1.0 character ranges instead of accepting every non-ASCII character. (#1455) by @gaborbernat.
  • Match XML Schema regex \w and \W using Unicode general categories instead of treating every non-ASCII character as a word character. (#1456) by @gaborbernat.
  • Match XML Schema regex name escapes \i, \I, \c, and \C against the XML 1.0 name character ranges. (#1457) by @gaborbernat.
  • Match XML Schema regex \d and \D against Unicode decimal digits rather than ASCII digits alone. (#1458) by @gaborbernat.
  • Apply XML Schema regex character class subtraction, including nested and negated classes. (#1459) by @gaborbernat.
  • Match XML Schema regex Unicode general category escapes, including complements and character classes. (#1460) by @gaborbernat.
  • Match XML Schema regex Unicode block escapes, including complements and character classes. (#1461) by @gaborbernat.
  • Reject reversed XML Schema regex character ranges and multi-character range endpoints. (#1462) by @gaborbernat.
  • Reject malformed XML Schema regex character classes instead of compiling them with altered matching behavior. (#1463) by @gaborbernat.
  • Reject unknown and incomplete XML Schema regex escapes instead of treating them as literals. (#1464) by @gaborbernat.
  • Reject unmatched XML Schema regex parentheses instead of accepting partial patterns. (#1465) by @gaborbernat.
  • Reject malformed and misplaced XML Schema regex quantifiers, including unescaped braces. (#1466) by @gaborbernat.
  • Reject unescaped closing brackets outside XML Schema regex character classes. (#1467) by @gaborbernat.
  • Keep repeated CSS longhands when merging a shorthand would change which value wins. (#1468) by @gaborbernat.
  • Resolve CSS declaration names without ASCII case differences, while preserving custom-property case and !important precedence over later normal declarations. (#1469) by @gaborbernat.
  • Keep commas inside srcset and imagesrcset URLs when finding, rewriting, and checking image candidates. (#1470) by @gaborbernat.
  • Resolve feed links against nested xml:base values in XML feeds, including Atom and RSS links. (#1471) by @gaborbernat.
  • Resolve CSS-wide keywords across every supported longhand of border, border-*, and outline. Apply all to supported properties except direction, while preserving cascade order and importance. (#1472) by @gaborbernat.
  • Recognize CSS-escaped property names in declarations and computed styles while retaining their source spelling. (#1473) by @gaborbernat.
  • Extract JSON-LD scripts whose media type includes a profile or other parameter. (#1474) by @gaborbernat.
  • Honor rowspans above 1000 rows, up to the HTML table model's limit of 65534. (#1475) by @gaborbernat.
  • Ignore URL-like text inside CSS comments and strings when extracting or rewriting links. (#1476) by @gaborbernat.
  • Recognize RSS Content and Dublin Core fields by XML namespace URI when feeds use nonstandard prefixes. (#1477) by @gaborbernat.
  • Recognize RDF feed roots and item IDs by XML namespace URI when feeds use alternate prefixes. (#1478) by @gaborbernat.
  • Recognize Dublin Core and RSS content fields declared with a default XML namespace. (#1480) by @gaborbernat.
  • Read RSS 1.0 channel and item fields when the RSS namespace uses a prefix. (#1481) by @gaborbernat.
  • Read Atom feed and entry fields when the Atom namespace uses a prefix. (#1482) by @gaborbernat.
  • Preserve markup inside Atom type="xhtml" text constructs when extracting feeds. (#1483) by @gaborbernat.
  • Ignore Atom and RDF fields bound to a foreign default namespace when extracting feeds. (#1485) by @gaborbernat.
  • Preserve child XML markup in Atom content with an XML media type. (#1486) by @gaborbernat.
  • Keep inherited namespace bindings when serializing an XML subtree. (#1487) by @gaborbernat.
  • Decode base64 Atom content with a binary media type to bytes. (#1488) by @gaborbernat.
  • Order RSS 1.0 entries by the channel's RDF sequence when present. (#1489) by @gaborbernat.
  • Preserve explicit empty query and fragment markers when normalizing URLs. (#1490) by @gaborbernat.
  • Select Atom alternate links case-sensitively for feed and entry permalinks, and resolve empty href references against xml:base. (#1491) by @gaborbernat.
  • Resolve relative RDFa vocabularies and empty resource references against the document base with base_url. (#1492) by @gaborbernat.
  • Keep CSS rules in cascade order when their selectors can match the same element or a nested descendant. (#1493) by @gaborbernat.
  • Preserve valid CSS longhands when a later shorthand has an invalid value. (#1495) by @gaborbernat.
  • Inherit an Atom entry's author from its source or containing feed when the entry has no author. (#1496) by @gaborbernat.
  • Resolve an RSS 1.0 item's rdf:about against xml:base when populating its ID. (#1497) by @gaborbernat.
  • Preserve valid CSS longhands when another longhand cannot form a valid shorthand. (#1499) by @gaborbernat.
  • Expand RDFa CURIE prefixes without regard to case, including prefixes declared with @prefix. (#1500) by @gaborbernat.
  • Ignore longhand declarations that mix CSS-wide keywords with other value tokens, preserving earlier valid values. (#1501) by @gaborbernat.
  • Use Dublin Core dc:title as an RSS or RDF feed or item title when its core title is absent. (#1502) by @gaborbernat.
  • Preserve every rule in top-level CSS @starting-style blocks. (#1503) by @gaborbernat.
  • Prefer the first repeated Open Graph value, following the Open Graph protocol's array ordering. (#1504) by @gaborbernat.
  • Preserve case-sensitive aliases and every block in CSS @font-feature-values. (#1505) by @gaborbernat.
  • Ignore foreign XML namespaces on RSS 2.0 roots, channels, items, and core fields. (#1506) by @gaborbernat.
  • Resolve the full RDFa 1.1 initial-context prefixes and terms in RDFa items. (#1507) by @gaborbernat.
  • Decode escaped CSS-wide keywords in computed styles and reject declarations that mix them with other tokens. (#1508) by @gaborbernat.
  • Preserve case-sensitive CSS selector names in XML and namespace-qualified stylesheets. (#1509) by @gaborbernat.
  • Respect the feed's default namespace when inheriting an Atom author. (#1510) by @gaborbernat.
  • Preserve RGB channels in fully transparent hexadecimal CSS colors. (#1511) by @gaborbernat.
  • Ignore non-CSS <style> blocks when resolving computed styles, with case-sensitive type matching for SVG. (#1512) by @gaborbernat.
  • Match Atom element names case-sensitively in XML feeds. (#1513) by @gaborbernat.
  • Expand RDFa :reference CURIEs with the fixed default prefix, ignoring attempts to redefine it. (#1514) by @gaborbernat.
  • Keep fractional RGB percentages precise and handle large channels without invalid output. (#1515) by @gaborbernat.
  • Keep the streaming tokenizer memory check stable on free-threaded Python. (#1516) by @gaborbernat.
  • Expand RDFa CURIE and SafeCURIE values in about and resource attributes. (#1517) by @gaborbernat.
  • Keep CSS calculation units through multiplication by zero so angle and time declarations remain valid. (#1518) by @gaborbernat.
  • Require an RSS, Atom, or RDF feed to be the XML document root; keep embedded feed discovery for HTML. (#1520) by @gaborbernat.
  • Resolve RDFa CURIEs built from relative prefix IRIs against the document base. (#1521) by @gaborbernat.
  • Preserve signed zero inside nested CSS math expressions. (#1522) by @gaborbernat.
  • Require the Atom namespace on XML <feed> roots, including when no default namespace is declared. HTML feed discovery remains unchanged. (#1524) by @gaborbernat.
  • Preserve large HSL hues during CSS minification. (#1525) by @gaborbernat.
  • Require version="2.0" on XML RSS 2.0 roots. HTML feed discovery remains unchanged. Fold unitless zero in nested CSS math without dropping units from typed zero. (#1526) by @gaborbernat.
  • Preserve HSL colors with saturation above 100% when minifying CSS. (#1527) by @gaborbernat.
  • Match RSS 2.0 and RSS 1.0 element names case-sensitively in XML feeds. (#1528) by @gaborbernat.
  • Ignore malformed RDFa terms and bracketed SafeCURIEs in property and typeof. (#1529) by @gaborbernat.

Packaging

  • Allow GCC 16 to build CSS path escaping with -Werror. (#1494) by @gaborbernat.
  • Allow the dev environment to resolve Sphinx and Docutils together. (#1519) by @gaborbernat.

🐍 PyPI release

📜 Full Changelog