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

Re: Proposal: getStyleAs(property, primitiveValue)

From: Brad Kemper <brad.kemper@gmail.com>
Date: Tue, 22 Sep 2009 10:33:40 -0700
Cc: www-style <www-style@w3.org>
Message-Id: <7A420B49-9AB8-4A1F-8802-1E8C1AA0078F@gmail.com>
To: Garrett Smith <dhtmlkitchen@gmail.com>

On Sep 22, 2009, at 9:27 AM, Garrett Smith wrote:

>  * Too verbose. The defaultView is unrelated to the Element (the DOM
> spec says: "a computed style is related to an Element node").
> Verbosity is not such a problem with operations that don't occur
> frequently throughout the code. Reading styles is a common task.

I agree; that is a really big problem with that.

> New Proposal:
> var height = x.getStyleAs("height", "px");

I like it!
Received on Tuesday, 22 September 2009 17:34:27 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT