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

setAttributeNS(): should it change the namespace prefix?

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 29 Nov 2011 17:22:03 +0100
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <op.v5pue1ha64w2qv@annevk-macbookpro.local>
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
Received on Tuesday, 29 November 2011 16:22:35 UTC

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