Re: Fwd: cssom - clientTop, et v

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 UTC