The value portion of the ATTRIBUTE="aValue" construct. Knowing the name and value of an attribute provides sufficient information to reconstruct the source HTML code from scratch. Some nodeValues may not be defined by ATTRIBUTE HTML tag attributes, but may be the content of the tag itself.
If the object that the attributes are associated with is a TxtNode object, then the nodeValue should return the textual content encapsulated by that object. In that case, the nodeValue cannot be modified although it may be writable for other object types.
If the nodeType is an attribute then the nodeValue reflects its HTML tag attribute value or null if it has not been defined.
If the nodeType is an HTML Element object, then the nodeName should be used to determine which tag it encapsulates. In that case the nodeValue should yield a null.
Prev | Home | Next |
Attribute.nodeType | Up | Attribute.specified |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |