prefix (W3C DOM Core property)
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
example above shows the root element of an XHTML document. Its final
attribute has the
xml:lang, and therefore its
The namespace prefix of this
null if this node has no namespace.
this value may also change the
nodeName of this node
(since the node name of a namespaced node is a combination of of
prefix), as well as the
name properties of elements and attributes
prefix of an
element or attribute that has a default value in this document type does
not cause a new default node to be created (ie. the prefix change might
mean that the default is no longer present, but a new default will not
appear to replace it).
This property is read/write.
Safari 1.3 and 2 the
prefix is an XML construct, it's only
reasonable to judge its behavior in terms of XML (either on HTML pages
in XHTML mode1, or pure XML). The
behavioral variations of browsers in HTML mode2 are documented
here for interest and reference, but the support summary table above
does not consider this behavior (ie. if the property is fully
supported in XML then it's considered to be fully supported, with no
Internet Explorer does not implement this property in HTML, and will return undefined.
There are no comments yet.