Class mozile.dom

Object
   |
   +--mozile.Module
         |
         +--mozile.dom

class mozile.dom
extends mozile.Module

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

_matchSubstitution

<static> Object _matchSubstitution

ATTRIBUTE_NODE

<static> Object ATTRIBUTE_NODE

CDATA_SECTION_NODE

<static> Object CDATA_SECTION_NODE

COMMENT_NODE

<static> Object COMMENT_NODE

DOCUMENT_FRAGMENT_NODE

<static> Object DOCUMENT_FRAGMENT_NODE

DOCUMENT_NODE

<static> Object DOCUMENT_NODE

DOCUMENT_TYPE_NODE

<static> Object DOCUMENT_TYPE_NODE

ELEMENT_NODE

<static> Object ELEMENT_NODE

ENTITY_NODE

<static> Object ENTITY_NODE

ENTITY_REFERENCE_NODE

<static> Object ENTITY_REFERENCE_NODE

links

<static> Array links

NodeFilter

<static> Object NodeFilter

NOTATION_NODE

<static> Object NOTATION_NODE

PROCESSING_INSTRUCTION_NODE

<static> Object PROCESSING_INSTRUCTION_NODE

selection

<static> Object selection

TEXT_NODE

<static> Object TEXT_NODE

TreeWalker

<static> Object TreeWalker


Method Detail

_substituteCode

<static> Object _substituteCode(__TEXT__, __OBJECT__)

addClass

<static> Boolean addClass(<Element> element, <String> className)

addStyleSheet

<static> Element addStyleSheet(<String> href, <String> type)

attachTemplate

<static> Node attachTemplate(template, <Object> object)

convertStyleName

<static> String convertStyleName(<String> styleName)

createElement

<static> Element createElement(<String> name)

createElementNS

<static> String createElementNS(<String> namespaceURI, name)

focus

<static> Void focus(<Element> element)

getAttribute

<static> String getAttribute(<Element> element, <String> name)

getAttributeNS

<static> String getAttributeNS(<Element> element, <String> namespaceURI, <String> name)

getBody

<static> Element getBody(<Node> node)

getChildElements

<static> Array getChildElements(<Node> parent)

getClass

<static> String getClass(<Element> element)

getCommonAncestor

<static> Node getCommonAncestor(<Node> firstNode, <Node> secondNode)

getDefaultNamespaceURI

<static> String getDefaultNamespaceURI(<Node> node)

getElements

<static> Array getElements(<String> attr, <String> value, <Element> root, <Boolean> single)

getFirstChildElement

<static> Element getFirstChildElement(<Node> parent)

getHead

<static> Element getHead(<Node> node)

getIndex

<static> Integer getIndex(<Node> node)

getLocalName

<static> String getLocalName(<Node> node)

getNamespaceURI

<static> String getNamespaceURI(<Node> node)

getNextSiblingElement

<static> Element getNextSiblingElement(<Node> node)

getPosition

<static> Integer getPosition(<Node> node)

getPrefix

<static> String getPrefix(<Node> node)

getPreviousSiblingElement

<static> Element getPreviousSiblingElement(<Node> node)

getStyle

<static> String getStyle(<Node> node, <String> cssRule)

getStyleSheet

<static> Void getStyleSheet(element)

getText

<static> String getText(<Node> node)

getX

<static> Number getX(<Node> node, <Container> container)

getY

<static> Number getY(<Node> node, <Container> container)

hasClass

<static> Boolean hasClass(<Element> element, <String> className)

importNode

<static> Node importNode(<Node> node, <Boolean> deep)

insertAfter

<static> Node insertAfter(<Node> newNode, <Node> refNode)

isAncestorOf

<static> Boolean isAncestorOf(<Node> ancestorNode, <Node> descendantNode, <Node> limitNode)

isHTML

<static> Boolean isHTML(<Node> node)

isIgnored

<static> Boolean isIgnored(<Node> node)

isVisible

<static> Boolean isVisible(<Node> node)

isWhitespace

<static> Boolean isWhitespace(<Node> node)

lookupNamespaceURI

<static> String lookupNamespaceURI(<Node> node, <String> prefix)

lookupPrefix

<static> String lookupPrefix(<Node> node, <String> namespaceURI)

prependChild

<static> Node prependChild(<Node> newNode, <Node> parentNode)

removeChildNodes

<static> Void removeChildNodes(<Node> node)

removeClass

<static> Boolean removeClass(<Element> element, <String> className)

setAttribute

<static> String setAttribute(<Element> element, name, <String> value)

setClass

<static> String setClass(<Element> element, <String> value)

setStyle

<static> String setStyle(<Element> element, rule, value)


Documentation generated by JSDoc on Wed Feb 20 13:25:28 2008