Java Reference
In-Depth Information
Attr
The Attr object represents an Element object's attribute. Even though Attr objects inherit from Node,
they are not considered children of the element they describe, and thus are not part of the DOM tree.
The Node properties of parentNode, previousSibling, and nextSibling return null for Attr
objects.
Properties
Property Name
Description
Introduced
ownerElement
Returns the Element object the attribute is attached to.
Level 2
name
Returns the name of the attribute.
Level 1
value
Returns the value of the attribute.
Level 1
Document
The Document object represents the entire HTML or XML document. It is the root of the document tree.
The Document is the container for all nodes within the document, and each Node object's ownerDocument
property points to the Document.
Properties
Property Name
Description
Introduced
docType
The DocType object associated with this document.
Returns null for HTML and XML documents without a
document type declaration.
Level 1
documentElement
Returns the root element of the document. For HTML
documents, the documentElement is the <html/>
element.
Level 1
implementation
The DOMImplementation object associated with the
Document .
Level 1
Methods
Method Name
Description
Introduced
createAttribute(name)
Returns a new Attr object with
the specifi ed name.
Level 1
createAttributeNS(namespaceURI,
qualifiedName)
Returns an attribute with the
given qualifi ed name and
namespace URI. Not for
HTML DOMs.
Level 2
Continued
Search WWH ::




Custom Search