RE: [SVG12Mobile]: GetAttributeNS in uDOM

Hello Diego,

The spec is quite clear about this in A.2.6 :

Example: Difference between traits and getAttributeNS (Java) :

<g fill="red">
  <rect id="r1" x="1" y="1" width="5" height="5"/>
  <rect id="r2" fill="inherit" x="1" y="1" width="5" height="5"/>
</g>

r1.getTraitNS(null, "fill") returns "red" (or equivalent normalized form, see below).
r2.getTraitNS(null, "fill") returns "red" (or equivalent normalized form, see below).
r1.getAttributeNS(null, "fill") returns "".
r2.getAttributeNS(null, "fill") returns "inherit". 

Regards,

Vincent

-----Message d'origine-----
De : www-svg-request@w3.org [mailto:www-svg-request@w3.org] De la part de Diego Gibellino
Envoyé : jeudi 18 mai 2006 16:27
À : www-svg@w3.org
Objet : [SVG12Mobile]: GetAttributeNS in uDOM


In uDOM the GetAttributeNS method on an attribute or property with no defined value in a SVG Element should return "" or the string representing its default value?

example:

<rect width="100" height="100"/>

GetAttributeNS(SVGNS,"fill");

Regards,

Diego

Received on Thursday, 18 May 2006 15:00:31 UTC