Skip to content

Commit 8f719cd

Browse files
committed
Make synthetic mouse events composed
Tests: see shadow-dom/event-composed.html in web-platform-tests. Fixes WICG/webcomponents#578 and part of whatwg#1922.
1 parent a68a1f7 commit 8f719cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3036,6 +3036,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
30363036
<li><dfn data-x="dom-Event-currentTarget" data-x-href="https://dom.spec.whatwg.org/#dom-event-currenttarget"><code>currentTarget</code></dfn> attribute</li>
30373037
<li><dfn data-x="dom-Event-bubbles" data-x-href="https://dom.spec.whatwg.org/#dom-event-bubbles"><code>bubbles</code></dfn> attribute</li>
30383038
<li><dfn data-x="dom-Event-cancelable" data-x-href="https://dom.spec.whatwg.org/#dom-event-cancelable"><code>cancelable</code></dfn> attribute</li>
3039+
<li><dfn data-x-href="https://dom.spec.whatwg.org/#composed-flag">composed flag</dfn></li>
30393040
<li><dfn data-x="dom-Event-isTrusted" data-x-href="https://dom.spec.whatwg.org/#dom-event-istrusted"><code>isTrusted</code></dfn> attribute</li>
30403041
<li><dfn data-x="dom-Event-initEvent" data-x-href="https://dom.spec.whatwg.org/#dom-event-initevent"><code>initEvent()</code></dfn> method</li>
30413042
<li><dfn data-x="dom-EventTarget-addEventListener" data-x-href="https://dom.spec.whatwg.org/#dom-eventtarget-addeventlistener"><code>addEventListener()</code></dfn> method</li>
@@ -90049,6 +90050,8 @@ interface <dfn>DocumentAndElementEventHandlers</dfn> {
9004990050
<li><p>Initialize <var>event</var>'s <code data-x="dom-Event-bubbles">bubbles</code> and <code
9005090051
data-x="dom-Event-cancelable">cancelable</code> attributes to true.</p></li>
9005190052

90053+
<li><p>Set <var>event</var>'s <span>composed flag</span>.</p></li>
90054+
9005290055
<li><p>If the <var>not trusted flag</var> is set, initialize <var>event</var>'s <code
9005390056
data-x="dom-Event-isTrusted">isTrusted</code> attribute to false.</p></li>
9005490057

0 commit comments

Comments
 (0)