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
Comments before html
or doctype.
#26
Comments
Comments before the html element is valid. Can you provide an example that causes the error? The following works fine for me.
|
Ah, sorry, I should've tried it without CXML. It works like you said, only when
|
Delaying adding the comment node until |
I've seen some documents in the wild that have a
<!-- ... -->
comment block before the firsthtml
node (but after<!doctype>
). I'm not super sure if that's "valid", but it is annoying that that's causing an error. Since it's a comment, I could definitely see that the error is basically given a restart to ignore any nodes before actual start of the document, alternatively those could be stored and handled once the document has been created?The text was updated successfully, but these errors were encountered: