Skip to content

Fix tests to match Encoding spec #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 24, 2014
Merged

Fix tests to match Encoding spec #40

merged 3 commits into from
Nov 24, 2014

Conversation

gsnedders
Copy link
Member

See commit messages for specific changes; note this doesn't change the names to case-sensitively match the names in the Encoding spec.

Also, Encoding makes the following test problematic:

#data
<!DOCTYPE HTML>
<script>document.write('<meta charset="ISO-8859-' + '2">')</script>
#encoding
iso-8859-2

This is now a test that should return different values between the pre-parser (scanning to infinity) and the full parser! We should probably split the tests up for such things, and only allow pre-parser ones scanning to the recommended limit.

@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/592

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@gsnedders
Copy link
Member Author

Fixes #37.

gsnedders added a commit that referenced this pull request Nov 24, 2014
Fix tests to match Encoding spec
@gsnedders gsnedders merged commit 11aec47 into master Nov 24, 2014
@gsnedders gsnedders deleted the fix-webencodings branch November 24, 2014 11:55
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.

2 participants