W3C home > Mailing lists > Public > public-webapi@w3.org > January 2007

Re: capturing load events

From: Shadow2531 <shadow2531@gmail.com>
Date: Thu, 4 Jan 2007 12:06:51 -0500
Message-ID: <6b9c91b20701040906w2a03a28dm5561e5da5493c43a@mail.gmail.com>
To: "Hallvord R. M. Steen" <hallvord@opera.com>
Cc: public-webapi@w3.org, "Joao Eiras" <joao.eiras@gmail.com>, "Bjoern Hoehrmann" <derhoermi@gmx.net>

On 1/3/07, Hallvord R. M. Steen <hallvord@opera.com> wrote:
> On Tue, 02 Jan 2007 02:16:29 +0100, Shadow2531 <shadow2531@gmail.com>
> wrote:
>
> >> Reference for TC:
> >> <http://lists.w3.org/Archives/Public/public-webapi/2006Dec/0127>
> >> So, it seems that:
> >> win cap (1) ([object HTMLImageElement])
> >> doc cap (1) ([object HTMLImageElement])
> >> win cap (1) ([object HTMLDocument])
> >> doc t+b (2) ([object HTMLDocument])
> >> win t+b (2) ([object HTMLDocument])
> >>
> >> is the way to go because it doesn't break the 'false' behavior and it
> >> allows 'true' to work as mosts sites intend. (Opera can produce that
> >> with the body -> document target fixes.)
>
> Opera actually fires a "load" event on BODY for compatibility with typical
> DOM0 <BODY onload="..."> code. This extra compatibility effort doesn't
> seem to be necessary since both IE6 and Firefox say "true" for the document
>
> <body onload="alert(this==window)"></body>
>
> so let's consider it a bug ;-p

Yeh.  Just using the bug as tool for the moment. :)

-- 
burnout426
Received on Thursday, 4 January 2007 17:07:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:56 GMT