Re: [svgwg] Make SVGAnimatedX data types extend DOMX data types wherever possible

@dstorey  Halfway there doesn't seem enough to address the main problem: that developers expect these properties to be equivalent to the HTML ones, and then code breaks when it doesn't.

For strings in particular, we *could* add a simple string serialization for the `get` case.  SVG 2 doesn't currently define stringifiers for these types.

But it would still not be completely consistent with DOMString in a JavaScript binding, where you would expect the value to be a simple string type, which can use . notation to call String object methods. 

And that still doesn't address the other SVGAnimated* types.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/175#issuecomment-378403689 using your GitHub account

Received on Tuesday, 3 April 2018 21:22:48 UTC