add an event listener

add an event listener

[1] Bug 99820 - document.addEventListener fails on load and unload https://bugzilla.mozilla.org/show_bug.cgi?id=99820 (名無しさん)

[2] seamonkey/dom/public/idl/events/nsIDOMNSEventTarget.idl (2006-06-13 12:12:26 +09:00 版) http://lxr.mozilla.org/seamonkey/source/dom/public/idl/events/nsIDOMNSEventTarget.idl#50 (名無しさん)

[3] Latest topics > Webページ内のスクリプトからchrome内に処理を渡す - outsider reflex (Piro(SHIMODA Hiroshi) 著, 版) http://piro.sakura.ne.jp/latest/blosxom/mozilla/xul/2007-05-16_splitbrowser-api.htm (名無しさん 2007-05-20 01:37:28 +00:00)

[4] addEventListener の順番 - m2 ( 版) http://d.hatena.ne.jp/miya2000/20090411/p0

(function(){
  function a() {alert('a')}
  function b() {alert('b')}
  function c() {alert('c')}
  window.addEventListener('click', a, false);
  window.addEventListener('click', b, false);
  window.addEventListener('click', c, false);
  window.addEventListener('click', a, false);
})()

opera -> b, c, a;

firefox -> a, b, c;

Safari -> b, c, a

[5]

ブックマークレット経由ではてなブックマーク拡張のパネルを開く - 冬通りに消え行く制服ガールは、夢物語にリアルを求めない。 - subtech ( 版) http://subtech.g.hatena.ne.jp/cho45/20090414/1239713457

非 chrome 権限 (ブックマークレット) から、chrome 権限 (userChrome.js) への受け渡しにイベントをつかっているのですが、addEventListener の第4引数を true にしないとダメらしいです。id:nanto_vi さんが教えてくれなかったら挫折してた。

firefox mozilla/dom/public/idl/events/nsIDOMNSEventTarget.idl http://mxr.mozilla.org/firefox/source/dom/public/idl/events/nsIDOMNSEventTarget.idl#48 の wantUntrusted

[6] Opera だと window事象発火しても windowaddEventListener した事象取扱器が呼ばれないみたいです。。。

[7] Ambient light API redesign ( (Anne van Kesteren 著, 版)) http://lists.w3.org/Archives/Public/public-device-apis/2014Aug/0058.html

[8] 1057185 – [Ambient Light API] Retrieve light levels at any time ( ( 版)) https://bugzilla.mozilla.org/show_bug.cgi?id=1057185

[9] XML Events 2 ( ( 版)) http://www.w3.org/TR/xml-events2/#section-addEventListener-element

[10] Close #155: change addEventListener()/removeEventListener() for servi… · whatwg/dom@5666670 ( 版) https://github.com/whatwg/dom/commit/5666670a6517b870197e8ec64197957f2882f531

[11] Proposal: Optimized No-Fetch Service Workers · Issue #718 · slightlyoff/ServiceWorker ( 版) https://github.com/slightlyoff/ServiceWorker/issues/718

[12] Add EventListenerOptions and passive event listener feature · whatwg/dom@253a21b ( 版) https://github.com/whatwg/dom/commit/253a21b8e78e37447c47983916a7cf39c4f6a3c5

[13] Geckotrustedイベント以外も受け取るか否かを表す第4引数を実装しています。

[14] Enable an event listener to be invoked just once · whatwg/dom@e002d78 ( 版) https://github.com/whatwg/dom/commit/e002d7811533e276c9927b237748c4e170f4cb10

[15] Remove passive as event listener key · whatwg/dom@a13a3c7 ( 版) https://github.com/whatwg/dom/commit/a13a3c7fc14732691b50c51316b16de0915a61f2

[16] Specify global object references in more detail (annevk著, ) https://github.com/whatwg/dom/commit/fa8adb6cd107cd845feaeb71c9da208971b670ca

[17] DeviceOrientation Event

[18] Editorial: add "add an event listener" hook (annevk著, ) https://github.com/whatwg/dom/commit/2bdabb15de8112d9783cf393a3d6c37911149f77

[19] Behavior of the onfetch setter regarding no-fetch service workers · Issue #1004 · w3c/ServiceWorker () https://github.com/w3c/ServiceWorker/issues/1004

[20] Editorial: add "add an event listener" hook by annevk · Pull Request #596 · whatwg/dom () https://github.com/whatwg/dom/pull/596

[21] Make event handlers share a code path with addEventListener() (annevk著, ) https://github.com/whatwg/html/commit/9a2a66cd8f8ddfa4c35d784bcda5c080e82aad38

[22] Make event handlers share a code path with addEventListener() by annevk · Pull Request #3561 · whatwg/html () https://github.com/whatwg/html/pull/3561

[23] Change add/remove event listener behavior for service workers (jungkees, , ) https://github.com/whatwg/dom/commit/7a48d64b41c586afc2e57d25eab99e8cfba5de1a

[24] Nerfing all events on all event targets in a serviceworker after initial script evaluation seems odd · Issue #371 · whatwg/dom () https://github.com/whatwg/dom/issues/371

[25] Change add/remove event listener behavior for service workers by jungkees · Pull Request #653 · whatwg/dom () https://github.com/whatwg/dom/pull/653