W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: [PointerLock] Should there be onpointerlockchange/onpointerlockerror properties defined in the spec

From: Vincent Scheib <scheib@google.com>
Date: Thu, 10 Jan 2013 11:02:51 -0800
Message-ID: <CAK-EfX=WGFsPyjhReF8e08mMevBZAgXHvu0-wiPA0vc6Z6rJpw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Anne van Kesteren <annevk@annevk.nl>, Tantek Çelik <tantek@cs.stanford.edu>, Webapps WG <public-webapps@w3.org>
What objects should these be exposed on? In previous discussions, if I
recall correctly, arguments were made for ~"the spec states the event is
dispatched to the document"~ but also e.g. webkit's implementation of
fullscreen bubbles from the target element, so perhaps you sould be able to
listen on everything. In the webkit pointer lock implementation events go
only to the document.

I suggest we expose the properties only on document, unless someone can
communicate the value of also including them on other elements.

I'm confused why HTML should include the properties, and not the respective

On Thu, Jan 10, 2013 at 10:29 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 1/10/13 1:19 PM, Vincent Scheib wrote:
>> The pointer lock specification intentionally mimics the fullscreen
>> specification to provide consistency for developers, as they are similar
>> and expected to be commonly used in the same apps. Neither specification
>> mention event properties.
> But HTML5 mentions onfullscreenchange/**onfullscreenerror.  Right now it
> only puts it on window/body/frameset, but not on document or any other
> node.  See https://www.w3.org/Bugs/**Public/show_bug.cgi?id=20637<https://www.w3.org/Bugs/Public/show_bug.cgi?id=20637>that I filed earlier today.
>  Mozilla and Chrome implement
>> document.on<prefix>**fullscreenchange
>> document.on<prefix>**fullscreenerror
>> document.on<prefix>**pointerlockchange
>> document.on<prefix>**pointerlockerror
> Mozilla currently puts these properties on all HTML elements and on
> Document and Window, for what it's worth.
>  Pending agreement to add properties to the fullscreen specification, I
>> agree this should be included in the specification.
> Please!
> -Boris
Received on Thursday, 10 January 2013 19:03:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:58 UTC