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

How should we treat the contents of <noscript>? #24

Open
patchyderm opened this issue Oct 8, 2018 · 0 comments
Open

How should we treat the contents of <noscript>? #24

patchyderm opened this issue Oct 8, 2018 · 0 comments

Comments

@patchyderm
Copy link

patchyderm commented Oct 8, 2018

In this example,

(html5-parser:parse-html5 "<noscript><p><b>Please turn on Javascript.</b></p></noscript>")

the noscript element's CHILD-NODES is this.

(#<HTML5-PARSER::TEXT-NODE "<p><b>Please turn on Javascript.</b></p>" {12A47249}>)

Why does cl-html5-parser choose to treat the child element as just text, instead of parsing them as html? It seems the Python html5lib takes an optional "scripting" argument that affects how noscript behaves.

https://github.com/html5lib/html5lib-python/blob/950ea0ec60970ba1c88bd9e35d8d85c2a1f318e4/html5lib/html5parser.py#L277

What do you all (users, maintainers of the library) think about an option like this?

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