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

RE: [cssom] Proposal for obtaining robust style information via Javascript - getStyle()

From: François REMY <francois.remy.dev@outlook.com>
Date: Fri, 1 Feb 2013 20:56:05 +0100
Message-ID: <DUB002-W7241A3237C78D041D47A3FA51C0@phx.gbl>
To: Tab Atkins Jr. <jackalmage@gmail.com>, Boris Zbarsky <bzbarsky@mit.edu>
CC: "L. David Baron" <dbaron@dbaron.org>, www-style list <www-style@w3.org>
> > What I'm not convinced about is an API that has a polymorphic "immutable
> > string or live object" return type, because that seems like a footgun (e.g.
> > saving the return value and then checking it later has different behavior
> > depending on which flavor of the API you managed to call).
> >
> > David's proposed API does not have that problem.
> Yeah, I like David's API a lot.

Me too, FWIW. It reminds me 'style', 'runtimeStyle' and 'currentStyle' of IE. BTW, it's maybe the good time to support the 'override' style level (more or less 'runtimeStyle' of IE) 		 	   		  
Received on Friday, 1 February 2013 19:56:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:08 UTC