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

Comments

@openandclose
Copy link

#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'.

@openandclose
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants