|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--mozile.Module
|
+--mozile.dom
| Nested Class Summary | |
<static class> |
mozile.dom.Range |
<static class> |
mozile.dom.Selection |
<static class> |
mozile.dom.InternetExplorerRange |
<static class> |
mozile.dom.InternetExplorerSelection |
| Field Summary | |
<static> Object |
_matchSubstitution
|
<static> Object |
ATTRIBUTE_NODE
|
<static> Object |
CDATA_SECTION_NODE
|
<static> Object |
COMMENT_NODE
|
<static> Object |
DOCUMENT_FRAGMENT_NODE
|
<static> Object |
DOCUMENT_NODE
|
<static> Object |
DOCUMENT_TYPE_NODE
|
<static> Object |
ELEMENT_NODE
Define some shared constants. |
<static> Object |
ENTITY_NODE
|
<static> Object |
ENTITY_REFERENCE_NODE
|
<static> Array |
links
An array of "link" elements which have been added to this document. |
<static> Object |
NodeFilter
The NodeFilter is used to describe which node should be included by the TreeWalker, and which should be ignored. |
<static> Object |
NOTATION_NODE
|
<static> Object |
PROCESSING_INSTRUCTION_NODE
|
<static> Object |
selection
Selection operations. |
<static> Object |
TEXT_NODE
|
<static> Object |
TreeWalker
|
| Method Summary | |
<static> Object
|
_substituteCode(__TEXT__, __OBJECT__)
|
<static> Boolean
|
addClass(<Element> element, <String> className)
Adds a new class to an element, without changing its other classes. |
<static> Element
|
addStyleSheet(<String> href, <String> type)
Adds a "link" element with the given href and type to the head of the document. |
<static> Node
|
attachTemplate(template, <Object> object)
Takes a template node or HTML file and attaches it as a template to the given object. |
<static> String
|
convertStyleName(<String> styleName)
Converts a CSS style name (hyphenated) to a JavaScript style name (camelCase). |
<static> Element
|
createElement(<String> name)
Creates an element with a qualified name using mozile.defaultNS if this variable is defined, otherwise an unqualified element. |
<static> String
|
createElementNS(<String> namespaceURI, name)
Tries to find and return the prefix for the qualified names of node with the given namespace URI. |
<static> Void
|
focus(<Element> element)
Focus any element in a cross-browser fashion. |
<static> String
|
getAttribute(<Element> element, <String> name)
Get any attribute, even tricky ones like "class". |
<static> String
|
getAttributeNS(<Element> element, <String> namespaceURI, <String> name)
Get a namespaced attribute's value. |
<static> Element
|
getBody(<Node> node)
Gets the document's body element, if it exists. |
<static> Array
|
getChildElements(<Node> parent)
Returns an array of all given node's child elements. |
<static> String
|
getClass(<Element> element)
Returns the class attribute for the given element. |
<static> Node
|
getCommonAncestor(<Node> firstNode, <Node> secondNode)
Returns the first node which is an ancestor of both given nodes. |
<static> String
|
getDefaultNamespaceURI(<Node> node)
Climb the tree looking for the first "xmlns" attribute. |
<static> Array
|
getElements(<String> attr, <String> value, <Element> root, <Boolean> single)
Returns a list of elements, given a bunch of arguments. |
<static> Element
|
getFirstChildElement(<Node> parent)
Gets the given node's first child element, if one exists. |
<static> Element
|
getHead(<Node> node)
Gets the document's head element, if it exists. |
<static> Integer
|
getIndex(<Node> node)
Gets the index of this node among all its parent's child nodes. |
<static> String
|
getLocalName(<Node> node)
Gets the local part of the qualified name for this node. |
<static> String
|
getNamespaceURI(<Node> node)
Get the namespace of a node. |
<static> Element
|
getNextSiblingElement(<Node> node)
Gets the given node's next sibling element, if one exists. |
<static> Integer
|
getPosition(<Node> node)
Gets the index of this node among its parent's children of the same type and name. |
<static> String
|
getPrefix(<Node> node)
Gets the prefix part of the qualified name for this node. |
<static> Element
|
getPreviousSiblingElement(<Node> node)
Gets the given node's previous sibling element, if one exists. |
<static> String
|
getStyle(<Node> node, <String> cssRule)
Get the string value of a CSS style declaration. |
<static> Void
|
getStyleSheet(element)
Adds a "link" element with the given href and type to the head of the document. |
<static> String
|
getText(<Node> node)
Finds all of the text nodes under a given node and returns a string with their concatenated contents. |
<static> Number
|
getX(<Node> node, <Container> container)
Gets the position of the element using offsetLeft relative to the container (if provided) or the document element. |
<static> Number
|
getY(<Node> node, <Container> container)
Gets the position of the element using offsetTop relative to the container (if provided) or the document element. |
<static> Boolean
|
hasClass(<Element> element, <String> className)
Determines whether an element's class attribute includes a given class name. |
<static> Node
|
importNode(<Node> node, <Boolean> deep)
Clones an element into the current document and namespace. |
<static> Node
|
insertAfter(<Node> newNode, <Node> refNode)
Inserts the newNode after the refNode in the refNode's parent node. |
<static> Boolean
|
isAncestorOf(<Node> ancestorNode, <Node> descendantNode, <Node> limitNode)
Determines whether the ancestorNode is an ancestor of the descendantNode. |
<static> Boolean
|
isHTML(<Node> node)
A test to see if the given node belongs to an X/HTML document. |
<static> Boolean
|
isIgnored(<Node> node)
A test to see if the given node should be ignored. |
<static> Boolean
|
isVisible(<Node> node)
Determines whether a given node is visible to the user. |
<static> Boolean
|
isWhitespace(<Node> node)
Decides whether the given node contains non-whitespace text. |
<static> String
|
lookupNamespaceURI(<Node> node, <String> prefix)
Tries to find and return the URI of the namespace of this node. |
<static> String
|
lookupPrefix(<Node> node, <String> namespaceURI)
Tries to find and return the prefix for the qualified names of node with the given namespace URI. |
<static> Node
|
prependChild(<Node> newNode, <Node> parentNode)
Inserts a new node as the first child of the given parent node. |
<static> Void
|
removeChildNodes(<Node> node)
Removes all the child nodes of the given node. |
<static> Boolean
|
removeClass(<Element> element, <String> className)
Removes a class from an element, without changing its other classes. |
<static> String
|
setAttribute(<Element> element, name, <String> value)
Set any attribute along with the element's properties. |
<static> String
|
setClass(<Element> element, <String> value)
Sets the class attribute for the given element. |
<static> String
|
setStyle(<Element> element, rule, value)
Sets the CSS style of an element. |
| Field Detail |
<static> Object _matchSubstitution
<static> Object ATTRIBUTE_NODE
<static> Object CDATA_SECTION_NODE
<static> Object COMMENT_NODE
<static> Object DOCUMENT_FRAGMENT_NODE
<static> Object DOCUMENT_NODE
<static> Object DOCUMENT_TYPE_NODE
<static> Object ELEMENT_NODE
<static> Object ENTITY_NODE
<static> Object ENTITY_REFERENCE_NODE
<static> Array links
<static> Object NodeFilter
<static> Object NOTATION_NODE
<static> Object PROCESSING_INSTRUCTION_NODE
<static> Object selection
<static> Object TEXT_NODE
<static> Object TreeWalker