Re: CR: prefix

Dieter Köhler wrote:
> 
> The description of the Node.prefix attribute says: "For nodes of any type other
> than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1
> method, such as createElement from the Document interface, this is always
> null."  --  Does this imply that a NAMESPACE_ERR exception is raised if an
> attempt is made to set the value of 'prefix' to something else than an empty
> string, or does it imply that such an attempt is just ignored?

Since the namespaceURI is also null, you'll get a NAMESPACE_ERR exception.

Philippe

Received on Monday, 5 February 2001 17:20:29 UTC