W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2008

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

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Thu, 28 Aug 2008 13:29:44 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20080828132944.8655EBF4F@nelson.w3.org>


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:09 UTC