📄 dom_element.asp@output=print
字号:
<td valign="top"><a href="met_element_getattributenode.asp">getAttributeNode()</a></td>
<td valign="top">Returns an attribute node as an Attribute object</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_getattributenodens.asp">getAttributeNodeNS()</a></td>
<td valign="top">Returns an attribute node (with a namespace) as an Attribute object</td>
<td valign="top">No</td>
<td valign="top"> </td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_getelementsbytagname.asp">
getElementsByTagName()</a></td>
<td valign="top">Returns a NodeList of matching element nodes, and their
children</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_getelementsbytagnamens.asp">getElementsByTagNameNS()</a></td>
<td valign="top">Returns a NodeList of matching element nodes (with a
namespace), and their children</td>
<td valign="top">No</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">getFeature(feature,version)</td>
<td valign="top">Returns a DOM object which implements the specialized APIs
of the specified feature and version</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">getUserData(key)</td>
<td valign="top">Returns the object associated to a key on a this node. The
object must first have been set to this node by calling setUserData with the
same key</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_hasattribute.asp">hasAttribute()</a></td>
<td valign="top">Returns whether an element has any attributes matching a
specified name</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_hasattributens.asp">hasAttributeNS()</a></td>
<td valign="top">Returns whether an element has any attributes matching a
specified name and
namespace</td>
<td valign="top">No</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_hasattributes.asp">hasAttributes()</a></td>
<td valign="top">Returns whether the element has any attributes</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_haschildnodes.asp">hasChildNodes()</a></td>
<td valign="top">Returns whether the element has any child nodes</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_insertbefore.asp">insertBefore()</a></td>
<td valign="top">Inserts a new child node before an existing child node</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">isDefaultNamespace(URI)</td>
<td valign="top">Returns whether the specified namespaceURI is the default</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_isequalnode.asp">isEqualNode()</a></td>
<td valign="top">Checks if two nodes are equal</td>
<td valign="top">No</td>
<td valign="top">No</td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_issamenode.asp">isSameNode()</a></td>
<td valign="top">Checks if two nodes are the same node</td>
<td valign="top">No</td>
<td valign="top">1</td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">isSupported(feature,version)</td>
<td valign="top">Returns whether a specified feature is supported on the
element</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_lookupnamespaceuri.asp">lookupNamespaceURI()</a></td>
<td valign="top">Returns the namespace URI matching a specified prefix</td>
<td valign="top">No</td>
<td valign="top">1</td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_lookupprefix.asp">lookupPrefix()</a></td>
<td valign="top">Returns the prefix matching a specified namespace URI</td>
<td valign="top">No</td>
<td valign="top">1</td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">normalize()</td>
<td valign="top">Puts all text nodes underneath this element (including
attributes) into a "normal" form where only structure (e.g., elements,
comments, processing instructions, CDATA sections, and entity references)
separates Text nodes, i.e., there are neither adjacent Text nodes nor empty
Text nodes </td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_removeattribute.asp">removeAttribute()</a></td>
<td valign="top">Removes a specified attribute</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_removeattributens.asp">removeAttributeNS()</a></td>
<td valign="top">Removes a specified attribute (with a namespace)</td>
<td valign="top">No</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_removeattributenode.asp">
removeAttributeNode()</a></td>
<td valign="top">Removes a specified attribute node</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_removechild.asp">removeChild()</a></td>
<td valign="top">Removes a child node</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_replacechild.asp">replaceChild()</a></td>
<td valign="top">Replaces a child node</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">setUserData(key,data,handler)</td>
<td valign="top">Associates an object to a key on the element</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_setattribute.asp">setAttribute()</a></td>
<td valign="top">Adds a new attribute</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_setattributens.asp">setAttributeNS()</a></td>
<td valign="top">Adds a new attribute (with a namespace)</td>
<td valign="top"> </td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_element_setattributenode.asp">setAttributeNode()</a></td>
<td valign="top">Adds a new attribute node</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">setAttributeNodeNS(attrnode)</td>
<td valign="top">Adds a new attribute node (with a namespace)</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">setIdAttribute(name,isId)</td>
<td valign="top">If the isId property of the Attribute object is true, this
method declares the specified attribute to be a user-determined ID attribute</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">setIdAttributeNS(uri,name,isId)</td>
<td valign="top">If the isId property of the Attribute object is true, this
method declares the specified attribute (with a namespace) to be a
user-determined ID attribute</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">setIdAttributeNode(idAttr,isId)</td>
<td valign="top">If the isId property of the Attribute object is true, this
method declares the specified attribute to be a user-determined ID attribute</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">No</td>
<td valign="top">Yes</td>
</tr>
</table>
<br />
<hr />
<a href="dom_processinginstruction.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="dom_attribute.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -