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

Issue while parsing valid <meta> tags #586

Open
ikus060 opened this issue Mar 5, 2025 · 0 comments
Open

Issue while parsing valid <meta> tags #586

ikus060 opened this issue Mar 5, 2025 · 0 comments

Comments

@ikus060
Copy link

ikus060 commented Mar 5, 2025

I'm running into issue with HTML parsing of the following HTML.

parser = html5lib.HTMLParser(strict=True)
parser.parse('<!DOCTYPE html><html lang="en"><head><title>test</title><meta http-equiv="refresh" content="1; url=http://127.0.0.1:54583/restore/admin/testcases/%3CF%21ch%C3%AFer%3E%20%28%40vec%29%20%7Bc%C3%A0ra%C3%A7t%23%C3%A8r%C3%AB%7D%20%24%C3%A9p%C3%AAcial?date=1454448640&raw=1" ></head><body>COUCOU</body></html>')

I get this exception.

html5lib.html5parser.ParseError: Named entity expected. Got none.

According to w3c validator. This is valid.

Image

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

No branches or pull requests

1 participant