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

Re: setAttributeNS(): should it change the namespace prefix?

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Thu, 1 Dec 2011 01:01:12 -0800
Message-ID: <CABNRm63_p2nc7ZY=zzQByDBd-OYGyCqk+thN_Uak4YD02oeYtA@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>
FYI, IE9 also says "e:a".

- Ryosuke

On Tue, Nov 29, 2011 at 8:22 AM, Anne van Kesteren <annevk@opera.com> wrote:

> document.head.setAttributeNS("**test", "x:a", "a")
> document.head.setAttributeNS("**test", "e:a", "b")
>
> Should the result be an attribute "x:a" or "e:a"? Gecko says "e:a",
> Opera/Webkit say "x:a". Making the prefix member of an attribute completely
> immutable seems somewhat preferable to me. Opinions?
>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/
>
>
Received on Thursday, 1 December 2011 09:02:05 GMT

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