Java Reference
In-Depth Information
(continued)
MethOD NaMe
DesCrIptION
INtrODuCeD
Returns the Attr object
associated with the specified
name. Returns null if no
attribute by that name exists.
Level 1
getAttributeNode(name)
Returns a NodeList of all
descendant elements with the
specified tagName in the order
in which they appear in the tree.
Level 1
getElementsByTagName(tagName)
getElementsByTagNameNS(namespaceURI,
localName)
Returns a NodeList of all the
descendant Element objects
with the specified local name and
namespace URI. Not for HTML
DOMs.
Level 2
Returns a boolean value based
on whether or not the element
has an attribute with the
specified name.
Level 2
hasAttribute(name)
hasAttributeNS(namespaceURI,
localName)
Returns a boolean value based
on whether the Element has an
attribute with the given local
name and namespace URI. Not
for HTML DOMs.
Level 2
Retrieves the first child element
that matches the specified selector.
Level 3
querySelector(selector)
Retrieves all child elements that
match the specified selector.
Level 3
querySelectorAll(selector)
Removes the attribute with the
specified name.
Level 1
removeAttribute(name)
removeAttributeNS(namespaceURI,
localName)
Removes an attribute specified by
the local name and namespace
URI. Not for HTML DOMs.
Level 2
Removes and returns the
specified attribute.
Level 1
removeAttributeNode(oldAttr)
Creates and adds a new
attribute, or changes the value
of an existing attribute. The
value is a simple string.
Level 1
setAttribute(name, value)
Search WWH ::




Custom Search