-
Notifications
You must be signed in to change notification settings - Fork 83
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
karfau
added
the
needs investigation
Information is missing and needs to be researched
label
Aug 18, 2021
@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. |
karfau
added
bug
Something isn't working
spec:DOM-Level-2
https://www.w3.org/TR/DOM-Level-2-Core/
and removed
needs investigation
Information is missing and needs to be researched
labels
Aug 19, 2021
karfau
modified the milestones:
next release,
0.7.1,
next next release,
after next release
Aug 19, 2021
karfau
changed the title
dom.doctype is null, but the document has a child node of DocumentType
Aug 20, 2021
doctype
is always null
even when DocumentType
is present as a child node
karfau
changed the title
Aug 20, 2021
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: