html5lib breaking changes
html5lib 1.1 (June 22, 2020) is its newest release with breaking changes, 7 of them. The first: html5lib 1.1 drops support for Python 3.4. Every breaking API change we have recorded in html5lib on PyPI: 20 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.1, released June 22, 2020. Source repository
Its 1.1 release drops Python 3.4. Python end of life dates.
html5lib 1.1 breaking changes
- Removed
Python 3.4 is no longer supported; upgrade the interpreter before using this release. github.com - Removed
Python 3.3 is no longer supported; upgrade the interpreter before using this release. github.com - Removed
datrie
The optional datrie dependency is no longer supported; code relying on it must install it separately or drop it. github.com - Removed
html5lib.html5parser.HTMLParser.normalizedTokens
HTMLParser.normalizedTokens was removed in html5lib 1.1 pypi.org - Removed
html5lib.html5parser.HTMLParser.normalizeToken
HTMLParser.normalizeToken was removed in html5lib 1.1 pypi.org - Removed
html5lib.HTMLParser.normalizedTokens
HTMLParser.normalizedTokens was removed in html5lib 1.1 pypi.org - Removed
html5lib.HTMLParser.normalizeToken
HTMLParser.normalizeToken was removed in html5lib 1.1 pypi.org
html5lib 1.0.1 breaking changes
- Removed
Python 2.6 is no longer supported and the utils/spider.py module has been removed; code relying on either must be updated. github.com - Removed
utils.spider.py
The utils/spider.py module has been removed and is no longer available. github.com
html5lib 1.0 breaking changes
- Removed
html5lib.constants.ReparseException
html5lib.constants.ReparseException was removed in html5lib 1.0 pypi.org - Removed
html5lib.html5parser.ReparseException
html5lib.html5parser.ReparseException was removed in html5lib 1.0 pypi.org
html5lib 1.0b3 breaking changes
- Removed
treewalkers._base.RecursiveTreeWalker
Implementations using RecursiveTreeWalker should move to NonRecursiveTreeWalker. github.com
html5lib 1.0b2 breaking changes
- Removed
dom2sax
dom2sax was removed; use treeadapters.sax.to_sax, which supports any treewalker. github.com - Behavior changed
Attribute order is preserved; users who want the previous alphabetical order must use the new alphabetical_attributes option. github.com
html5lib 1.0b1 breaking changes
- Removed
The package no longer supports Python 2.5 and older; Python 3.2 or later is supported in one codebase. github.com - Removed
Beautiful Soup 3 treebuilder
The Beautiful Soup 3 treebuilder is gone; beautifulsoup4 can use html5lib as its parser instead, though foreign content like SVG and MathML may parse incorrectly. github.com - Removed
html5lib.treebuilders.dom
html5lib.treebuilders.dom is no longer supported; use getTreeBuilder("dom") instead, which returns the default DOM treebuilder based on xml.dom.minidom. github.com - Removed
simpletree
The simpletree module was removed; the default tree builder is now etree. github.com - Removed
XHTMLSerializer
XHTMLSerializer was removed because it never guaranteed well-formed XML output. github.com - Default changed
The default tree builder is now etree, using xml.etree.cElementTree when available and xml.etree.ElementTree otherwise. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.