W3C home > Mailing lists > Public > www-svg@w3.org > January 2006

Re: SVGT 1.2: no way to tell through uDOM if an attribute is present

From: Cyril Concolato <cyril.concolato@enst.fr>
Date: Wed, 04 Jan 2006 10:09:06 +0100
Message-ID: <43BB90B2.2080508@enst.fr>
To: Maciej Stachowiak <mjs@apple.com>
Cc: www-svg@w3c.org


Maciej Stachowiak a écrit :
> Since getAttributeNS returns empty string for both an absent  attribute 
> and an attribute that is present but with an empty value,  there is no 
> way to determine through the uDOM whether an attribute is  absent. This 
> seems like a significant hole in the API and the  implementation load 
> from adding hasAttributeNS seems small.
I understand the concern about compatibility between uDOM and DOM on getAttributeNS, but I don't think testing if an attribute is absent is relevant in SVG T1.2. In SVG T 1.2, the intent is that unspecified attributes default to a value, so whether it's absent or specified with the default value is the same. Could you explain why you would test if an attribute is absent?  

Best regards,

Cyril Concolato
> I recommend incorporating DOM Level 3 Core hasAttributeNS.
> Regards,
> Maciej

Dept. Comelec
Ecole Nationale Supérieure des Télécommunications, Paris
46, rue Barrault 75013 Paris
Tel: +33145817991    Fax: +33145804036
Received on Wednesday, 4 January 2006 09:36:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:06 UTC