ãã£ããã£ãªã³ã°ã¨ãããªã³ã° Safariã»Operaç·¨
キャプチャリングとバブリング Firefox編 - 文殊堂ã®è¿½å 調æ»
Firefox2ã¨åæ§Safariã¨Operaã§ãæ¤è¨¼ç¨HTMLã§æ¤è¨¼ãã¦ã¿ã¾ããã
Safari3.1(Winç)
Firefox2ã¨ã¾ã£ããåãåä½ã§ããã
Opera9.26
Firefox2ã¨çµæãç°ãªãã¾ããã
(1)-å¤å´ã¯ãªãã¯
表示ããã
(1)-å
å´ã¯ãªãã¯
eventPhase:1,target:inner1,currentTarget:outer1
(2)-å¤å´ã¯ãªãã¯
eventPhase:2,target:outer2,currentTarget:outer2
(2)-å å´ã¯ãªãã¯
eventPhase:2,target:inner2,currentTarget:inner2 eventPhase:3,target:inner2,currentTarget:outer2
(3)-å¤å´ã¯ãªãã¯
eventPhase:2,target:outer3,currentTarget:outer3
(3)-å å´ã¯ãªãã¯
eventPhase:1,target:inner3,currentTarget:outer3 eventPhase:2,target:inner3,currentTarget:inner3 eventPhase:3,target:inner3,currentTarget:outer3
Firefoxã»Safariã¨Operaã®ç¸éç¹
useCaptureã«trueãæå®ãã¦ã¤ãã³ããã³ãã©ãè¨å®ããå ´åã«ã
Firefoxã¨Safariã§ã¯ãã£ããã£ãªã³ã°ãã§ã¼ãºåã³è©²å½è¦ç´ èªèº«ãã¿ã¼ã²ãããã¼ãã§ããæã¤ãã³ããã³ãã©ãå®è¡ããã¾ããã
Operaã§ã¯ãã£ããã£ãªã³ã°ãã§ã¼ãºã§ã®ã¿ã¤ãã³ããã³ãã©ãå®è¡ããã
該å½è¦ç´ èªèº«ãã¿ã¼ã²ãããã¼ãã®æã¯ã¤ãã³ããã³ãã©ãå®è¡ãããªãã¨ãããã¨ã®ããã§ãã
Operaã ãä»æ§ãæºããã¦ããªãã®ãã¨æã£ã¦ãDOMレベル2イベント仕様ãè¦ã¦ã¿ãæã
EventTargetä¸ã«ç»é²ããã¦ããEventListenerã¯ï¼addEventListenerã¡ã½ããã®useCaptureãã©ã¡ã¿ãtrueã«æå®ãããã¨ã«ãã£ã¦ï¼ãã®EventListenerã«ã¤ãã³ããæç²ããããã¨ãé¸æãã¦ãããããã®å¾ï¼æç²ãªãã¸ã§ã¯ãã®åå«ã«åãã¦ä¸ããããåã®ã¤ãã³ããéãä»ããå ´åã«ã¯ï¼ãã®ã¤ãã³ãã¯ï¼ææ¸ã®æä¸ä½ã¨ã¤ãã³ãã®ã¿ã¼ã²ããã¨ã®éã®ç´æ¥ã«ã¤ãªãã£ã¦ããç·ã«åå¨ããé©åãªåã®æç²ã¤ãã³ããªã¹ããèªçºããããã®ä¸æ¹ã¸ã®ä¼éã¯ï¼ã¤ãã³ãã®ã¿ã¼ã²ããã«å°éããã¾ã§ç¶ç¶ããããæç²EventListenerã¯ï¼ãããç»é²ããã¦ããEventTargetã¸ç´æ¥çã«éãä»ããããã¤ãã³ãã«ãã£ã¦ã¯èªçºãããªãã
ã©ããéã«Operaã®ã¿ä»æ§ã«æºæ ãã¦ããããã§ãã