MCPcopy
hub / github.com/rrweb-io/rrweb / IRRDocument

Interface IRRDocument

packages/rrdom/src/document.ts:36–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 toString(): string;
35}
36export interface IRRDocument extends IRRNode {
37 documentElement: IRRElement | null;
38
39 body: IRRElement | null;
40
41 head: IRRElement | null;
42
43 implementation: IRRDocument;
44
45 firstElementChild: IRRElement | null;
46
47 readonly nodeName: '#document';
48
49 compatMode: 'BackCompat' | 'CSS1Compat';
50
51 createDocument(
52 _namespace: string | null,
53 _qualifiedName: string | null,
54 _doctype?: DocumentType | null,
55 ): IRRDocument;
56
57 createDocumentType(
58 qualifiedName: string,
59 publicId: string,
60 systemId: string,
61 ): IRRDocumentType;
62
63 createElement(tagName: string): IRRElement;
64
65 createElementNS(_namespaceURI: string, qualifiedName: string): IRRElement;
66
67 createTextNode(data: string): IRRText;
68
69 createComment(data: string): IRRComment;
70
71 createCDATASection(data: string): IRRCDATASection;
72
73 open(): void;
74
75 close(): void;
76
77 write(content: string): void;
78}
79export interface IRRElement extends IRRNode {
80 tagName: string;
81 attributes: Record<string, string>;

Callers 68

document.test.tsFile · 0.65
rebuild.test.tsFile · 0.65
buildNodeFunction · 0.65
diff.test.tsFile · 0.65
document.test.tsFile · 0.65
createOrGetNodeFunction · 0.65
buildFromNodeFunction · 0.65
buildNodeFunction · 0.65

Implementers 2

BaseRRDocumentpackages/rrdom/src/document.ts
RRDocumentpackages/rrdom-nodejs/src/document-nod

Calls

no outgoing calls

Tested by

no test coverage detected