[scriptable, uuid(f0aef489-18c5-4de6-99d5-58b3758b098c)]
interface nsIDOMNSElement : nsISupports
Attributes
Returns the number of child nodes that are nsIDOMElements. Defined by the ElementTraversal spec.
readonly attribute
unsigned long
childElementCount
Returns a live nsIDOMNodeList of the current child elements.
readonly attribute
nsIDOMNodeList
children
The width in CSS pixels of the element's padding box. If the element is scrollable, the scroll bars are included inside this height.
readonly attribute
long
clientHeight
The width in CSS pixels of the element's left border and scrollbar if it is present on the left side.
readonly attribute
long
clientLeft
The height in CSS pixels of the element's top border.
readonly attribute
long
clientTop
The height in CSS pixels of the element's padding box. If the element is scrollable, the scroll bars are included inside this width.
readonly attribute
long
clientWidth
Similar as the attributes on nsIDOMNode, but navigates just elements rather than all nodes. Defined by the ElementTraversal spec.
readonly attribute
nsIDOMElement
firstElementChild
readonly attribute
nsIDOMElement
lastElementChild
readonly attribute
nsIDOMElement
nextElementSibling
readonly attribute
nsIDOMElement
previousElementSibling
The height of the scrollable area of the element. If the element is not scrollable, scrollHeight is equivalent to the offsetHeight.
readonly attribute
long
scrollHeight
The horizontal scroll position of the element, or 0 if the element is not scrollable. This property may be assigned a value to change the horizontal scroll position.
attribute
long
scrollLeft
The vertical scroll position of the element, or 0 if the element is not scrollable. This property may be assigned a value to change the vertical scroll position.
attribute
long
scrollTop
The width of the scrollable area of the element. If the element is not scrollable, scrollWidth is equivalent to the offsetWidth.
readonly attribute
long
scrollWidth
Methods
Returns the union of all rectangles in the getClientRects() list. Empty rectangles are ignored, except that if all rectangles are empty, we return an empty rectangle positioned at the top-left of the first rectangle in getClientRects().
nsIDOMClientRect
getBoundingClientRect()
nsIDOMClientRectList
getClientRects()
nsIDOMNodeList
getElementsByClassName(in DOMString classes)
Compare to: