mozilla

Revision 7034 of Element

  • Revision slug: DOM/element
  • Revision title: element
  • Revision id: 7034
  • Created:
  • Creator: Niczar
  • Is current revision? No
  • Comment 2 words added, 1 words removed

Revision Content

{{ DomRef() }}

This chapter provides a brief reference for the general methods, properties, and events available to most HTML and XML elements in the Gecko DOM.

Various W3C specifications apply to elements:

The articles listed here span the above and include links to the appropriate W3C DOM specification.

While these interfaces are generally shared by most HTML and XML elements, there are more specialized interfaces for particular objects listed in the DOM HTML Specification. Note, however, that these HTML interfaces are "only for [HTML 4.01] and [XHTML 1.0] documents and are not guaranteed to work with any future version of XHTML." The HTML 5 draft does state it aims for backwards compatibility with these HTML interfaces but says of them that "some features that were formerly deprecated, poorly supported, rarely used or considered unnecessary have been removed." One can avoid the potential conflict by moving entirely to DOM XML attribute methods such as getAttribute().

Html, Head, Link, Title, Meta, Base, IsIndex, Style, Body, Form, Select, OptGroup, Option, Input, TextArea, Button, Label, FieldSet, Legend, UList, OList, DList, Directory, Menu, LI, Div, Paragraph, Heading, Quote, Pre, BR, BaseFont, Font, HR, Mod, Anchor, Image, Object, Param, Applet, Map, Area, Script, Table, TableCaption, TableCol, TableSection, TableRow, TableCell, FrameSet, Frame, IFrame

Properties

Name Description Type Availability
attributes All attributes associated with an element. NamedNodeMap All
baseURI Base URI as a string String HTML, XUL
baseURIObject {{ Fx_minversion_inline("3") }} The read-only {{ Interface("nsIURI") }} object representing the base URI for the element. {{ Interface("nsIURI") }} All (with UniversalXPConnect privileges)
childElementCount {{ fx_minversion_inline("3") }} The number of child nodes that are elements. Number

HTML, XUL

childNodes All child nodes of an element. NodeList All
children {{ fx_minversion_inline("3") }} A live {{ interface("nsIDOMNodeList") }} of the current child elements. NodeList HTML, XUL
className Gets/sets the class of the element. String HTML, XUL
clientHeight The inner height of an element. Number HTML
clientLeft The width of the left border of an element. Number HTML
clientTop The width of the top border of an element. Number HTML
clientWidth The inner width of an element. Number HTML
dir Gets/sets the directionality of the element. String HTML, XUL
firstChild The first direct child node of an element, or null if this element has no child nodes. Node All
firstElementChild {{ fx_minversion_inline("3") }} The first direct child element of an element, or null if the element has no child elements. Element HTML, XUL
id Gets/sets the id of the element. String HTML, XUL
innerHTML Gets/sets the markup and content of the element. String HTML
lang Gets/sets the language of an element's attributes, text, and element contents. String HTML
lastChild The last direct child node of an element, or null if this element has no child nodes. Node All
lastElementChild {{ fx_minversion_inline("3") }} The last direct child element of an element, or null if the element has no child elements. Element HTML, XUL
localName The local part of the qualified name of an element. String All
Name Description Type Availability
name Gets/sets the name attribute of an element. String HTML
namespaceURI The namespace URI of this node, or null if it is unspecified. String All
nextSibling The node immediately following the given one in the tree, or null if there is no sibling node. Node All
nextElementSibling {{ fx_minversion_inline("3") }} The element immediately following the given one in the tree, or null if there's no sibling node. Element HTML, XUL
nodeName The name of the node. String All
nodePrincipal {{ Fx_minversion_inline("3") }} The node's principal. {{ Interface("nsIPrincipal") }} All (with UniversalXPConnect privileges)
nodeType A number representing the type of the node. Is always equal to 1 for DOM elements. Number All
nodeValue The value of the node. Is always equal to null for DOM elements. String All
offsetHeight The height of an element, relative to the layout. Number HTML
offsetLeft The distance from this element's left border to its offsetParent's left border. Number HTML
offsetParent The element from which all offset calculations are currently computed. Element HTML
offsetTop The distance from this element's top border to its offsetParent's top border. Number HTML
offsetWidth The width of an element, relative to the layout. Number HTML
ownerDocument The document that this node is in, or null if the node is not inside of one. Document All
Name Description Type Availability
parentNode The parent element of this node, or null if the node is not inside of a DOM Document. Node All
prefix The namespace prefix of the node, or null if no prefix is specified. String All
previousSibling The node immediately preceding the given one in the tree, or null if there is no sibling node. Node All
previousElementSibling {{ fx_minversion_inline("3") }} The element immediately preceding the given one in the tree, or null if there is no sibling element. Element HTML, XUL
schemaTypeInfo Returns TypeInfo regarding schema information for the element (also available on Attr). TypeInfo Not supported
scrollHeight The scroll view height of an element. Number HTML
scrollLeft Gets/sets the left scroll offset of an element. Number HTML
scrollTop Gets/sets the top scroll offset of an element. Number HTML
scrollWidth The scroll view width of an element. Number HTML
spellcheck Controls spell-checking (present on all HTML elements) Boolean HTML
style An object representing the declarations of an element's style attributes. CSSStyleDeclaration HTML, XUL
tabIndex Gets/sets the position of the element in the tabbing order. Number HTML
tagName The name of the tag for the given element. String All
textContent Gets/sets the textual contents of an element and all its descendants. String All
title A string that appears in a popup box when mouse is over the ellement. String HTML

  

Methods

