Skip to content

Implement interface Document #20

Description

@hepheir

https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#i-Document

Interface Document

IDL Definition

More
interface Document : Node {
  readonly attribute  DocumentType         doctype;
  readonly attribute  DOMImplementation    implementation;
  readonly attribute  Element              documentElement;
  Element                   createElement(in DOMString tagName)
                                          raises(DOMException);
  DocumentFragment          createDocumentFragment();
  Text                      createTextNode(in DOMString data);
  Comment                   createComment(in DOMString data);
  CDATASection              createCDATASection(in DOMString data)
                                               raises(DOMException);
  ProcessingInstruction     createProcessingInstruction(in DOMString target,
                                                        in DOMString data)
                                                        raises(DOMException);
  Attr                      createAttribute(in DOMString name)
                                            raises(DOMException);
  EntityReference           createEntityReference(in DOMString name)
                                                  raises(DOMException);
  NodeList                  getElementsByTagName(in DOMString tagname);
};

Attributes

  • readonly attribute DocumentType doctype
  • readonly attribute DOMImplementation implementation
  • readonly attribute Element documentElement

Methods

  • Element createElement(in DOMString tagName)
  • DocumentFragment createDocumentFragment()
  • Text createTextNode(in DOMString data)
  • Comment createComment(in DOMString data)
  • CDATASection createCDATASection(in DOMString data)
  • ProcessingInstruction createProcessingInstruction(in DOMString target, in DOMString data)
  • Attr createAttribute(in DOMString name)
  • EntityReference createEntityReference(in DOMString name)
  • NodeList getElementsByTagName(in DOMString tagname)

Overrides

  • Node insertBefore(in Node newChild, in Node refChild)
  • Node replaceChild(in Node newChild, in Node oldChild)
  • Node appendChild(in Node newChild)
  • Node cloneNode(in boolean deep)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions