Java Reference
In-Depth Information
setAttributeNS(namespaceURI,
qualifiedName, value)
Creates and adds a new
attribute with the specified
namespace URI, qualified name,
and value.
Level 2
Adds the specified attribute
to the element. Replaces the
existing attribute with the same
name if it exists.
Level 1
setAttributeNode(newAttr)
Adds the specified attribute to
the element.
Level 2
setAttributeNodeNS(newAttr)
Tex t
The Text object represents text content of an Element or Attr object.
Methods
MethOD NaMe
DesCrIptION
INtrODuCeD
Breaks the Text node into two nodes at
the specified offset. The new nodes stay
in the DOM tree as siblings.
Level 1
splitText(indexOffset)
htML DOM ObjeCts
In order to adequately interface with the DOM, the W3C extends the DOM Level 1 and 2
specifications to describe objects, properties, and methods, specific to HTML documents.
Most of the objects you'll interface with as a frontā€end developer are contained in this section.
Miscellaneous Objects: the htML Collection
The HTMLCollection object is a list of nodes, much like NodeList . It does not inherit from
NodeList , but HTMLCollection s are considered live, like NodeList s, and are automatically updated
when changes are made to the document.
Properties
prOperty NaMe
DesCrIptION
INtrODuCeD
Returns the number of elements in
the collection.
Level 1
length
Search WWH ::




Custom Search