W3C home > Mailing lists > Public > public-geolocation@w3.org > March 2016

Re: [deviceorientation] Specify the onfoo event listener attributes in Web IDL

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Fri, 04 Mar 2016 03:51:11 +0000
To: public-geolocation@w3.org
Message-ID: <issue_comment.created-192085002-1457063468-sysbot+gh@w3.org>
Yes it is. The spec says "User agents must also provide an event 
handler IDL attribute named ondeviceorientation on the window object. 
The type of the corresponding event must be deviceorientation." which 
implementors will surely understand, but it can be done using IDL as 
in Blink:
partial interface Window {
    attribute EventHandler ondeviceorientation;
    attribute EventHandler ondeviceorientationabsolute;
Note also that "The type of the corresponding event must be 
deviceorientation" sounds a bit strange, it should be something 
involving "event handler event types".

GitHub Notification of comment by foolip
Please view or discuss this issue at 
 using your GitHub account
Received on Friday, 4 March 2016 03:51:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:51:13 UTC