ISSUE-2044 (svg-dom-enh): Consider improving the SVG DOM interfaces for attribute access [SVG Core 2.0]

ISSUE-2044 (svg-dom-enh): Consider improving the SVG DOM interfaces for attribute access [SVG Core 2.0]

http://www.w3.org/Graphics/SVG/WG/track/issues/2044

Raised by: Cameron McCormack
On product: SVG Core 2.0

It'd be nice to be able to do things like:

  rectElt.x = 20;

rather than having to do:

  rectElt.x.baseVal = 20;

when assigning to simple attributes.  This would be easy, with a [PutForwards] Web IDL annotation on the IDL attribute.  You could also have 'rectElt.x' treated as a Number by giving the SVGAnimatedLength ES host object a custom [[DefaultValue]] internal method or by making the ES bindings put a 'valueOf' function property on the SVGAnimatedLength prototype.

Received on Thursday, 28 August 2008 13:30:17 UTC