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

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 UTC