W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2003

Re: Hesitation on setAttributeNS

From: Andrew Clover <and-w3@doxdesk.com>
Date: Wed, 10 Dec 2003 19:12:47 +0000
To: www-dom@w3.org
Message-ID: <20031210191247.GB7704@doxdesk.com>

Robin Berjon <robin.berjon@expway.fr> wrote:

> I surely hope no other prefix-less attribute can be considered to 
> have a namespace in XML :) I didn't find it clear from the text that 
> setting a nsURI and no prefix was allowed.

Ah! I see what you mean properly now. :-)

As I read it, the prefix of an Attr node is, in the face of namespace
normalisation, not fixed, so it makes sense that a non-namespace-well-formed
situation (namespace w/ null prefix) should be allowed to exist temporarily
- it could be used by authors to create attributes in a namespace without
caring what prefix will later be used in the serialisation.

My interpretation, anyway.

Andrew Clover
Received on Wednesday, 10 December 2003 14:31:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:11 UTC