1interface Document : Node {
2 readonly attribute DocumentType doctype;
3 readonly attribute DOMImplementation implementation;
4 readonly attribute Element documentElement;
5 Element createElement(in DOMString tagName)
6 raises(DOMException);
7 DocumentFragment createDocumentFragment();
8 Text createTextNode(in DOMString data);
9 Comment createComment(in DOMString data);
10 CDATASection createCDATASection(in DOMString data)
11 raises(DOMException);
12 ProcessingInstruction createProcessingInstruction(in DOMString target,
13 in DOMString data)
14 raises(DOMException);
15 Attr createAttribute(in DOMString name)
16 raises(DOMException);
17 EntityReference createEntityReference(in DOMString name)
18 raises(DOMException);
19 NodeList getElementsByTagName(in DOMString tagname);
20 // Introduced in DOM Level 2:
21 Node importNode(in Node importedNode,
22 in boolean deep)
23 raises(DOMException);
24 // Introduced in DOM Level 2:
25 Element createElementNS(in DOMString namespaceURI,
26 in DOMString qualifiedName)
27 raises(DOMException);
28 // Introduced in DOM Level 2:
29 Attr createAttributeNS(in DOMString namespaceURI,
30 in DOMString qualifiedName)
31 raises(DOMException);
32 // Introduced in DOM Level 2:
33 NodeList getElementsByTagNameNS(in DOMString namespaceURI,
34 in DOMString localName);
35 // Introduced in DOM Level 2:
36 Element getElementById(in DOMString elementId);
37};
38