OLD | NEW |
(Empty) | |
| 1 Event.path should include only unclosed nodes. |
| 2 The full event path should be (length=12): |
| 3 div#target, #shadow-root (open), div#div3_open, #shadow-root (closed), |
| 4 div#div2_closed, #shadow-root (open), div#host_open, div#host_closed, |
| 5 body, html, #document, window |
| 6 |
| 7 On #host_closed, #host_open, and #div2_closed, |
| 8 div#target, #shadow-root (open), div#div3_open, #shadow-root (closed) |
| 9 will be trimmed (length=8). |
| 10 |
| 11 |
| 12 Dispaching a click event on #target, listening on #host_closed. |
| 13 Got event.path for #host_closed: |
| 14 #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyEle
ment], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length:
8 |
| 15 |
| 16 Dispaching a click event on #target, listening on #host_open. |
| 17 Got event.path for #host_open: |
| 18 #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyEle
ment], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length:
8 |
| 19 |
| 20 Dispaching a click event on #target, listening on #div2_closed. |
| 21 Got event.path for #div2_closed: |
| 22 #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyEle
ment], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length:
8 |
| 23 |
| 24 Dispaching a click event on #target, listening on #div3_open. |
| 25 Got event.path for #div3_open: |
| 26 #target, [object ShadowRoot], #div3_open, [object ShadowRoot], #div2_closed, [ob
ject ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HT
MLHtmlElement], [object HTMLDocument], [object Window], length: 12 |
| 27 |
| 28 Dispaching a click event on #target, listening on #target. |
| 29 Got event.path for #target: |
| 30 #target, [object ShadowRoot], #div3_open, [object ShadowRoot], #div2_closed, [ob
ject ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HT
MLHtmlElement], [object HTMLDocument], [object Window], length: 12 |
| 31 PASS successfullyParsed is true |
| 32 |
| 33 TEST COMPLETE |
| 34 |
OLD | NEW |