-
Notifications
You must be signed in to change notification settings - Fork 84
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
doctype
is always null
even when DocumentType
is present as a child node
#277
Labels
Milestone
Comments
@RyanHanekamp Thank you for reporting it. I took the liberty to add some formatting to your description, please check that the reported domtype matches your input. (I removed to backslashes that I assume you put in to avoid them being treated as HTML.) I will have a closer look into it in the next days and add information along the way. |
doctype
is always null
even when DocumentType
is present as a child node
doctype
is always null
even when DocumentType
is present as a child nodedoctype
is always null
even when DocumentType
is present as a child node
karfau
added a commit
that referenced
this issue
Aug 24, 2021
karfau
added a commit
that referenced
this issue
Aug 26, 2021
* fix: Add doctype when parsing from string fixes #277 * Update test/parse/doctype.test.js Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> * Update test/parse/doctype.test.js Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
This was referenced Dec 25, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Applies to 0.7.0 and 0.6.0.
The parsed document has a DTD of
The DocumentType is in the list of child nodes:
However,
document.doctype === null
. (Notundefined
.)-Ryan
The text was updated successfully, but these errors were encountered: