OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 <script src="resources/shadow-dom.js"></script> |
| 6 </head> |
| 7 <body> |
| 8 <p id="description"></p> |
| 9 <div id="sandbox"></div> |
| 10 <pre id="console"></pre> |
| 11 <div id='a'> |
| 12 <div id='b'> |
| 13 <div id='c'> |
| 14 </div> |
| 15 </div> |
| 16 </div> |
| 17 <script> |
| 18 var b = document.getElementById('b'); |
| 19 b.addEventListener('click', function(event) { |
| 20 var path = event.path(); |
| 21 debug(dumpNodeList(path)); |
| 22 debug('Makes sure that event.path() returns static NodeList.'); |
| 23 path[1] = ''; |
| 24 debug(dumpNodeList(event.path())); |
| 25 }); |
| 26 var clickEvent = document.createEvent("MouseEvents"); |
| 27 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, fa
lse, false, false, 0, null); |
| 28 b.dispatchEvent(clickEvent); |
| 29 </script> |
| 30 <script src="../../js/resources/js-test-post.js"></script> |
| 31 </body> |
| 32 </html> |
OLD | NEW |