Skip to content

Conversation

@pizzacat83
Copy link
Contributor

Fixes #696.

Applies the recent change to the HTML Standard on the attribute serialization logic.

There was an update to the HTML Standard (whatwg/html@e21bd3b) to mandate escaping of '<' and '>' in attribute values.

This commit updates the attribute serialization logic to comply with the current specification.
@simonwuelker
Copy link
Contributor

Thanks! This does fix the three tests from web-platform-tests/wpt#27501 for servo.

@simonwuelker simonwuelker added this pull request to the merge queue Nov 30, 2025
Merged via the queue into servo:main with commit 2b9cd8d Nov 30, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V-breaking Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

serialize() should escape '<' and '>' in attributes, according to the HTML Standard

2 participants