On Wed, Jul 15, 2009 at 8:01 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> Cameron McCormack:
> > > Yes, there’s a proposal to simplify these SVG DOM accessors in SVG 2.0:
> > >
> > > http://www.w3.org/Graphics/SVG/WG/track/issues/2044
> > >
> > > We discussed whether it would be possible to drop the existing animVal/
> > > baseVal interfaces for something new, but there’s likely too much
> > > content that uses it now. The above proposal would work on existing
> > > SVGAnimatedLength etc. objects.
> > >
>
> Robert O'Callahan:
> > The problem with that proposal is that you can do rect.x = 20 but you
> can't
> > do rect2.x = rect.x + 5. Not being able to read the value you put in is
> > quite disconcerting.
>
> The proposal would allow that by specifying a valueOf function on the
> SVGAnimatedLength prototype object or by specifying a value for the
> [[DefaultValue]] internal property.
>
What does that mean for those of us who fear WebIDL?
Rob
--
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]