MCPcopy
hub / github.com/inikulin/parse5 / Document

Interface Document

packages/parse5/lib/tree-adapters/default.ts:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import type { TreeAdapter, TreeAdapterTypeMap } from './interface.js';
4
5export interface Document {
6 /** The name of the node. */
7 nodeName: '#document';
8 /**
9 * Document mode.
10 *
11 * @see {@link DOCUMENT_MODE} */
12 mode: DOCUMENT_MODE;
13 /** The node's children. */
14 childNodes: ChildNode[];
15 /** Comment source code location info. Available if location info is enabled. */
16 sourceCodeLocation?: Location | null;
17}
18
19export interface DocumentFragment {
20 /** The name of the node. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…