W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [matrix][cssom-view] DOMPoint, DOMPointLiteral definitions

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 25 Sep 2013 01:42:32 -0400
Message-ID: <524277C8.4030105@mit.edu>
To: www-style list <www-style@w3.org>
So here's a question for mutable vs immutable DOMRect stuff.

Are there any cases in which we'd want to return a mutable DOMRect where 
returning a dictionary wouldn't work just as well?

As in, do we really just want to have an immutable DOMRect type and a 
DOMRectLiteral dictionary, and have things like getBoundingClientRect() 
return the latter, say?


P.S. In a super-ideal world we may be able to have an interface with the 
getters and then a derived interface with the setters, but there's no 
really good way to do that in ES: you have to put the getters on both 
interfaces.  Which is also an option, of course; it just leads to some 
surprising results if you try to interpose those getters on the 
less-derived interface from script.
Received on Wednesday, 25 September 2013 05:43:01 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC