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

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

From: Robin Berjon <robin@berjon.com>
Date: Wed, 30 Nov 2011 12:03:56 +0100
Cc: Anne van Kesteren <annevk@opera.com>, "www-dom@w3.org" <www-dom@w3.org>
Message-Id: <8453920E-3F9B-438D-A443-717FF534116F@berjon.com>
To: Jonas Sicking <jonas@sicking.cc>
On Nov 30, 2011, at 00:24 , Jonas Sicking wrote:
> This is somewhat off-topic, but I'm actually hoping that we can get rid of namespaced attributes. They create a lot of silly performance issues (even if you never ever use namespaced attributes or setAttributeNS/getAttributeNS) and implementation complexity. Not to mention that people very often misunderstand how they work and think that prefix-less attributes belong to the same namespace as the owner element or use the default (prefixless-xmlns declared) namespace.

Given that the stack has resolutely moved in the namespace-less direction, I think that would be the logical move forward. They should be kept for XMLDocument where they are still likely to be needed, but can be dropped entirely elsewhere. Applying some decent rules based on just using names should cater to cases like xlink:href.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Wednesday, 30 November 2011 11:04:20 GMT

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