|
17 | 17 | "html": "<p>Let <var>tokens</var> be a new <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-set\" id=\"ref-for-ordered-set①\">ordered set</a>. </p>" |
18 | 18 | }, |
19 | 19 | { |
20 | | - "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate\">For each</a> <var>token</var> in <var>inputTokens</var>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#set-append\" id=\"ref-for-set-append\">append</a> <var>token</var> to <var>tokens</var>. </p>" |
| 20 | + "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate\">For each</a> <var>token</var> of <var>inputTokens</var>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#set-append\" id=\"ref-for-set-append\">append</a> <var>token</var> to <var>tokens</var>. </p>" |
21 | 21 | }, |
22 | 22 | { |
23 | 23 | "html": "Return <var>tokens</var>." |
|
332 | 332 | "html": "<p>Initialize <var>event</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#dom-event-timestamp\" id=\"ref-for-dom-event-timestamp②\">timeStamp</a></code> attribute to the <a data-link-type=\"dfn\" href=\"https://w3c.github.io/hr-time/#dfn-relative-high-resolution-coarse-time\" id=\"ref-for-dfn-relative-high-resolution-coarse-time\">relative high resolution coarse time</a> given <var>time</var> and <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\" id=\"ref-for-concept-relevant-global\">relevant global object</a>. </p>" |
333 | 333 | }, |
334 | 334 | { |
335 | | - "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-iterate\" id=\"ref-for-map-iterate\">For each</a> <var>member</var> → <var>value</var> in <var>dictionary</var>, if <var>event</var> has an attribute whose <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#dfn-identifier\" id=\"ref-for-dfn-identifier\">identifier</a> is <var>member</var>, then\n initialize that attribute to <var>value</var>. </p>" |
| 335 | + "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-iterate\" id=\"ref-for-map-iterate\">For each</a> <var>member</var> → <var>value</var> of <var>dictionary</var>, if <var>event</var> has an attribute whose <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#dfn-identifier\" id=\"ref-for-dfn-identifier\">identifier</a> is <var>member</var>, then\n initialize that attribute to <var>value</var>. </p>" |
336 | 336 | }, |
337 | 337 | { |
338 | 338 | "html": "<p>Run the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-event-constructor-ext\" id=\"ref-for-concept-event-constructor-ext\">event constructing steps</a> with <var>event</var> and <var>dictionary</var>. </p>" |
|
543 | 543 | { |
544 | 544 | "html": "<p>Let <var>relatedTarget</var> be the result of <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#retarget\" id=\"ref-for-retarget\">retargeting</a> <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-relatedtarget\" id=\"ref-for-event-relatedtarget①\">relatedTarget</a> against <var>target</var>. </p>" |
545 | 545 | }, |
| 546 | + { |
| 547 | + "html": "<p>Let <var>clearTargets</var> be false. </p>" |
| 548 | + }, |
546 | 549 | { |
547 | 550 | "html": "If <var>target</var> is not <var>relatedTarget</var> or <var>target</var> is <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-relatedtarget\" id=\"ref-for-event-relatedtarget②\">relatedTarget</a>:", |
548 | 551 | "rationale": "let", |
|
644 | 647 | "html": "<p>Let <var>clearTargetsStruct</var> be the last struct in <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path\" id=\"ref-for-event-path④\">path</a> whose <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path-shadow-adjusted-target\" id=\"ref-for-event-path-shadow-adjusted-target\">shadow-adjusted target</a> is non-null. </p>" |
645 | 648 | }, |
646 | 649 | { |
647 | | - "html": "<p>Let <var>clearTargets</var> be true if <var>clearTargetsStruct</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path-shadow-adjusted-target\" id=\"ref-for-event-path-shadow-adjusted-target①\">shadow-adjusted target</a>, <var>clearTargetsStruct</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path-relatedtarget\" id=\"ref-for-event-path-relatedtarget\">relatedTarget</a>, or an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#eventtarget\" id=\"ref-for-eventtarget②②\">EventTarget</a></code> object in <var>clearTargetsStruct</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path-touch-target-list\" id=\"ref-for-event-path-touch-target-list\">touch target list</a> is a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-node\" id=\"ref-for-concept-node⑦\">node</a> and its <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-tree-root\" id=\"ref-for-concept-tree-root⑥\">root</a> is a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-shadow-root\" id=\"ref-for-concept-shadow-root③\">shadow root</a>; otherwise false. </p>" |
| 650 | + "html": "<p>If <var>clearTargetsStruct</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path-shadow-adjusted-target\" id=\"ref-for-event-path-shadow-adjusted-target①\">shadow-adjusted target</a>, <var>clearTargetsStruct</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path-relatedtarget\" id=\"ref-for-event-path-relatedtarget\">relatedTarget</a>, or an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#eventtarget\" id=\"ref-for-eventtarget②②\">EventTarget</a></code> object\n in <var>clearTargetsStruct</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path-touch-target-list\" id=\"ref-for-event-path-touch-target-list\">touch target list</a> is a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-node\" id=\"ref-for-concept-node⑦\">node</a> whose <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-tree-root\" id=\"ref-for-concept-tree-root⑥\">root</a> is a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-shadow-root\" id=\"ref-for-concept-shadow-root③\">shadow root</a>: set <var>clearTargets</var> to true. </p>" |
648 | 651 | }, |
649 | 652 | { |
650 | 653 | "html": "<p>If <var>activationTarget</var> is non-null and <var>activationTarget</var> has <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#eventtarget-legacy-pre-activation-behavior\" id=\"ref-for-eventtarget-legacy-pre-activation-behavior①\">legacy-pre-activation behavior</a>, then run <var>activationTarget</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#eventtarget-legacy-pre-activation-behavior\" id=\"ref-for-eventtarget-legacy-pre-activation-behavior②\">legacy-pre-activation behavior</a>. </p>" |
651 | 654 | }, |
652 | 655 | { |
653 | | - "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate⑤\">For each</a> <var>struct</var> in <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path\" id=\"ref-for-event-path⑤\">path</a>, in\n reverse order:", |
| 656 | + "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate⑤\">For each</a> <var>struct</var> of <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path\" id=\"ref-for-event-path⑤\">path</a>, in\n reverse order:", |
654 | 657 | "rationale": "if", |
655 | 658 | "steps": [ |
656 | 659 | { |
|
665 | 668 | ] |
666 | 669 | }, |
667 | 670 | { |
668 | | - "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate⑥\">For each</a> <var>struct</var> in <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path\" id=\"ref-for-event-path⑥\">path</a>:", |
| 671 | + "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate⑥\">For each</a> <var>struct</var> of <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-path\" id=\"ref-for-event-path⑥\">path</a>:", |
669 | 672 | "rationale": "if", |
670 | 673 | "steps": [ |
671 | 674 | { |
|
817 | 820 | "html": "<p>Let <var>found</var> be false. </p>" |
818 | 821 | }, |
819 | 822 | { |
820 | | - "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate⑦\">For each</a> <var>listener</var> in <var>listeners</var>, whose <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-listener-removed\" id=\"ref-for-event-listener-removed②\">removed</a> is false:", |
| 823 | + "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate⑦\">For each</a> <var>listener</var> of <var>listeners</var>, whose <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#event-listener-removed\" id=\"ref-for-event-listener-removed②\">removed</a> is false:", |
821 | 824 | "rationale": "if", |
822 | 825 | "steps": [ |
823 | 826 | { |
|
2647 | 2650 | "rationale": "for", |
2648 | 2651 | "steps": [ |
2649 | 2652 | { |
2650 | | - "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑤\">For each</a> <var>attr</var> in <var>node2</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element-attribute\" id=\"ref-for-concept-element-attribute④\">attribute list</a>:", |
| 2653 | + "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑤\">For each</a> <var>attr</var> of <var>node2</var>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element-attribute\" id=\"ref-for-concept-element-attribute④\">attribute list</a>:", |
2651 | 2654 | "rationale": "if", |
2652 | 2655 | "steps": [ |
2653 | 2656 | { |
|
4093 | 4096 | "html": "<p>Let <var>names</var> be the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute-qualified-name\" id=\"ref-for-concept-attribute-qualified-name①②\">qualified names</a> of the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute\" id=\"ref-for-concept-attribute⑤⑨\">attributes</a> in this <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#namednodemap\" id=\"ref-for-namednodemap⑧\">NamedNodeMap</a></code> object’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-namednodemap-attribute\" id=\"ref-for-concept-namednodemap-attribute⑤\">attribute list</a>, with duplicates omitted, in\n order. </p>" |
4094 | 4097 | }, |
4095 | 4098 | { |
4096 | | - "html": "If this <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#namednodemap\" id=\"ref-for-namednodemap⑨\">NamedNodeMap</a></code> object’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-namednodemap-element\" id=\"ref-for-concept-namednodemap-element①\">element</a> is in the <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#html-namespace\" id=\"ref-for-html-namespace②⑨\">HTML namespace</a> and its <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-node-document\" id=\"ref-for-concept-node-document⑥④\">node document</a> is an <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#html-document\" id=\"ref-for-html-document①⑥\">HTML document</a>, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑥\">for each</a> <var>name</var> in <var>names</var>:", |
| 4099 | + "html": "If this <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#namednodemap\" id=\"ref-for-namednodemap⑨\">NamedNodeMap</a></code> object’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-namednodemap-element\" id=\"ref-for-concept-namednodemap-element①\">element</a> is in the <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#html-namespace\" id=\"ref-for-html-namespace②⑨\">HTML namespace</a> and its <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-node-document\" id=\"ref-for-concept-node-document⑥④\">node document</a> is an <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#html-document\" id=\"ref-for-html-document①⑥\">HTML document</a>, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑥\">for each</a> <var>name</var> of <var>names</var>:", |
4097 | 4100 | "rationale": "let", |
4098 | 4101 | "steps": [ |
4099 | 4102 | { |
|
5577 | 5580 | "rationale": "for", |
5578 | 5581 | "steps": [ |
5579 | 5582 | { |
5580 | | - "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑦\">For each</a> <var>token</var> in <var>tokens</var>:", |
| 5583 | + "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑦\">For each</a> <var>token</var> of <var>tokens</var>:", |
5581 | 5584 | "rationale": "if", |
5582 | 5585 | "steps": [ |
5583 | 5586 | { |
|
5589 | 5592 | ] |
5590 | 5593 | }, |
5591 | 5594 | { |
5592 | | - "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑧\">For each</a> <var>token</var> in <var>tokens</var>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#set-append\" id=\"ref-for-set-append⑨\">append</a> <var>token</var> to <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#this\" id=\"ref-for-this③①③\">this</a>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-dtl-tokens\" id=\"ref-for-concept-dtl-tokens①①\">token set</a>. </p>" |
| 5595 | + "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑧\">For each</a> <var>token</var> of <var>tokens</var>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#set-append\" id=\"ref-for-set-append⑨\">append</a> <var>token</var> to <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#this\" id=\"ref-for-this③①③\">this</a>’s <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-dtl-tokens\" id=\"ref-for-concept-dtl-tokens①①\">token set</a>. </p>" |
5593 | 5596 | }, |
5594 | 5597 | { |
5595 | 5598 | "html": "<p>Run the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-dtl-update\" id=\"ref-for-concept-dtl-update\">update steps</a>. </p>" |
|
5603 | 5606 | "rationale": "for", |
5604 | 5607 | "steps": [ |
5605 | 5608 | { |
5606 | | - "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑨\">For each</a> <var>token</var> in <var>tokens</var>:", |
| 5609 | + "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate②⑨\">For each</a> <var>token</var> of <var>tokens</var>:", |
5607 | 5610 | "rationale": "if", |
5608 | 5611 | "steps": [ |
5609 | 5612 | { |
|
0 commit comments