|
|||||||||
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 |
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> Void
|
addStyleSheet(<String> href, <String> type)
Adds a "link" element with the given href and type to the head of the document. |
<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> 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> 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> 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> String
|
getStyle(<Node> node, <String> cssRule)
Get the string value of a CSS style declaration. |
<static> String
|
getX(<Node> obj, <Container> container)
Gets the position of the element using offsetLeft relative to the container (if provided) or the document element. |
<static> String
|
getY(<Node> obj, <Container> container)
Gets the position of the element using offsetTop relative to the container (if provided) or the document element. |
<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
|
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> String
|
setStyle(<Element> element, rule, value)
Sets the CSS style of an element. |
Field Detail |
<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
Method Detail |
<static> Void addStyleSheet(<String> href, <String> type)
href
- The target of the link.
type
- Optional. The type of the link. Defaults to "text/css".
<static> String convertStyleName(<String> styleName)
styleName
- The name of a CSS rule.
<static> Element createElement(<String> name)
name
- The name of the element.
<static> String createElementNS(<String> namespaceURI, name)
namespaceURI
- The namespace URI to find the prefix for.
node
- The node to check.
<static> String getAttributeNS(<Element> element, <String> namespaceURI, <String> name)
element
-
namespaceURI
- The URI of the namespace to check.
name
- The local name of the attribute.
<static> Element getBody(<Node> node)
node
- Optional. A node belonging to the document to be searched. If none is given, the current document is used.
<static> Array getChildElements(<Node> parent)
parent
- The parent node to check.
<static> Node getCommonAncestor(<Node> firstNode, <Node> secondNode)
firstNode
-
secondNode
-
<static> String getDefaultNamespaceURI(<Node> node)
node
- The node to check.
<static> Element getFirstChildElement(<Node> parent)
parent
- The parent node to check.
<static> Element getHead(<Node> node)
node
- Optional. A node belonging to the document to be searched. If none is given, the current document is used.
<static> Integer getIndex(<Node> node)
node
- The node to check.
<static> String getLocalName(<Node> node)
node
- The node to check.
<static> String getNamespaceURI(<Node> node)
node
- The node to check.
<static> Element getNextSiblingElement(<Node> node)
node
- The node to start with.
<static> Integer getPosition(<Node> node)
node
- The node to check.
<static> String getPrefix(<Node> node)
node
- The node to check.
<static> String getStyle(<Node> node, <String> cssRule)
node
- The node which has the style.
cssRule
- The name of a CSS rule.
<static> String getX(<Node> obj, <Container> container)
obj
- The target element.
container
- Optional. The element relative to which the X position will be measured.
<static> String getY(<Node> obj, <Container> container)
obj
- The target element.
container
- Optional. The element relative to which the X position will be measured.
<static> Node insertAfter(<Node> newNode, <Node> refNode)
newNode
- The node to insert.
refNode
- Insert the new node after this node.
<static> Boolean isAncestorOf(<Node> ancestorNode, <Node> descendantNode, <Node> limitNode)
ancestorNode
-
descendantNode
-
limitNode
- Optional. The search will stop at this node, no matter what happens.
<static> Boolean isHTML(<Node> node)
node
- A node belonging to the document to be checked.
<static> Boolean isIgnored(<Node> node)
node
- The node to check.
<static> Boolean isWhitespace(<Node> node)
node
- The node to be checked.
<static> String lookupNamespaceURI(<Node> node, <String> prefix)
node
- The node to check.
prefix
- Optional. The prefix to check for. If none is given, the prefix of the node is used (if there is one).
<static> String lookupPrefix(<Node> node, <String> namespaceURI)
node
- The node to check.
namespaceURI
- Optional. The namespace URI to find the prefix for. If none is given, this node's namespaceURI is used.
<static> Node prependChild(<Node> newNode, <Node> parentNode)
newNode
- The node to insert.
parentNode
- The parent to attach this node to.
<static> Void removeChildNodes(<Node> node)
node
- The node to remove the child nodes from.
<static> String setStyle(<Element> element, rule, value)
element
- The element which has the style.
style
- Either a string denoting the CSS style or an object with keys
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |