HTMLDocument (open)
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268
Syntax
LOADLIB "wh::xml/dom.whlib";
OBJECTTYPE HTMLDocument
Properties
- PROPERTY appliedstyles (inherited from XmlNode)
- PROPERTY attributes (inherited from XmlNode)
- PROPERTY ATTRIBUTE_NODE (inherited from XmlNode)
- PROPERTY body
The of this HTML document
- PROPERTY CDATA_SECTION_NODE (inherited from XmlNode)
- PROPERTY childElementCount (inherited from XmlNode)
- PROPERTY childnodes (inherited from XmlNode)
- PROPERTY COMMENT_NODE (inherited from XmlNode)
- PROPERTY documentelement (inherited from XmlDocument)
- PROPERTY DOCUMENT_FRAGMENT_NODE (inherited from XmlNode)
- PROPERTY DOCUMENT_NODE (inherited from XmlNode)
- PROPERTY DOCUMENT_TYPE_NODE (inherited from XmlNode)
- PROPERTY ELEMENT_NODE (inherited from XmlNode)
- PROPERTY ENTITY_NODE (inherited from XmlNode)
- PROPERTY ENTITY_REFERENCE_NODE (inherited from XmlNode)
- PROPERTY firstchild (inherited from XmlNode)
- PROPERTY firstElementChild (inherited from XmlNode)
- PROPERTY head
The of this HTML document, if present
- PROPERTY innerhtml (inherited from XmlNode)
- PROPERTY innerxml (inherited from XmlNode)
- PROPERTY lastchild (inherited from XmlNode)
- PROPERTY lastElementChild (inherited from XmlNode)
- PROPERTY linenum (inherited from XmlNode)
- PROPERTY localname (inherited from XmlNode)
- PROPERTY namespaceuri (inherited from XmlNode)
- PROPERTY nextElementSibling (inherited from XmlNode)
- PROPERTY nextsibling (inherited from XmlNode)
- PROPERTY nodeid (inherited from XmlNode)
- PROPERTY nodename (inherited from XmlNode)
- PROPERTY nodetype (inherited from XmlNode)
- PROPERTY nodevalue (inherited from XmlNode)
- PROPERTY NOTATION_NODE (inherited from XmlNode)
- PROPERTY outerhtml (inherited from XmlNode)
- PROPERTY outerxml (inherited from XmlNode)
- PROPERTY ownerdocument (inherited from XmlNode)
- PROPERTY parentnode (inherited from XmlNode)
- PROPERTY prefix (inherited from XmlNode)
- PROPERTY previousElementSibling (inherited from XmlNode)
- PROPERTY previoussibling (inherited from XmlNode)
- PROPERTY PROCESSING_INSTRUCTION_NODE (inherited from XmlNode)
- PROPERTY readonly (inherited from XmlDocument)
- PROPERTY textcontent (inherited from XmlNode)
Concatenate all text and cdata children from this element and its children
- PROPERTY TEXT_NODE (inherited from XmlNode)
- PROPERTY title
The text contents of the
<title>
element. If set but no<title>
element is present it will be added - PROPERTY userdata (inherited from XmlNode)
Functions
- OBJECT FUNCTION AppendChild(OBJECT newchild) (inherited from XmlNode)
- MACRO AppendText(STRING text, STRING injectwhere) (inherited from XmlNode)
http://mootools.net/core/docs/1.5.1/Element/Element#Element:appendText
- OBJECT FUNCTION CloneNode(BOOLEAN deep) (inherited from XmlDocument)
- OBJECT FUNCTION CreateAttribute(STRING name) (inherited from XmlDocument)
- OBJECT FUNCTION CreateAttributeNS(STRING namespaceuri, STRING qualifiedname) (inherited from XmlDocument)
- OBJECT FUNCTION CreateCDATASection(STRING data) (inherited from XmlDocument)
- OBJECT FUNCTION CreateComment(STRING data) (inherited from XmlDocument)
- OBJECT FUNCTION CreateDocumentFragment() (inherited from XmlDocument)
- OBJECT FUNCTION CreateElement(STRING tagname) (inherited from XmlDocument)
- OBJECT FUNCTION CreateElementNS(STRING namespaceuri, STRING qualifiedname) (inherited from XmlDocument)
- OBJECT FUNCTION CreateProcessingInstruction(STRING target, STRING data) (inherited from XmlDocument)
- OBJECT FUNCTION CreateTextNode(STRING data) (inherited from XmlDocument)
- OBJECT FUNCTION CreateXPathQuery() (inherited from XmlDocument)
- OBJECT FUNCTION Dispose() (inherited from XmlNode)
- OBJECT FUNCTION Empty() (inherited from XmlNode)
Remove all our children
- OBJECT FUNCTION Evaluate(STRING expression, OBJECT contextnode, OBJECT resolver, INTEGER type, OBJECT result) (inherited from XmlDocument)
Evaluate an XPATH expression
- BLOB FUNCTION GetCanonicalizedDocument(STRING mode, RECORD options) (inherited from XmlDocument)
Canonicalize document
- BLOB FUNCTION GetDocumentBlob(BOOLEAN formatted, STRING encoding) (inherited from XmlDocument)
- OBJECT FUNCTION GetElement(STRING selectors) (inherited from XmlNode)
- OBJECT FUNCTION GetElementById(STRING elementid)
- OBJECT ARRAY FUNCTION GetElements(STRING selectors) (inherited from XmlNode)
- OBJECT FUNCTION GetElementsByTagName(STRING tagname) (inherited from XmlDocument)
- OBJECT FUNCTION GetElementsByTagNameNS(STRING namespaceuri, STRING localname) (inherited from XmlDocument)
- OBJECT FUNCTION GetEvaluatedElement(OBJECT resolver, STRING expression) (inherited from XmlDocument)
High level XPATH wrapper, directly gives you the result node, for any expression evaluating only to nodes
- OBJECT ARRAY FUNCTION GetEvaluatedElements(OBJECT resolver, STRING expression) (inherited from XmlDocument)
High level XPATH wrapper, directly gives you the nodes, for any expression evaluating only to nodes
- RECORD ARRAY FUNCTION GetParseErrors() (inherited from XmlDocument)
- STRING FUNCTION GetStyle(STRING style) (inherited from XmlNode)
- RECORD ARRAY FUNCTION GetStyles() (inherited from XmlNode)
- RECORD ARRAY FUNCTION GetVisibleNamespaces() (inherited from XmlNode)
Get a list of visible namespaces
- BOOLEAN FUNCTION HasAttributes() (inherited from XmlNode)
- BOOLEAN FUNCTION HasChildNodes() (inherited from XmlNode)
- OBJECT FUNCTION ImportNode(OBJECT node, BOOLEAN deep) (inherited from XmlDocument)
- OBJECT FUNCTION Inject(OBJECT el, STRING injectwhere) (inherited from XmlNode)
Inject this node
- OBJECT FUNCTION InsertBefore(OBJECT newchild, OBJECT refchild) (inherited from XmlNode)
- BOOLEAN FUNCTION IsSameNode(OBJECT other) (inherited from XmlNode)
- RECORD ARRAY FUNCTION ListAttributes() (inherited from XmlNode)
List attributes on a node
- OBJECT ARRAY FUNCTION ListElements(STRING namespaceuri, STRING localname) (inherited from XmlDocument)
List all elements in the document matching namespace and name
- STRING FUNCTION LookupNamespaceURI(STRING prefix) (inherited from XmlNode)
- RECORD FUNCTION LookupQualifiedName(STRING qname) (inherited from XmlNode)
Resolve a full name from a qualified name
- MACRO Normalize() (inherited from XmlNode)
- MACRO NormalizeDocument() (inherited from XmlDocument)
- OBJECT FUNCTION QuerySelector(STRING selectors) (inherited from XmlNode)
- OBJECT FUNCTION QuerySelectorAll(STRING selectors) (inherited from XmlNode)
- MACRO Remove() (inherited from XmlNode)
Remove the current node from its parent
- OBJECT FUNCTION RemoveChild(OBJECT oldchild) (inherited from XmlNode)
- OBJECT FUNCTION ReplaceChild(OBJECT newchild, OBJECT oldchild) (inherited from XmlNode)