-
Notifications
You must be signed in to change notification settings - Fork 73
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
Noscript tag stop working in html on adding MarkRequestMiddleware class in django #113
Comments
I am getting the same issue; and it is very problematic when trying to use amp because the "<style amp-boilerplate>" is required but is not rendered properly. It may be related with html5lib/html5lib-python#104 But I am not sure. Thank you, |
@jlariza You are correct, the issue is with
The comment is my changed line. I changed it to mirror the Quickstart documentation from BeautifulSoup: https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.html after that my issues went away. |
There's an undocumented html5 parser setting that you can use to specify the parser. So just add the following to your django settings:
|
as far as I know, there are other issues when not using html5lib? any experiences? maybe @andrewsmedina has some insights to share? I am using |
and....html5lib==1.0.1 solves this problem for me... |
I want to use style tag inside noscript tag to add a fallback message but style tag inside noscript tag gets minified and rendered as string.
The text was updated successfully, but these errors were encountered: