---
title: "lxml-html-clean 0.4.6 Breaking Changes on PyPI | Since.dev"
description: "What each lxml-html-clean release removed, renamed or changed: 4 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/lxml-html-clean
last_updated: 2026-12-04
---

# lxml-html-clean breaking changes

lxml-html-clean 0.4.6 (October 26, 2026) is its newest release with breaking changes, 2 of them. The first: CSS expression() sanitizer now bounds bodies and drops whole style on long input in lxml-html-clean 0.4.6. Every breaking API change we have recorded in lxml-html-clean on PyPI: 4 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.4.7`, released November 26, 2026. [Source repository](https://github.com/fedora-python/lxml%5Fhtml%5Fclean)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.3.0](#v-0-3-0) to [0.4.6](#v-0-4-6): 3 breaking changes in 2 versions.

## lxml-html-clean 0.4.6 breaking changes

lxml-html-clean 0.4.6, released October 26, 2026: 2 breaking changes.

- **Behavior changed**  

Style bodies after expression( longer than 1024 characters now cause the entire style to be dropped. Review any code that relies on long expression bodies being kept. [github.com](https://github.com/fedora-python/lxml%5Fhtml%5Fclean/blob/0.4.6/CHANGES.rst)
- **Behavior changed**  

Image data URLs with a MIME subtype longer than 255 characters are now handled differently. Check code that depends on very long image MIME subtypes. [github.com](https://github.com/fedora-python/lxml%5Fhtml%5Fclean/blob/0.4.6/CHANGES.rst)

## lxml-html-clean 0.4.0 breaking changes

lxml-html-clean 0.4.0, released November 14, 2024: 1 breaking change.

- **Behavior changed** `Cleaner`  

Cleaner now scans CSS comments for hidden JavaScript in contexts such as svg or math tags. If suspicious content is found, only the comment is removed, so output may differ from earlier versions. [github.com](https://github.com/fedora-python/lxml%5Fhtml%5Fclean/blob/0.4.0/CHANGES.rst)

## lxml-html-clean 0.3.0 breaking changes

lxml-html-clean 0.3.0, released October 9, 2024: 1 breaking change.

- **Behavior changed** `Cleaner`  

Cleaner removes URLs it judges ambiguous, which it previously kept, and URL parsing was enhanced. Code relying on URLs passing through unchanged may need review. [github.com](https://github.com/fedora-python/lxml%5Fhtml%5Fclean/blob/0.3.0/CHANGES.rst)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
