Skip to content

script: Reload the page when an incompatible encoding is detected during parsing#56975

Closed
servo-wpt-sync wants to merge 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41430
Closed

script: Reload the page when an incompatible encoding is detected during parsing#56975
servo-wpt-sync wants to merge 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41430

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

This continues servo/servo#41376. With this change servo will properly parse <meta charset> and <meta http-equiv="content-type"> tags and reload the page when appropriate.

Encoding hints encountered during dynamic markup insertion (such as document.write) or when the encoding does not matter (such as during DOMParser.parseFromString) are ignored.

@jdm I've added you as a co-author on the commit, since I used https://gist.github.com/jdm/1f08c1b8b3c33d3f5c44882a1b5eb822 which you posted earlier this year on zulip.

Companion PR for servo/html5ever#702
Fixes servo/servo#24898
Closes servo/servo#6414
Reviewed in servo/servo#41430

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync deleted the servo_export_41430 branch January 29, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

meta charset and meta equiv="Content-Type" seem unable to switch away from UTF-8 Support non-UTF-8 character encodings for HTML

3 participants