Re: DOMString-like objects for the CSSOM

On Sat, 20 Feb 2010 02:22:12 +0100, Maciej Stachowiak <mjs@apple.com>  
wrote:
> The other alternatives involve creating some parallel API, along one
> of the following lines:
>
> foo.style.topValue.px = 200
> foo.style.topPX = 200
> foo.styleValues.top.px = 200
>
> Of these options, I think the last one is probably the best, because
> it's easy to feature-test for from script. The only problem is that
> "styleValues" is kind of a bad name. I'm sure there are better
> possibilities though.

I guess we should do something like that then.

I personally think a new member on CSSStyleDeclaration would be better so  
we do not need to introduce a whole new series of accessors. Thoughts?


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Tuesday, 23 February 2010 10:50:20 UTC