Skip to content
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

Fix prescan bug: content attribute, second charset #434

Open
openandclose opened this issue Jan 16, 2020 · 1 comment
Open

Fix prescan bug: content attribute, second charset #434

openandclose opened this issue Jan 16, 2020 · 1 comment
Labels

Comments

@openandclose
Copy link

@openandclose openandclose commented Jan 16, 2020

#data
<meta http-equiv="Content-Type" content="charsetcharset=iso-8859-2">
#encoding
iso-8859-2

A content attribute parser should discard invalid 'charset' string and search next one.

While html5lib._inputstream.EncodingParser returns: 'None'.

@gsnedders gsnedders added the parser label Feb 26, 2020
@openandclose
Copy link
Author

@openandclose openandclose commented Mar 26, 2020

This is the same bug as:
validator/validator#877
jsdom/html-encoding-sniffer#7 (fixed)

@gsnedders gsnedders added input-stream and removed parser labels Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.