prefix: DOMString(2)
Represents the namespace prefix of this node, used
for nodes that support namespace prefixes. For ELEMENT_NODE
and ATTRIBUTE_NODE
type nodes, changing the
namespace prefix also affects the nodeName
, tagName
, and name
attributes. Since these properties
hold the qualified name of the node, changing the prefix also
updates it.
Raised if the prefix
includes an illegal
character.
Indicates that the prefix
attribute is read-only for
this DOM object type.
Raised if the prefix
is malformed, according to
the rules of namespace identifier formation. This exception
is also raised if the namespaceURI
attribute is null
, or if an attempt was made to
violate the XML rules of identifier formation. Such an
attempt includes invalid use of the xml
or xmlns
identifier. For more
information about namespaces, see Chapter 4.