mozdev.org

Mozile (xhtml editing in your browser)    

resources:
Node

Class Node

Object
   |
   +--Node

class Node

 
Method Summary
 InsertionPoint getFirstInsertionPoint()
           Returns the first insertion point in this element, if any.
 InsertionPoint getLastInsertionPoint()
           Returns the last insertion point in this element, if any.
 Null getLength()
           Gets the length of this node.
 Node getParentBlock()
           Climbs toward the root of the DOM tree until it finds an ancestor node for which isBlock is true, or it reaches the documentElement.
 Integer getPosition()
           Returns the offset of this child within it's parent.
 InsertionPoint getTerminalInsertionPoint(<Integer> direction)
           Returns either the firs or the last insertion point (if any), depending on the given direction.
 String getXPath()
           Returns a simple unique XPath location for this node.
 Node insertAfter(<Node> newNode, <Node> refNode)
           A simple convenience function which inserted the newNode after the referenceNode.
 Boolean isAncestorOf(<Node> node)
           Climbs the DOM tree until it finds the given node, or the documentElement.
 Boolean isBlock()
           Checks to see if this node has a CSS display property which matches the matchDisplayBlock regular expression (defined globally at the top of this file).
 Boolean isEditable()
           Checks to see if the node is editable.


Method Detail

getFirstInsertionPoint

InsertionPoint getFirstInsertionPoint()

getLastInsertionPoint

InsertionPoint getLastInsertionPoint()

getLength

Null getLength()

getParentBlock

Node getParentBlock()

getPosition

Integer getPosition()

getTerminalInsertionPoint

InsertionPoint getTerminalInsertionPoint(<Integer> direction)

getXPath

String getXPath()

insertAfter

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

isAncestorOf

Boolean isAncestorOf(<Node> node)

isBlock

Boolean isBlock()

isEditable

Boolean isEditable()


Documentation generated by JSDoc on Wed Nov 1 15:11:15 2006

The mozile project can be contacted through the mailing list or the member list.
Copyright © 2000-2019. All rights reserved. Terms of Use & Privacy Policy.