ISSUE-2044: Consider improving the SVG DOM interfaces for attribute access

svg-dom-enh

Consider improving the SVG DOM interfaces for attribute access

State:
RAISED
Product:
SVG 2
Raised by:
Cameron McCormack
Opened on:
2008-08-28
Description:
It'd be nice to be able to do things like:

rectElt.x = 20;

rather than having to do:

rectElt.x.baseVal.value = 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.
Related Actions Items:
Related emails:
  1. Re: Minutes, July 15 2009 SVG WG telcon (from codedread@gmail.com on 2009-07-15)
  2. Re: Canvas and Interactivity (from robert@ocallahan.org on 2009-07-15)
  3. Minutes, July 15 2009 SVG WG telcon (from cam@mcc.id.au on 2009-07-15)
  4. Re: Canvas and Interactivity (from cam@mcc.id.au on 2009-07-15)
  5. Re: Canvas and Interactivity (from robert@ocallahan.org on 2009-07-15)
  6. Re: Canvas and Interactivity (from cam@mcc.id.au on 2009-07-15)
  7. Minutes, Raleigh F2F 2009 day 5 (from cam@mcc.id.au on 2009-06-13)
  8. Agenda, June 03 2009 SVG WG telcon (from ed@opera.com on 2009-06-02)
  9. Agenda May 27 2009 SVG WG telcon (from ed@opera.com on 2009-05-26)
  10. ISSUE-2044 (svg-dom-enh): Consider improving the SVG DOM interfaces for attribute access [SVG Core 2.0] (from sysbot+tracker@w3.org on 2008-08-28)

Related notes:

No additional notes.

Changelog:

Created issue 'Consider improving the SVG DOM interfaces for attribute access' nickname svg-dom-enh owned by Cameron McCormack on product SVG Core 2.0, description '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.
' non-public

Cameron McCormack, 28 Aug 2008, 13:29:44

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

rectElt.x = 20;

rather than having to do:

rectElt.x.baseVal.value = 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.
'

Jonathan Watt, 24 Jul 2009, 12:48:51


Dirk Schulze <dschulze@adobe.com>, Chair, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.326 2018/10/13 17:29:51 vivien Exp $