W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2012

Re: [whatwg] Fullscreen events dispatched to elements

From: Jer Noble <jer.noble@apple.com>
Date: Mon, 04 Jun 2012 23:31:57 -0700
Message-id: <5CEA1DFC-7750-4783-A4F0-42D8D38FA9E8@apple.com>
To: robert@ocallahan.org
Cc: whatwg <whatwg@lists.whatwg.org>, Chris Pearce <cpearce@mozilla.com>, Anne van Kesteren <annevk@opera.com>, Webapps WG <public-webapps@w3.org>, Vincent Scheib <scheib@google.com>

On Jun 4, 2012, at 11:23 PM, Robert O'Callahan <robert@ocallahan.org> wrote:

> If you implemented that proposal as-is then authors would usually need a listener on the document as well as the element, and as Chris pointed out, it's simpler to just always listen on the document.
> 
> Is that true for the Webkit implementation or did you implement something slightly different?

Sorry, you're right; we did implement something slightly different.  We always dispatch a message to the element, and additionally one the document if the element has been removed from the document.  So authors only have to add event listeners to one or the other.

-Jer
Received on Tuesday, 5 June 2012 06:32:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC