-
-
Notifications
You must be signed in to change notification settings - Fork 28
Classes that make up DOM
Greg Bowler edited this page Jun 20, 2017
·
15 revisions
Here is a list of all classes that make up DOM in alphabetical order with some basic usage examples:
-
AttrRepresents an attribute on an Element object. -
CharacterDataRepresents a Node object that contains characters. -
ChildNode(Trait) Contains methods that are particular to Node objects that can have a parent. -
CommentRepresents textual notations within markup. -
DocumentRepresents any web page loaded in the browser and serves as an entry point into the web page's content. -
DocumentFragmentRepresents a minimal document object that has no parent. -
DocumentTypeRepresents a Node containing a doctype. -
ElementThe most general base class from which all objects in a Document inherit. -
HTMLCollectionRepresents a Node list that can only contain Element nodes. -
HTMLDocumentProvides access to special properties and methods not present by default on a regular (XML) document. -
LiveProperty(Trait) Internal trait used to allow getting and setting of properties representing live data structures. -
NodeA Node is an interface from which a number of DOM types inherit. -
NonDocumentTypeChildNode(Trait) Contains methods that are particular to Node objects that can have a parent but not suitable for DocumentType. -
ParentNode(Trait) Contains methods that are particular to Node objects that can have children. -
TextRepresents the textual content of Element or Attr. -
TokenListRepresents a set of space-separated tokens. -
XMLDocumentProvides access to special properties and methods not present by default on a regular document.
This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly get or set an element's attribute as a string (e.g., Element.getAttribute().
-
name(string) (Readonly) The attributes name. -
prefix(?string) (Readonly) The namespace prefix of the attribute, or null if no prefix is specified. -
ownerElement(Element) (Readonly) The element that the Attr is attached to. -
value(string) The attribute's value.
Jump to the CharacterData source code
Read CharacterData specification
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
// TODO.
PHP.GT/Dom is a separately maintained component of PHP.GT/WebEngine.