W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2011

Re: [DOMCore] setAttribute() and xmlns prefix match

From: Ms2ger <ms2ger@gmail.com>
Date: Fri, 26 Aug 2011 14:23:06 +0200
Message-ID: <4E57902A.8080100@gmail.com>
To: David Flanagan <dflanagan@mozilla.com>
CC: www-dom@w3.org
On 08/26/2011 01:07 AM, David Flanagan wrote:
> Step 3 of the setAttribute() algorithm says:
>>
>> If "xmlns" is a prefix match for qualifiedName, throw a NAMESPACE_ERR
>> and terminate these steps.
> Shouldn't that prefix match include a colon? Or is the intent to exclude
> attributes like "xmlnsisgreat" and "xmlns2:foo"?

I believe that's indeed the intent. Not sure if that's what we *want*, 
though. (In any case, if the prefix match included the colon, we'd have 
to special-case "xmlns" as well.)

HTH
Ms2ger
Received on Friday, 26 August 2011 12:23:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT