http://www.w3.org/DOM/DOMTM git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225913 13f79535-47bb-0310-9956-ffa450edef68
1016 lines
26 KiB
HTML
1016 lines
26 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<!--
|
|
Generated: Thu Nov 09 17:43:24 EST 2000 jfouffa.w3.org
|
|
-->
|
|
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>ECMAScript Language Binding</title>
|
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
|
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
|
<link rel='next' href='acknowledgements.html' />
|
|
<link rel='contents' href='Overview.html#contents' />
|
|
<link rel='index' href='def-index.html' />
|
|
<link rel='previous' href='java-binding.html' />
|
|
</head>
|
|
<body>
|
|
<div class='navbar' align='center'><a accesskey='p'
|
|
href='java-binding.html'>previous</a> <a accesskey='n'
|
|
href='acknowledgements.html'>next</a> <a accesskey='c'
|
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
|
href='def-index.html'>index</a>
|
|
|
|
<hr title='Navigation area separator' />
|
|
</div>
|
|
|
|
<div class='noprint' style='text-align: right'>
|
|
<p style='font-family: monospace;font-size:small'>13 November,
|
|
2000</p>
|
|
</div>
|
|
|
|
<div class='div1'><a id="ecma-binding" name='ecma-binding'></a>
|
|
|
|
<h1 id='ecma-binding-h1' class='adiv1'>Appendix E: ECMAScript
|
|
Language Binding</h1>
|
|
|
|
<p>This appendix contains the complete ECMAScript [<a
|
|
class='noxref' href='references.html#ECMAScript'>ECMAScript</a>]
|
|
binding for the Level 2 Document Object Model Core definitions.</p>
|
|
|
|
<p><b>Note:</b> Exceptions handling is only supported by ECMAScript
|
|
implementation conformant with the Standard ECMA-262 3rd. Edition
|
|
([<a class='noxref'
|
|
href='references.html#ECMAScript'>ECMAScript</a>]).</p>
|
|
|
|
<div class='ecma-block'>
|
|
<dl>
|
|
<dt>Prototype Object <b>DOMException</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt>The <b>DOMException</b> class has the following constants:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>DOMException.INDEX_SIZE_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>1</b>.</dd>
|
|
|
|
<dt><b>DOMException.DOMSTRING_SIZE_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>2</b>.</dd>
|
|
|
|
<dt><b>DOMException.HIERARCHY_REQUEST_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>3</b>.</dd>
|
|
|
|
<dt><b>DOMException.WRONG_DOCUMENT_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>4</b>.</dd>
|
|
|
|
<dt><b>DOMException.INVALID_CHARACTER_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>5</b>.</dd>
|
|
|
|
<dt><b>DOMException.NO_DATA_ALLOWED_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>6</b>.</dd>
|
|
|
|
<dt><b>DOMException.NO_MODIFICATION_ALLOWED_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>7</b>.</dd>
|
|
|
|
<dt><b>DOMException.NOT_FOUND_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>8</b>.</dd>
|
|
|
|
<dt><b>DOMException.NOT_SUPPORTED_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>9</b>.</dd>
|
|
|
|
<dt><b>DOMException.INUSE_ATTRIBUTE_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>10</b>.</dd>
|
|
|
|
<dt><b>DOMException.INVALID_STATE_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>11</b>.</dd>
|
|
|
|
<dt><b>DOMException.SYNTAX_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>12</b>.</dd>
|
|
|
|
<dt><b>DOMException.INVALID_MODIFICATION_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>13</b>.</dd>
|
|
|
|
<dt><b>DOMException.NAMESPACE_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>14</b>.</dd>
|
|
|
|
<dt><b>DOMException.INVALID_ACCESS_ERR</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>15</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>DOMException</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt>The <b>DOMException</b> object has the following
|
|
properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>code</b></dt>
|
|
|
|
<dd>This property is of type <b>Number</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>DOMImplementation</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt>The <b>DOMImplementation</b> object has the following
|
|
methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>hasFeature(feature, version)</b></dt>
|
|
|
|
<dd>This method returns a <b>Boolean</b>.<br />
|
|
The <b>feature</b> parameter is of type <b>String</b>.<br />
|
|
The <b>version</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>createDocumentType(qualifiedName, publicId,
|
|
systemId)</b></dt>
|
|
|
|
<dd>This method returns a <b>DocumentType</b> object.<br />
|
|
The <b>qualifiedName</b> parameter is of type <b>String</b>.<br />
|
|
The <b>publicId</b> parameter is of type <b>String</b>.<br />
|
|
The <b>systemId</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>createDocument(namespaceURI, qualifiedName,
|
|
doctype)</b></dt>
|
|
|
|
<dd>This method returns a <b>Document</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>qualifiedName</b> parameter is of type <b>String</b>.<br />
|
|
The <b>doctype</b> parameter is a <b>DocumentType</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>DocumentFragment</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>DocumentFragment</b> has the all the properties and methods
|
|
of the <b>Node</b> object as well as the properties and methods
|
|
defined below.</dt>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Document</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Document</b> has the all the properties and methods of the
|
|
<b>Node</b> object as well as the properties and methods defined
|
|
below.</dt>
|
|
|
|
<dt>The <b>Document</b> object has the following properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>doctype</b></dt>
|
|
|
|
<dd>This read-only property is a <b>DocumentType</b> object.</dd>
|
|
|
|
<dt><b>implementation</b></dt>
|
|
|
|
<dd>This read-only property is a <b>DOMImplementation</b>
|
|
object.</dd>
|
|
|
|
<dt><b>documentElement</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Element</b> object.</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>The <b>Document</b> object has the following methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>createElement(tagName)</b></dt>
|
|
|
|
<dd>This method returns a <b>Element</b> object.<br />
|
|
The <b>tagName</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>createDocumentFragment()</b></dt>
|
|
|
|
<dd>This method returns a <b>DocumentFragment</b> object.</dd>
|
|
|
|
<dt><b>createTextNode(data)</b></dt>
|
|
|
|
<dd>This method returns a <b>Text</b> object.<br />
|
|
The <b>data</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>createComment(data)</b></dt>
|
|
|
|
<dd>This method returns a <b>Comment</b> object.<br />
|
|
The <b>data</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>createCDATASection(data)</b></dt>
|
|
|
|
<dd>This method returns a <b>CDATASection</b> object.<br />
|
|
The <b>data</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>createProcessingInstruction(target, data)</b></dt>
|
|
|
|
<dd>This method returns a <b>ProcessingInstruction</b>
|
|
object.<br />
|
|
The <b>target</b> parameter is of type <b>String</b>.<br />
|
|
The <b>data</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>createAttribute(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>Attr</b> object.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>createEntityReference(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>EntityReference</b> object.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>getElementsByTagName(tagname)</b></dt>
|
|
|
|
<dd>This method returns a <b>NodeList</b> object.<br />
|
|
The <b>tagname</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>importNode(importedNode, deep)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>importedNode</b> parameter is a <b>Node</b> object.<br />
|
|
The <b>deep</b> parameter is of type <b>Boolean</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>createElementNS(namespaceURI, qualifiedName)</b></dt>
|
|
|
|
<dd>This method returns a <b>Element</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>qualifiedName</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>createAttributeNS(namespaceURI, qualifiedName)</b></dt>
|
|
|
|
<dd>This method returns a <b>Attr</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>qualifiedName</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>getElementsByTagNameNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method returns a <b>NodeList</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>getElementById(elementId)</b></dt>
|
|
|
|
<dd>This method returns a <b>Element</b> object.<br />
|
|
The <b>elementId</b> parameter is of type <b>String</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Prototype Object <b>Node</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt>The <b>Node</b> class has the following constants:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Node.ELEMENT_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>1</b>.</dd>
|
|
|
|
<dt><b>Node.ATTRIBUTE_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>2</b>.</dd>
|
|
|
|
<dt><b>Node.TEXT_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>3</b>.</dd>
|
|
|
|
<dt><b>Node.CDATA_SECTION_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>4</b>.</dd>
|
|
|
|
<dt><b>Node.ENTITY_REFERENCE_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>5</b>.</dd>
|
|
|
|
<dt><b>Node.ENTITY_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>6</b>.</dd>
|
|
|
|
<dt><b>Node.PROCESSING_INSTRUCTION_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>7</b>.</dd>
|
|
|
|
<dt><b>Node.COMMENT_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>8</b>.</dd>
|
|
|
|
<dt><b>Node.DOCUMENT_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>9</b>.</dd>
|
|
|
|
<dt><b>Node.DOCUMENT_TYPE_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>10</b>.</dd>
|
|
|
|
<dt><b>Node.DOCUMENT_FRAGMENT_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>11</b>.</dd>
|
|
|
|
<dt><b>Node.NOTATION_NODE</b></dt>
|
|
|
|
<dd>This constant is of type <b>Number</b> and its value is
|
|
<b>12</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Node</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt>The <b>Node</b> object has the following properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>nodeName</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>nodeValue</b></dt>
|
|
|
|
<dd>This property is of type <b>String</b>, can raise a
|
|
<b>DOMException</b> object on setting and can raise a
|
|
<b>DOMException</b> object on retrieval.</dd>
|
|
|
|
<dt><b>nodeType</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>Number</b>.</dd>
|
|
|
|
<dt><b>parentNode</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Node</b> object.</dd>
|
|
|
|
<dt><b>childNodes</b></dt>
|
|
|
|
<dd>This read-only property is a <b>NodeList</b> object.</dd>
|
|
|
|
<dt><b>firstChild</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Node</b> object.</dd>
|
|
|
|
<dt><b>lastChild</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Node</b> object.</dd>
|
|
|
|
<dt><b>previousSibling</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Node</b> object.</dd>
|
|
|
|
<dt><b>nextSibling</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Node</b> object.</dd>
|
|
|
|
<dt><b>attributes</b></dt>
|
|
|
|
<dd>This read-only property is a <b>NamedNodeMap</b> object.</dd>
|
|
|
|
<dt><b>ownerDocument</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Document</b> object.</dd>
|
|
|
|
<dt><b>namespaceURI</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>prefix</b></dt>
|
|
|
|
<dd>This property is of type <b>String</b> and can raise a
|
|
<b>DOMException</b> object on setting.</dd>
|
|
|
|
<dt><b>localName</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>The <b>Node</b> object has the following methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>insertBefore(newChild, refChild)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>newChild</b> parameter is a <b>Node</b> object.<br />
|
|
The <b>refChild</b> parameter is a <b>Node</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>replaceChild(newChild, oldChild)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>newChild</b> parameter is a <b>Node</b> object.<br />
|
|
The <b>oldChild</b> parameter is a <b>Node</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>removeChild(oldChild)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>oldChild</b> parameter is a <b>Node</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>appendChild(newChild)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>newChild</b> parameter is a <b>Node</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>hasChildNodes()</b></dt>
|
|
|
|
<dd>This method returns a <b>Boolean</b>.</dd>
|
|
|
|
<dt><b>cloneNode(deep)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>deep</b> parameter is of type <b>Boolean</b>.</dd>
|
|
|
|
<dt><b>normalize()</b></dt>
|
|
|
|
<dd>This method has no return value.</dd>
|
|
|
|
<dt><b>isSupported(feature, version)</b></dt>
|
|
|
|
<dd>This method returns a <b>Boolean</b>.<br />
|
|
The <b>feature</b> parameter is of type <b>String</b>.<br />
|
|
The <b>version</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>hasAttributes()</b></dt>
|
|
|
|
<dd>This method returns a <b>Boolean</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>NodeList</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt>The <b>NodeList</b> object has the following properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>length</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>Number</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>The <b>NodeList</b> object has the following methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>item(index)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>index</b> parameter is of type <b>Number</b>.<br />
|
|
<b>Note:</b> This object can also be dereferenced using square
|
|
bracket notation (e.g. obj[1]). Dereferencing with an integer
|
|
<b>index</b> is equivalent to invoking the <b>item</b> method with
|
|
that index.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>NamedNodeMap</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt>The <b>NamedNodeMap</b> object has the following
|
|
properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>length</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>Number</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>The <b>NamedNodeMap</b> object has the following methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>getNamedItem(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>setNamedItem(arg)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>arg</b> parameter is a <b>Node</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>removeNamedItem(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>item(index)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>index</b> parameter is of type <b>Number</b>.<br />
|
|
<b>Note:</b> This object can also be dereferenced using square
|
|
bracket notation (e.g. obj[1]). Dereferencing with an integer
|
|
<b>index</b> is equivalent to invoking the <b>item</b> method with
|
|
that index.</dd>
|
|
|
|
<dt><b>getNamedItemNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>setNamedItemNS(arg)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>arg</b> parameter is a <b>Node</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>removeNamedItemNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method returns a <b>Node</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>CharacterData</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>CharacterData</b> has the all the properties and methods of
|
|
the <b>Node</b> object as well as the properties and methods
|
|
defined below.</dt>
|
|
|
|
<dt>The <b>CharacterData</b> object has the following
|
|
properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>data</b></dt>
|
|
|
|
<dd>This property is of type <b>String</b>, can raise a
|
|
<b>DOMException</b> object on setting and can raise a
|
|
<b>DOMException</b> object on retrieval.</dd>
|
|
|
|
<dt><b>length</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>Number</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>The <b>CharacterData</b> object has the following methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>substringData(offset, count)</b></dt>
|
|
|
|
<dd>This method returns a <b>String</b>.<br />
|
|
The <b>offset</b> parameter is of type <b>Number</b>.<br />
|
|
The <b>count</b> parameter is of type <b>Number</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>appendData(arg)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>arg</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>insertData(offset, arg)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>offset</b> parameter is of type <b>Number</b>.<br />
|
|
The <b>arg</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>deleteData(offset, count)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>offset</b> parameter is of type <b>Number</b>.<br />
|
|
The <b>count</b> parameter is of type <b>Number</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>replaceData(offset, count, arg)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>offset</b> parameter is of type <b>Number</b>.<br />
|
|
The <b>count</b> parameter is of type <b>Number</b>.<br />
|
|
The <b>arg</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Attr</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Attr</b> has the all the properties and methods of the
|
|
<b>Node</b> object as well as the properties and methods defined
|
|
below.</dt>
|
|
|
|
<dt>The <b>Attr</b> object has the following properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>name</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>specified</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>Boolean</b>.</dd>
|
|
|
|
<dt><b>value</b></dt>
|
|
|
|
<dd>This property is of type <b>String</b> and can raise a
|
|
<b>DOMException</b> object on setting.</dd>
|
|
|
|
<dt><b>ownerElement</b></dt>
|
|
|
|
<dd>This read-only property is a <b>Element</b> object.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Element</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Element</b> has the all the properties and methods of the
|
|
<b>Node</b> object as well as the properties and methods defined
|
|
below.</dt>
|
|
|
|
<dt>The <b>Element</b> object has the following properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>tagName</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>The <b>Element</b> object has the following methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>getAttribute(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>String</b>.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>setAttribute(name, value)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.<br />
|
|
The <b>value</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>removeAttribute(name)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>getAttributeNode(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>Attr</b> object.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>setAttributeNode(newAttr)</b></dt>
|
|
|
|
<dd>This method returns a <b>Attr</b> object.<br />
|
|
The <b>newAttr</b> parameter is a <b>Attr</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>removeAttributeNode(oldAttr)</b></dt>
|
|
|
|
<dd>This method returns a <b>Attr</b> object.<br />
|
|
The <b>oldAttr</b> parameter is a <b>Attr</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>getElementsByTagName(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>NodeList</b> object.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>getAttributeNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method returns a <b>String</b>.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>setAttributeNS(namespaceURI, qualifiedName, value)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>qualifiedName</b> parameter is of type <b>String</b>.<br />
|
|
The <b>value</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>removeAttributeNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method has no return value.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>getAttributeNodeNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method returns a <b>Attr</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>setAttributeNodeNS(newAttr)</b></dt>
|
|
|
|
<dd>This method returns a <b>Attr</b> object.<br />
|
|
The <b>newAttr</b> parameter is a <b>Attr</b> object.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
|
|
<dt><b>getElementsByTagNameNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method returns a <b>NodeList</b> object.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>hasAttribute(name)</b></dt>
|
|
|
|
<dd>This method returns a <b>Boolean</b>.<br />
|
|
The <b>name</b> parameter is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>hasAttributeNS(namespaceURI, localName)</b></dt>
|
|
|
|
<dd>This method returns a <b>Boolean</b>.<br />
|
|
The <b>namespaceURI</b> parameter is of type <b>String</b>.<br />
|
|
The <b>localName</b> parameter is of type <b>String</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Text</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Text</b> has the all the properties and methods of the
|
|
<b>CharacterData</b> object as well as the properties and methods
|
|
defined below.</dt>
|
|
|
|
<dt>The <b>Text</b> object has the following methods:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>splitText(offset)</b></dt>
|
|
|
|
<dd>This method returns a <b>Text</b> object.<br />
|
|
The <b>offset</b> parameter is of type <b>Number</b>.<br />
|
|
This method can raise a <b>DOMException</b> object.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Comment</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Comment</b> has the all the properties and methods of the
|
|
<b>CharacterData</b> object as well as the properties and methods
|
|
defined below.</dt>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>CDATASection</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>CDATASection</b> has the all the properties and methods of
|
|
the <b>Text</b> object as well as the properties and methods
|
|
defined below.</dt>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>DocumentType</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>DocumentType</b> has the all the properties and methods of
|
|
the <b>Node</b> object as well as the properties and methods
|
|
defined below.</dt>
|
|
|
|
<dt>The <b>DocumentType</b> object has the following
|
|
properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>name</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>entities</b></dt>
|
|
|
|
<dd>This read-only property is a <b>NamedNodeMap</b> object.</dd>
|
|
|
|
<dt><b>notations</b></dt>
|
|
|
|
<dd>This read-only property is a <b>NamedNodeMap</b> object.</dd>
|
|
|
|
<dt><b>publicId</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>systemId</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>internalSubset</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Notation</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Notation</b> has the all the properties and methods of the
|
|
<b>Node</b> object as well as the properties and methods defined
|
|
below.</dt>
|
|
|
|
<dt>The <b>Notation</b> object has the following properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>publicId</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>systemId</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>Entity</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>Entity</b> has the all the properties and methods of the
|
|
<b>Node</b> object as well as the properties and methods defined
|
|
below.</dt>
|
|
|
|
<dt>The <b>Entity</b> object has the following properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>publicId</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>systemId</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>notationName</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>EntityReference</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>EntityReference</b> has the all the properties and methods
|
|
of the <b>Node</b> object as well as the properties and methods
|
|
defined below.</dt>
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt>Object <b>ProcessingInstruction</b></dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>ProcessingInstruction</b> has the all the properties and
|
|
methods of the <b>Node</b> object as well as the properties and
|
|
methods defined below.</dt>
|
|
|
|
<dt>The <b>ProcessingInstruction</b> object has the following
|
|
properties:</dt>
|
|
|
|
<dd>
|
|
<dl>
|
|
<dt><b>target</b></dt>
|
|
|
|
<dd>This read-only property is of type <b>String</b>.</dd>
|
|
|
|
<dt><b>data</b></dt>
|
|
|
|
<dd>This property is of type <b>String</b> and can raise a
|
|
<b>DOMException</b> object on setting.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<!-- ecma-block -->
|
|
</div>
|
|
|
|
<!-- div1 ecma-binding -->
|
|
<div class='navbar' align='center'>
|
|
<hr title='Navigation area separator' />
|
|
<a accesskey='p' href='java-binding.html'>previous</a> <a
|
|
accesskey='n' href='acknowledgements.html'>next</a> <a
|
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
|
accesskey='i' href='def-index.html'>index</a></div>
|
|
</body>
|
|
</html>
|
|
|