We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Document
ChildNode
1 parent 297e440 commit 02387d3Copy full SHA for 02387d3
1 file changed
src/node.ts
@@ -26,7 +26,9 @@ export type ChildNode =
26
| Comment
27
| ProcessingInstruction
28
| Element
29
- | CDATA;
+ | CDATA
30
+ // `Document` is also used for document fragments, and can be a child node.
31
+ | Document;
32
export type AnyNode = ParentNode | ChildNode;
33
34
/**
0 commit comments