W3C home > Mailing lists > Public > public-device-apis-log@w3.org > July 2017

[sensors] What are the event.type strings?

From: Martijn Thé via GitHub <sysbot+gh@w3.org>
Date: Wed, 26 Jul 2017 12:27:00 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-245705429-1501072017-sysbot+gh@w3.org>
martijnthe has just created a new issue for https://github.com/w3c/sensors:

== What are the event.type strings? ==
I looking at the [test suite] in the hope of finding out answers but, I don't see `sensor.addEventListener(...)` being used there...

There was some discussion [here], but it's unclear to me from the spec doc what various the `Event`'s `type` strings are supposed to be. In case one wants to use the `EventTarget` interface instead of the `onreading`, etc. properties this is quite important 😄 It would be nice if this could be documented more clearly and also be added to the test cases.

cc @jiangzidong

[here]: https://github.com/w3c/sensors/issues/205
[test suite]: https://github.com/w3c/web-platform-tests/blob/master/generic-sensor/generic-sensor-tests.js

Please view or discuss this issue at https://github.com/w3c/sensors/issues/245 using your GitHub account
Received on Wednesday, 26 July 2017 12:27:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:53 UTC