W3C home > Mailing lists > Public > www-svg@w3.org > December 2005

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

From: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 26 Dec 2005 22:35:07 -0700
Message-Id: <A6EA9D36-31AD-4AB6-89E9-433D7B3F46D9@apple.com>
To: www-svg@w3c.org


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 recommend incorporating DOM Level 3 Core hasAttributeNS.

Regards,
Maciej
Received on Tuesday, 27 December 2005 05:46:06 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:32 GMT