W3C home > Mailing lists > Public > www-style@w3.org > March 2008

Re: Fwd: cssom - clientTop, et v

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 10 Mar 2008 02:42:39 -0700
Message-ID: <c9e12660803100242u14880ee5k84a5d4ade7b49da4@mail.gmail.com>
To: "Anne van Kesteren" <annevk@opera.com>
Cc: Www-style <www-style@w3.org>

On Mon, Mar 10, 2008 at 2:07 AM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
> On Mon, Mar 10, 2008 at 12:59 AM, Anne van Kesteren <annevk@opera.com> wrote:
>  > On Mon, 10 Mar 2008 06:24:46 +0100, Garrett Smith <dhtmlkitchen@gmail.com>
>  >  wrote:


>  >  Do you know of any site that does that? I'd love to have some pointers.
>
>  Do I know any sites that do that? Not off the top of my head, no.
>
>  However, assuming the return value is string would not necessarily be
>  the correct assumption.
>
>  var x = "opacity";
>  alert(typeof document.body.currentStyle[ x ])
>
>  IE: "undefined"
>  Opera: "string"
>


Same with clip:
javascript:alert( typeof document.body.currentStyle[ 'clip' ] );


Garrett

>  Garrett
>
>  >
>  >  --
>  >
>  >
>  > Anne van Kesteren
>
Received on Monday, 10 March 2008 09:42:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT