Skip to content

Conversation

@servo-wpt-sync
Copy link
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
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.

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