Name & Description Return Availability
addEventListener( type, listener, useCapture )
Register an event handler to a specific event type on the element.
- All
appendChild( appendedNode )
Insert a node as the last child node of this element.
Node All
blur()
Removes keyboard focus from the current element.
- HTML, XUL
click()
Simulates a click on the current element.
- HTML, XUL
cloneNode( deep )
Clone a node, and optionally, all of its contents.
Node All
compareDocumentPosition ( otherNode ) Number All
dispatchEvent( event )
Dispatch an event to this node in the DOM.
Boolean All
focus()
Gives keyboard focus to the current element.
- HTML, XUL
getAttribute( name )
Retrieve the value of the named attribute from the current node.
Object All
getAttributeNS( namespace, name )
Retrieve the value of the attribute with the specified name and namespace, from the current node.
Object All
getAttributeNode( name )
Retrieve the node representation of the named attribute from the current node.
Attr All
getAttributeNodeNS( namespace, name )
Retrieve the node representation of the attribute with the specified name and namespace, from the current node.
Attr All
getBoundingClientRect ( )    

getClientRects ( )
Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client.

   
Name & Description Return Availability
getElementsByClassName ( ) NodeList  
getElementsByTagName( name )
Retrieve a set of all descendant elements, of a particular tag name, from the current element.
NodeList All
getElementsByTagNameNS( namespace, name )
Retrieve a set of all descendant elements, of a particular tag name and namespace, from the current element.
NodeList All
getFeature ( feature, version  ) Object All
getUserDatakey ) DOMUserData All
hasAttribute( name )
Check if the element has the specified attribute, or not.
Boolean All
hasAttributeNS( namespace, name )
Check if the element has the specified attribute, in the specified namespace, or not.
Boolean All
hasAttributes()
Check if the element has any attributes, or not.
Boolean All
hasChildNodes()
Check if the element has any child nodes, or not.
Boolean All
insertBefore( insertedNode, adjacentNode )
Inserts the first node before the second, child, Node in the DOM.
Node All
isDefaultNamespace ( namespaceURI ) Boolean All
isEqualNode ( nodeArg ) Boolean All
isSameNode ( otherNode Boolean All
isSupported ( feature, version ) Boolean All
lookupNamespaceURI ( prefix ) String All
lookupPrefix ( namespaceURI ) String All
normalize()
Clean up all the text nodes under this element (merge adjacent, remove empty).
- All
querySelector( selectors[, nsresolver] ) {{ fx_minversion_inline("3") }} Node All
querySelectorAll( selectors[, nsresolver] ){{ fx_minversion_inline("3") }} NodeList All
removeAttribute( name )
Remove the named attribute from the current node.
- All
removeAttributeNS( namespace, name )
Remove the attribute with the specified name and namespace, from the current node.
- All
Name & Description Return Availability
removeAttributeNode( StringattrNode )
Remove the node representation of the named attribute from the current node.
- All
removeChild( removedNode )
Removes a child node from the current element.
Node All
removeEventListener( type, handler, useCapture )
Removes an event listener from the element.
- All
replaceChild( insertedNode, replacedNode )
Replaces one child node in the current element with another.
Node All
scrollIntoView( alignWithTop )
Scrolls the page until the element gets into the view.
- HTML
setAttribute( name, value )
Set the value of the named attribute from the current node.
- All
setAttributeNS( namespace, name, value )
Set the value of the attribute with the specified name and namespace, from the current node.
- All
setAttributeNode( name, attrNode )
Set the node representation of the named attribute from the current node.
- All
setAttributeNodeNS( namespace, name, attrNode )
Set the node representation of the attribute with the specified name and namespace, from the current node.
- All

setIdAttribute (name, isIdBoolean)
Sets the attribute to be treated as an ID type attribute.

- Not supported
setIdAttributeNS ( namespaceURI, localName, isIdBoolean )
Sets the attribute to be treated as an ID type attribute.
- Not supported
setIdAttributeNode ( idAttr, isIdBoolean )
Sets the attribute to be treated as an ID type attribute.
- Not supported
setUserData ( key, data, handler ) DOMUserData All

 

Event Handlers

These are properties that correspond to the HTML 'on' event attributes.

Unlike the corresponding attributes, the values of these properties are functions (or any other object implementing the EventListener interface) rather than a string. In fact, assigning an event attribute in HTML creates a wrapper function around the specified code. For example, given the following HTML:

<div onclick="foo();">click me!</div>

If element is a reference to this div, the value of element.onclick is effectively:

function onclick(event) {
   foo();
}

Note how the event object is passed as parameter event to this wrapper function.

oncopy {{ Fx_minversion_inline("3") }}
Returns the event handling code for the copy event.
oncut {{ Fx_minversion_inline("3") }}
Returns the event handling code for the cut event.
onpaste {{ Fx_minversion_inline("3") }}
Returns the event handling code for the paste event.
onbeforeunload
Returns the event handling code for the beforeunload event.
onblur
Returns the event handling code for the blur event.
onchange
Returns the event handling code for the change event.
onclick
Returns the event handling code for the click event.
oncontextmenu
Returns the event handling code for the contextmenu event.
ondblclick
Returns the event handling code for the dblclick event.
onfocus
Returns the event handling code for the focus event.
onkeydown
Returns the event handling code for the keydown event.
onkeypress
Returns the event handling code for the keypress event.
onkeyup
Returns the event handling code for the keyup event.
onmousedown
Returns the event handling code for the mousedown event.
onmousemove
Returns the event handling code for the mousemove event.
onmouseout
Returns the event handling code for the mouseout event.
onmouseover
Returns the event handling code for the mouseover event.
onmouseup
Returns the event handling code for the mouseup event.
onresize
Returns the event handling code for the resize event.
onscroll
Returns the event handling code for the scroll event.

Other Events

There are also other DOM Events like DOMSubtreeModified, DOMAttrModified etc. as well as Gecko-Specific DOM Events like DOMContentLoaded, DOMTitleChanged etc.

{{ languages( { "es": "es/DOM/element", "fr": "fr/DOM/element", "ja": "ja/DOM/element", "pl": "pl/DOM/element", "pt": "pt/DOM/element", "zh-cn": "cn/DOM/element" } ) }}

Constants

See Node for those constants which Element inherits.

 

Revision Source

<p>{{ DomRef() }}</p>
<p>This chapter provides a brief reference for the general methods, properties, and events available to most HTML and XML elements in the Gecko DOM.</p>
<p>Various W3C specifications apply to elements:</p>
<ul> <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Core/">DOM Core Specification</a>—describes the core interfaces shared by most DOM objects in HTML and XML documents</li> <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/">DOM HTML Specification</a>—describes interfaces for objects in HTML and XHTML documents that build on the core specification</li> <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/">DOM Events Specification</a>—describes events shared by most DOM objects, building on the DOM Core and <a class="external" href="http://www.w3.org/TR/DOM-Level-2-Views/">Views</a> specifications</li> <li><a class="external" href="http://www.w3.org/TR/ElementTraversal/" title="http://www.w3.org/TR/ElementTraversal/">Element Traversal Specification</a>—describes the new attributes that allow traversal of elements in the DOM tree {{ fx_minversion_inline("3") }}</li>
</ul>
<p>The articles listed here span the above and include links to the appropriate W3C DOM specification.</p>
<p>While these interfaces are generally shared by most HTML and XML elements, there are more specialized interfaces for particular objects listed in the DOM HTML Specification. Note, however, that these HTML interfaces are "only for [HTML 4.01] and [XHTML 1.0] documents and are not guaranteed to work with any future version of XHTML." The HTML 5 draft does state it aims for backwards compatibility with these HTML interfaces but says of them that "some features that were formerly deprecated, poorly supported, rarely used or considered unnecessary have been removed." One can avoid the potential conflict by moving entirely to DOM XML attribute methods such as getAttribute().</p>
<p><a href="/En/DOM/Html" title="En/DOM/Html">Html</a>, <a href="/En/DOM/Head" title="En/DOM/Head">Head</a>, <a href="/En/DOM/Link" title="En/DOM/Link">Link</a>, <a href="/En/DOM/Title" title="En/DOM/Title">Title</a>, <a href="/En/DOM/Meta" title="En/DOM/Meta">Meta</a>, <a href="/En/DOM/Base" title="En/DOM/Base">Base</a>, <a href="/En/DOM/IsIndex" title="En/DOM/IsIndex">IsIndex</a>, <a href="/en/DOM/style" title="En/DOM/Style">Style</a>, <a href="/En/DOM/Body" title="En/DOM/Body">Body</a>, <a href="/en/DOM/form" title="En/DOM/Form">Form</a>, <a href="/En/DOM/Select" title="En/DOM/Select">Select</a>, <a href="/En/DOM/OptGroup" title="En/DOM/OptGroup">OptGroup</a>, <a href="/En/DOM/Option" title="En/DOM/Option">Option</a>, <a href="/En/DOM/Input" title="En/DOM/Input">Input</a>, <a href="/En/DOM/TextArea" title="En/DOM/TextArea">TextArea</a>, <a href="/En/DOM/Button" title="En/DOM/Button">Button</a>, <a href="/En/DOM/Label" title="En/DOM/Label">Label</a>, <a href="/En/DOM/FieldSet" title="En/DOM/FieldSet">FieldSet</a>, <a href="/En/DOM/Legend" title="En/DOM/Legend">Legend</a>, <a href="/En/DOM/UList" title="En/DOM/UList">UList</a>, <a href="/En/DOM/OList" title="En/DOM/OList">OList</a>, <a href="/En/DOM/DList" title="En/DOM/DList">DList</a>, <a href="/En/DOM/Directory" title="En/DOM/Directory">Directory</a>, <a href="/En/DOM/Menu" title="En/DOM/Menu">Menu</a>, <a href="/En/DOM/LI" title="En/DOM/LI">LI</a>, <a href="/En/DOM/Div" title="En/DOM/Div">Div</a>, <a href="/En/DOM/Paragraph" title="En/DOM/Paragraph">Paragraph</a>, <a href="/En/DOM/Heading" title="En/DOM/Heading">Heading</a>, <a href="/En/DOM/Quote" title="En/DOM/Quote">Quote</a>, <a href="/En/DOM/Pre" title="En/DOM/Pre">Pre</a>, <a href="/En/DOM/BR" title="En/DOM/BR">BR</a>, <a href="/En/DOM/BaseFont" title="En/DOM/BaseFont">BaseFont</a>, <a href="/En/DOM/Font" title="En/DOM/Font">Font</a>, <a href="/En/DOM/HR" title="En/DOM/HR">HR</a>, <a href="/En/DOM/Mod" title="En/DOM/Mod">Mod</a>, <a href="/En/DOM/Anchor" title="En/DOM/Anchor">Anchor</a>, <a href="/En/DOM/Image" title="En/DOM/Image">Image</a>, <a href="/En/DOM/Object" title="En/DOM/Object">Object</a>, <a href="/En/DOM/Param" title="En/DOM/Param">Param</a>, <a href="/En/DOM/Applet" title="En/DOM/Applet">Applet</a>, <a href="/En/DOM/Map" title="En/DOM/Map">Map</a>, <a href="/En/DOM/Area" title="En/DOM/Area">Area</a>, <a href="/En/DOM/Script" title="En/DOM/Script">Script</a>, <a href="/en/DOM/table" title="En/DOM/Table">Table</a>, <a href="/En/DOM/TableCaption" title="En/DOM/TableCaption">TableCaption</a>, <a href="/En/DOM/TableCol" title="En/DOM/TableCol">TableCol</a>, <a href="/En/DOM/TableSection" title="En/DOM/TableSection">TableSection</a>, <a href="/en/DOM/tableRow" title="En/DOM/TableRow">TableRow</a>, <a href="/En/DOM/TableCell" title="En/DOM/TableCell">TableCell</a>, <a href="/En/DOM/FrameSet" title="En/DOM/FrameSet">FrameSet</a>, <a href="/En/DOM/Frame" title="En/DOM/Frame">Frame</a>, <a href="/En/DOM/IFrame" title="En/DOM/IFrame">IFrame</a></p>
<h3 name="Properties">Properties</h3>
<table class="fullwidth-table"> <tbody> <tr> <th>Name</th> <th>Description</th> <th>Type</th> <th>Availability</th> </tr> <tr> <td><code><a href="/En/DOM/Node.attributes" title="en/DOM/Node.attributes">attributes</a></code></td> <td>All attributes associated with an element.</td> <td><code><a href="/En/DOM/NamedNodeMap" title="en/DOM/NamedNodeMap">NamedNodeMap</a><a class="external" href="http://www.xulplanet.com/references/objref/NamedNodeMap.html"></a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/Node.baseURI" title="en/DOM/Node.baseURI">baseURI</a></code></td> <td>Base URI as a string</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.baseURIObject" title="en/DOM/element.baseURIObject">baseURIObject</a></code> {{ Fx_minversion_inline("3") }}</td> <td>The read-only {{ Interface("nsIURI") }} object representing the base URI for the element.</td> <td>{{ Interface("nsIURI") }}</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a> (with UniversalXPConnect privileges)</small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Element.childElementCount" title="en/DOM/element.childElementCount"><code>childElementCount</code></a> {{ fx_minversion_inline("3") }}</td> <td>The number of child nodes that are elements.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></td> <td nowrap="nowrap"> <p><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></p> </td> </tr> <tr> <td><code><a href="/En/DOM/Node.childNodes" title="en/DOM/Node.childNodes">childNodes</a></code></td> <td>All child nodes of an element.</td> <td><code><a href="/En/DOM/NodeList" title="en/DOM/NodeList">NodeList</a><a class="external" href="http://www.xulplanet.com/references/objref/NodeList.html"></a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Element.children" title="en/DOM/Element.children"><code>children</code></a> {{ fx_minversion_inline("3") }}</td> <td>A live {{ interface("nsIDOMNodeList") }} of the current child elements.</td> <td><code><a href="/En/DOM/NodeList" title="en/DOM/NodeList">NodeList</a><a class="external" href="http://www.xulplanet.com/references/objref/NodeList.html"></a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.className" title="en/DOM/element.className">className</a></code></td> <td>Gets/sets the class of the element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.clientHeight" title="en/DOM/element.clientHeight">clientHeight</a></code></td> <td>The inner height of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.clientLeft" title="en/DOM/element.clientLeft">clientLeft</a></code></td> <td>The width of the left border of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.clientTop" title="en/DOM/element.clientTop">clientTop</a></code></td> <td>The width of the top border of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.clientWidth" title="en/DOM/element.clientWidth">clientWidth</a></code></td> <td>The inner width of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.dir" title="en/DOM/element.dir">dir</a></code></td> <td>Gets/sets the directionality of the element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.firstChild" title="en/DOM/Node.firstChild">firstChild</a></code></td> <td>The first direct child node of an element, or <code>null</code> if this element has no child nodes.</td> <td><code><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Element.firstElementChild" title="en/DOM/element.firstElementChild"><code>firstElementChild</code></a> {{ fx_minversion_inline("3") }}</td> <td>The first direct child element of an element, or <code>null</code> if the element has no child elements.</td> <td><a class="internal" href="/en/DOM/element" title="en/DOM/Element"><code>Element</code></a></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.id" title="en/DOM/element.id">id</a></code></td> <td>Gets/sets the id of the element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.innerHTML" title="en/DOM/element.innerHTML">innerHTML</a></code></td> <td>Gets/sets the markup and content of the element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.lang" title="en/DOM/element.lang">lang</a></code></td> <td>Gets/sets the language of an element's attributes, text, and element contents.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.lastChild" title="en/DOM/Node.lastChild">lastChild</a></code></td> <td>The last direct child node of an element, or <code>null</code> if this element has no child nodes.</td> <td><code><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Element.lastElementChild" title="en/DOM/element.lastElementChild"><code>lastElementChild</code></a> {{ fx_minversion_inline("3") }}</td> <td>The last direct child element of an element, or <code>null</code> if the element has no child elements.</td> <td><a class="internal" href="/en/DOM/element" title="en/DOM/Element"><code>Element</code></a></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.localName" title="en/DOM/Node.localName">localName</a></code></td> <td>The local part of the qualified name of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <th>Name</th> <th>Description</th> <th>Type</th> <th>Availability</th> </tr> <tr> <td><code><a href="/en/DOM/element.name" title="en/DOM/element.name">name</a></code></td> <td>Gets/sets the name attribute of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.namespaceURI" title="en/DOM/Node.namespaceURI">namespaceURI</a></code></td> <td>The namespace URI of this node, or <code>null</code> if it is unspecified.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.nextSibling" title="en/DOM/Node.nextSibling">nextSibling</a></code></td> <td>The node immediately following the given one in the tree, or <code>null</code> if there is no sibling node.</td> <td><code><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Element.nextElementSibling" title="en/DOM/Element.nextElementSibling"><code>nextElementSibling</code></a> {{ fx_minversion_inline("3") }}</td> <td>The element immediately following the given one in the tree, or <code>null</code> if there's no sibling node.</td> <td><a href="/en/DOM/element" title="en/DOM/element">Element</a></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.nodeName" title="en/DOM/element.nodeName">nodeName</a></code></td> <td>The name of the node.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a class="internal" href="/En/DOM/Node.nodePrincipal" title="En/DOM/Node.nodePrincipal">nodePrincipal</a> </code>{{ Fx_minversion_inline("3") }}</td> <td>The node's principal.</td> <td><code>{{ Interface("nsIPrincipal") }}</code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a> (with UniversalXPConnect privileges)</small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.nodeType" title="en/DOM/element.nodeType">nodeType</a></code></td> <td>A number representing the type of the node. Is always equal to <code>1</code> for DOM elements.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.nodeValue" title="en/DOM/element.nodeValue">nodeValue</a></code></td> <td>The value of the node. Is always equal to <code>null</code> for DOM elements.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.offsetHeight" title="en/DOM/element.offsetHeight">offsetHeight</a></code></td> <td>The height of an element, relative to the layout.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.offsetLeft" title="en/DOM/element.offsetLeft">offsetLeft</a></code></td> <td>The distance from this element's left border to its <code>offsetParent</code>'s left border.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.offsetParent" title="en/DOM/element.offsetParent">offsetParent</a></code></td> <td>The element from which all offset calculations are currently computed.</td> <td><code><a href="/en/DOM/element" title="en/DOM/element">Element</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.offsetTop" title="en/DOM/element.offsetTop">offsetTop</a></code></td> <td>The distance from this element's top border to its <code>offsetParent</code>'s top border.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.offsetWidth" title="en/DOM/element.offsetWidth">offsetWidth</a></code></td> <td>The width of an element, relative to the layout.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.ownerDocument" title="en/DOM/Node.ownerDocument">ownerDocument</a></code></td> <td>The document that this node is in, or <code>null</code> if the node is not inside of one.</td> <td><code><a href="/en/DOM/document" title="en/DOM/document">Document</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <th>Name</th> <th>Description</th> <th>Type</th> <th>Availability</th> </tr> <tr> <td><code><a href="/En/DOM/Node.parentNode" title="en/DOM/Node.parentNode">parentNode</a></code></td> <td>The parent element of this node, or <code>null</code> if the node is not inside of a <a href="/en/DOM/document" title="en/DOM/document">DOM Document</a>.</td> <td><code><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.prefix" title="en/DOM/Node.prefix">prefix</a></code></td> <td>The namespace prefix of the node, or <code>null</code> if no prefix is specified.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.previousSibling" title="en/DOM/Node.previousSibling">previousSibling</a></code></td> <td>The node immediately preceding the given one in the tree, or <code>null</code> if there is no sibling node.</td> <td><code><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Element.previousElementSibling" title="en/DOM/element.previousElementSibling"><code>previousElementSibling</code></a> {{ fx_minversion_inline("3") }}</td> <td>The element immediately preceding the given one in the tree, or <code>null</code> if there is no sibling element.</td> <td><a class="internal" href="/en/DOM/element" title="en/DOM/Element"><code>Element</code></a></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/element.schemaTypeInfo" title="En/DOM/element.schemaTypeInfo"><code>schemaTypeInfo</code></a></td> <td>Returns TypeInfo regarding schema information for the element (also available on <a href="/En/DOM/Attr" title="En/DOM/Attr">Attr</a>).</td> <td><a class="internal" href="/En/DOM/TypeInfo" title="En/DOM/TypeInfo"><code>TypeInfo</code></a></td> <td nowrap="nowrap">Not supported</td> </tr> <tr> <td><code><a href="/en/DOM/element.scrollHeight" title="en/DOM/element.scrollHeight">scrollHeight</a></code></td> <td>The scroll view height of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.scrollLeft" title="en/DOM/element.scrollLeft">scrollLeft</a></code></td> <td>Gets/sets the left scroll offset of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.scrollTop" title="en/DOM/element.scrollTop">scrollTop</a></code></td> <td>Gets/sets the top scroll offset of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.scrollWidth" title="en/DOM/element.scrollWidth">scrollWidth</a></code></td> <td>The scroll view width of an element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a class="internal" href="/en/XUL/Attribute/spellcheck" title="En/XUL/Attribute/Spellcheck">spellcheck</a></code></td> <td>Controls <a href="/en/Controlling_spell_checking_in_HTML_forms" title="en/Controlling_spell_checking_in_HTML_forms">spell-checking</a> (present on all HTML elements)</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.style" title="en/DOM/element.style">style</a></code></td> <td>An object representing the declarations of an element's style attributes.</td> <td><code><a href="/en/DOM/CSSStyleDeclaration" title="en/DOM/CSSStyleDeclaration">CSSStyleDeclaration</a><a class="external" href="http://www.xulplanet.com/references/objref/CSSStyleDeclaration.html"></a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.tabIndex" title="en/DOM/element.tabIndex">tabIndex</a></code></td> <td>Gets/sets the position of the element in the tabbing order.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.tagName" title="en/DOM/element.tagName">tagName</a></code></td> <td>The name of the tag for the given element.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.textContent" title="en/DOM/Node.textContent">textContent</a></code></td> <td>Gets/sets the textual contents of an element and all its descendants.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.title" title="en/DOM/element.title">title</a></code></td> <td>A string that appears in a popup box when mouse is over the ellement.</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> </tbody>
</table>
<p>  </p>
<h3 name="Methods">Methods</h3>
<table class="fullwidth-table"> <tbody> <tr> <th>Name &amp; Description</th> <th>Return</th> <th>Availability</th> </tr> <tr> <td><code><a href="/en/DOM/element.addEventListener" title="en/DOM/element.addEventListener">addEventListener</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">type</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Function" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Function">listener</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">useCapture</a> )</code><br> Register an event handler to a specific event type on the element.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM/event" title="en/DOM/event">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.appendChild" title="en/DOM/Node.appendChild">appendChild</a>( <a href="/en/DOM/Node" title="en/DOM/Node">appendedNode</a> )</code><br> Insert a node as the last child node of this element.</td> <td><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.blur" title="en/DOM/element.blur">blur</a>()</code><br> Removes keyboard focus from the current element.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.click" title="en/DOM/element.click">click</a>()</code><br> Simulates a click on the current element.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.cloneNode" title="en/DOM/Node.cloneNode">cloneNode</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">deep</a> )</code><br> Clone a node, and optionally, all of its contents.</td> <td><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a class="internal" href="/En/DOM/Node.compareDocumentPosition" title="En/DOM/Node.compareDocumentPosition">compareDocumentPosition</a></code> ( <code><a class="internal" href="/en/DOM/Node" title="En/DOM/Node">otherNode</a></code> )</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Number" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Number">Number</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.dispatchEvent" title="en/DOM/element.dispatchEvent">dispatchEvent</a>( <a href="/en/DOM/event" title="en/DOM/event">event</a> )</code><br> Dispatch an event to this node in the DOM.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.focus" title="en/DOM/element.focus">focus</a>()</code><br> Gives keyboard focus to the current element.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.getAttribute" title="en/DOM/element.getAttribute">getAttribute</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Retrieve the value of the named attribute from the current node.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Object" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.getAttributeNS" title="en/DOM/element.getAttributeNS">getAttributeNS</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">namespace</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Retrieve the value of the attribute with the specified name and namespace, from the current node.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Object" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.getAttributeNode" title="en/DOM/element.getAttributeNode">getAttributeNode</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Retrieve the node representation of the named attribute from the current node.</td> <td><a href="/En/DOM/Attr" title="en/DOM/Attr">Attr</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.getAttributeNodeNS" title="en/DOM/element.getAttributeNodeNS">getAttributeNodeNS</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">namespace</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Retrieve the node representation of the attribute with the specified name and namespace, from the current node.</td> <td><a href="/En/DOM/Attr" title="en/DOM/Attr">Attr</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/en/DOM/element.getBoundingClientRect" title="En/DOM/Element.getBoundingClientRect"><code>getBoundingClientRect</code></a> ( )</td> <td> </td> <td nowrap="nowrap"> </td> </tr> <tr> <td> <p><a class="internal" href="/en/DOM/element.getClientRects" title="En/DOM/Element.getClientRects"><code>getClientRects</code></a> ( )<br> Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client.</p> </td> <td> </td> <td nowrap="nowrap"> </td> </tr> <tr> <th>Name &amp; Description</th> <th>Return</th> <th>Availability</th> </tr> <tr> <td><code><a class="internal" href="/En/DOM/Element.getElementsByClassName" title="En/DOM/Element.getElementsByClassName"><span class="internal">getElementsByClassName</span></a> </code>( )</td> <td><code><a href="/En/DOM/NodeList" title="en/DOM/NodeList">NodeList</a></code></td> <td nowrap="nowrap"> </td> </tr> <tr> <td><code><a href="/en/DOM/element.getElementsByTagName" title="en/DOM/element.getElementsByTagName">getElementsByTagName</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Retrieve a set of all descendant elements, of a particular tag name, from the current element.</td> <td><a href="/En/DOM/NodeList" title="en/DOM/NodeList">NodeList</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.getElementsByTagNameNS" title="en/DOM/element.getElementsByTagNameNS">getElementsByTagNameNS</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">namespace</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Retrieve a set of all descendant elements, of a particular tag name and namespace, from the current element.</td> <td><a href="/En/DOM/NodeList" title="en/DOM/NodeList">NodeList</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Node.getFeature" title="En/DOM/Node.getFeature"><code>getFeature</code></a> ( <code>feature</code>, <code>version</code>  )</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Object" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Node.getUserData" title="En/DOM/Node.getUserData"><code>getUserData</code></a> ( <code>key</code> )</td> <td><a href="/En/DOM/DOMUserData" title="En/DOM/DOMUserData">DOMUserData</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.hasAttribute" title="en/DOM/element.hasAttribute">hasAttribute</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Check if the element has the specified attribute, or not.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.hasAttributeNS" title="en/DOM/element.hasAttributeNS">hasAttributeNS</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">namespace</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Check if the element has the specified attribute, in the specified namespace, or not.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.hasAttributes" title="en/DOM/Node.hasAttributes">hasAttributes</a>()</code><br> Check if the element has any attributes, or not.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.hasChildNodes" title="en/DOM/Node.hasChildNodes">hasChildNodes</a>()</code><br> Check if the element has any child nodes, or not.</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.insertBefore" title="en/DOM/Node.insertBefore">insertBefore</a>( <a href="/en/DOM/Node" title="en/DOM/Node">insertedNode</a>, <a href="/en/DOM/Node" title="en/DOM/Node">adjacentNode</a> )</code><br> Inserts the first node before the second, child, Node in the DOM.</td> <td><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a class="internal" href="/En/DOM/Node.isDefaultNamespace" title="En/DOM/Node.isDefaultNamespace">isDefaultNamespace</a></code> ( <code>namespaceURI</code> )</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Node.isEqualNode" title="En/DOM/Node.isEqualNode"><code>isEqualNode</code></a> ( <code><a class="internal" href="/en/DOM/Node" title="En/DOM/Node">nodeArg</a></code> )</td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a class="internal" href="/En/DOM/Node.isSameNode" title="En/DOM/Node.isSameNode">isSameNode</a></code> ( <code><a class="internal" href="/en/DOM/Node" title="En/DOM/Node">otherNode</a></code> ) </td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.isSupported" title="en/DOM/Node.isSupported">isSupported</a> ( feature, version )</code></td> <td><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">Boolean</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Node.lookupNamespaceURI" title="En/DOM/Node.lookupNamespaceURI"><code>lookupNamespaceURI</code></a> ( <code>prefix</code> )</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><a class="internal" href="/En/DOM/Node.lookupPrefix" title="En/DOM/Node.lookupPrefix"><code>lookupPrefix</code></a> ( <code>namespaceURI</code> )</td> <td><code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></code></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.normalize" title="en/DOM/Node.normalize">normalize</a>()</code><br> Clean up all the text nodes under this element (merge adjacent, remove empty).</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a class="internal" href="/En/DOM/Element.querySelector" title="en/DOM/element.querySelector">querySelector</a>( selectors[, nsresolver] )</code> {{ fx_minversion_inline("3") }}</td> <td><a class="internal" href="/en/DOM/Node" title="en/DOM/Node">Node</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a class="internal" href="/En/DOM/Element.querySelectorAll" title="en/DOM/element.querySelectorAll">querySelectorAll</a>( selectors[, nsresolver] )</code>{{ fx_minversion_inline("3") }}</td> <td><a class="internal" href="/En/DOM/NodeList" title="en/DOM/NodeList">NodeList</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.removeAttribute" title="en/DOM/element.removeAttribute">removeAttribute</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Remove the named attribute from the current node.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.removeAttributeNS" title="en/DOM/element.removeAttributeNS">removeAttributeNS</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">namespace</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a> )</code><br> Remove the attribute with the specified name and namespace, from the current node.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <th>Name &amp; Description</th> <th>Return</th> <th>Availability</th> </tr> <tr> <td><code><a href="/en/DOM/element.removeAttributeNode" title="en/DOM/element.removeAttributeNode">removeAttributeNode</a>( </code><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a><a href="/En/DOM/Attr" title="en/DOM/Attr">attrNode</a><code> )</code><br> Remove the node representation of the named attribute from the current node.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.removeChild" title="en/DOM/Node.removeChild">removeChild</a>( <a href="/en/DOM/Node" title="en/DOM/Node">removedNode</a> )</code><br> Removes a child node from the current element.</td> <td><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.removeEventListener" title="en/DOM/element.removeEventListener">removeEventListener</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">type</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Function" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Function">handler</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">useCapture</a> )</code><br> Removes an event listener from the element.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM/event" title="en/DOM/event">All</a></small></td> </tr> <tr> <td><code><a href="/En/DOM/Node.replaceChild" title="en/DOM/Node.replaceChild">replaceChild</a>( <a href="/en/DOM/Node" title="en/DOM/Node">insertedNode</a>, <a href="/en/DOM/Node" title="en/DOM/Node">replacedNode</a> )</code><br> Replaces one child node in the current element with another.</td> <td><a href="/en/DOM/Node" title="en/DOM/Node">Node</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.scrollIntoView" title="en/DOM/element.scrollIntoView">scrollIntoView</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">alignWithTop</a> )</code><br> Scrolls the page until the element gets into the view.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/HTML" title="en/HTML">HTML</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.setAttribute" title="en/DOM/element.setAttribute">setAttribute</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Object" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Object">value</a> )</code><br> Set the value of the named attribute from the current node.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.setAttributeNS" title="en/DOM/element.setAttributeNS">setAttributeNS</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">namespace</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Object" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Object">value</a> )</code><br> Set the value of the attribute with the specified name and namespace, from the current node.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.setAttributeNode" title="en/DOM/element.setAttributeNode">setAttributeNode</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a>, <a href="/En/DOM/Attr" title="en/DOM/Attr">attrNode</a> )</code><br> Set the node representation of the named attribute from the current node.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td><code><a href="/en/DOM/element.setAttributeNodeNS" title="en/DOM/element.setAttributeNodeNS">setAttributeNodeNS</a>( <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">namespace</a>, <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">name</a>, <a href="/En/DOM/Attr" title="en/DOM/Attr">attrNode</a> )</code><br> Set the node representation of the attribute with the specified name and namespace, from the current node.</td> <td>-</td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> <tr> <td> <p><a class="internal" href="/En/DOM/element.setIdAttribute" title="En/DOM/element.setIdAttribute"><code>setIdAttribute</code></a> (<code>name</code>, <code>isIdBoolean</code>)<br> Sets the attribute to be treated as an ID type attribute.</p> </td> <td>-</td> <td nowrap="nowrap">Not supported</td> </tr> <tr> <td><a class="internal" href="/En/DOM/element.setIdAttributeNS" title="En/DOM/element.setIdAttributeNS"><code>setIdAttributeNS</code></a> ( <code>namespaceURI</code>, <code>localName</code>, <code>isIdBoolean</code> )<br> Sets the attribute to be treated as an ID type attribute.</td> <td>-</td> <td nowrap="nowrap">Not supported</td> </tr> <tr> <td><a class="internal" href="/En/DOM/element.setIdAttributeNode" title="En/DOM/element.setIdAttributeNode"><code>setIdAttributeNode</code></a> ( <code>idAttr</code>, <code>isIdBoolean</code> )<br> Sets the attribute to be treated as an ID type attribute.</td> <td>-</td> <td nowrap="nowrap">Not supported</td> </tr> <tr> <td><a class="internal" href="/En/DOM/Node.setUserData" title="En/DOM/Node.setUserData"><code>setUserData</code></a> ( <code>key</code>, <a class="internal" href="/En/DOM/DOMUserData" title="En/DOM/DOMUserData"><code>data</code></a>, <code>handler</code> )</td> <td><a href="/En/DOM/DOMUserData" title="En/DOM/DOMUserData">DOMUserData</a></td> <td nowrap="nowrap"><small><a href="/en/DOM" title="en/DOM">All</a></small></td> </tr> </tbody>
</table>
<p> </p><h3 name="Event_Handlers">Event Handlers</h3>
<p>These are properties that correspond to the HTML 'on' event attributes.</p>
<p>Unlike the corresponding attributes, the values of these properties are functions (or any other object implementing the <a class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventListener">EventListener</a> interface) rather than a string. In fact, assigning an event attribute in HTML creates a wrapper function around the specified code. For example, given the following HTML:</p>
<pre>&lt;div onclick="foo();"&gt;click me!&lt;/div&gt;
</pre>
<p>If <code>element</code> is a reference to this <code>div</code>, the value of <code>element.onclick</code> is effectively:</p>
<pre>function onclick(event) {
   foo();
}
</pre>
<p>Note how the <a href="/en/DOM/event" title="en/DOM/event">event</a> object is passed as parameter <code>event</code> to this wrapper function.</p>
<dl> <dt> <a href="/en/DOM/element.oncopy" title="en/DOM/element.oncopy">oncopy</a> {{ Fx_minversion_inline("3") }} </dt> <dd> Returns the event handling code for the copy event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.oncut" title="en/DOM/element.oncut">oncut</a> {{ Fx_minversion_inline("3") }} </dt> <dd> Returns the event handling code for the cut event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onpaste" title="en/DOM/element.onpaste">onpaste</a> {{ Fx_minversion_inline("3") }} </dt> <dd> Returns the event handling code for the paste event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onbeforeunload" title="en/DOM/element.onbeforeunload">onbeforeunload</a> </dt> <dd> Returns the event handling code for the beforeunload event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onblur" title="en/DOM/element.onblur">onblur</a> </dt> <dd> Returns the event handling code for the blur event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onchange" title="en/DOM/element.onchange">onchange</a> </dt> <dd> Returns the event handling code for the change event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onclick" title="en/DOM/element.onclick">onclick</a> </dt> <dd> Returns the event handling code for the click event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.oncontextmenu" title="en/DOM/element.oncontextmenu">oncontextmenu</a> </dt> <dd> Returns the event handling code for the contextmenu event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.ondblclick" title="en/DOM/element.ondblclick">ondblclick</a> </dt> <dd> Returns the event handling code for the dblclick event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onfocus" title="en/DOM/element.onfocus">onfocus</a> </dt> <dd> Returns the event handling code for the focus event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onkeydown" title="en/DOM/element.onkeydown">onkeydown</a> </dt> <dd> Returns the event handling code for the keydown event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onkeypress" title="en/DOM/element.onkeypress">onkeypress</a> </dt> <dd> Returns the event handling code for the keypress event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onkeyup" title="en/DOM/element.onkeyup">onkeyup</a> </dt> <dd> Returns the event handling code for the keyup event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onmousedown" title="en/DOM/element.onmousedown">onmousedown</a> </dt> <dd> Returns the event handling code for the mousedown event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onmousemove" title="en/DOM/element.onmousemove">onmousemove</a> </dt> <dd> Returns the event handling code for the mousemove event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onmouseout" title="en/DOM/element.onmouseout">onmouseout</a> </dt> <dd> Returns the event handling code for the mouseout event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onmouseover" title="en/DOM/element.onmouseover">onmouseover</a> </dt> <dd> Returns the event handling code for the mouseover event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onmouseup" title="en/DOM/element.onmouseup">onmouseup</a> </dt> <dd> Returns the event handling code for the mouseup event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onresize" title="en/DOM/element.onresize">onresize</a> </dt> <dd> Returns the event handling code for the resize event. </dd>
</dl>
<dl> <dt> <a href="/en/DOM/element.onscroll" title="en/DOM/element.onscroll">onscroll</a> </dt> <dd> Returns the event handling code for the scroll event. </dd>
</dl>
<h3 name="Other_Events">Other Events</h3>
<p>There are also other <a href="/en/DOM_Events" title="en/DOM_Events">DOM Events</a> like <code>DOMSubtreeModified</code>, <code>DOMAttrModified</code> etc. as well as <a href="/en/Gecko-Specific_DOM_Events" title="en/Gecko-Specific_DOM_Events">Gecko-Specific DOM Events</a> like <code>DOMContentLoaded</code>, <code>DOMTitleChanged</code> etc.</p>
<p>{{ languages( { "es": "es/DOM/element", "fr": "fr/DOM/element", "ja": "ja/DOM/element", "pl": "pl/DOM/element", "pt": "pt/DOM/element", "zh-cn": "cn/DOM/element" } ) }}</p>
<h3>Constants</h3>
<p>See <a href="/en/DOM/Node" title="en/DOM/Node">Node</a> for those constants which Element inherits.</p>
<p> </p>
Revert to this revision