@@ -33,7 +33,7 @@ urlPrefix: https://tc39.github.io/ecma262/#; spec: ECMASCRIPT
33
33
type: dfn
34
34
text: Realm; url: realm
35
35
text: surrounding agent; url: surrounding-agent
36
- urlPrefix: https://w3c.github.io/hr-time/#; spec: HR-TIME
36
+ urlPrefix: https://w3c.github.io/hr-time/#; spec: HR-TIME-2
37
37
type:typedef; urlPrefix: dom-; text: DOMHighResTimeStamp
38
38
type:dfn; text: time origin; url: dfn-time-origin
39
39
type:dfn; text: clock resolution
@@ -967,7 +967,7 @@ correct defaults.</p>
967
967
968
968
<p class=warning> User agents should set a minimum resolution of <var> event</var> 's
969
969
{{Event/timeStamp}} attribute to 5 microseconds following the existing <a>clock resolution</a>
970
- recommendation. [[!HR-TIME]]
970
+ recommendation. [[!HR-TIME-2 ]]
971
971
972
972
<li><p> <a for=map>For each</a> <var> member</var> → <var> value</var> in <var> dictionary</var> , if
973
973
<var> event</var> has an attribute whose <a spec=webidl>identifier</a> is <var> member</var> , then
@@ -2421,6 +2421,11 @@ algorithm below.
2421
2421
adjust this further based on the requirements of the script element. There might be other ways
2422
2422
to define that though as Olli suggests, so leaving that out for now. -->
2423
2423
2424
+ <p> <a lt="other applicable specifications">Specifications</a> may define
2425
+ <dfn export id=concept-node-children-changed-ext>children changed steps</dfn> for all or some
2426
+ <a for=/>nodes</a> . The algorithm is passed no argument and is called from <a for=/>insert</a> ,
2427
+ <a for=/>remove</a> , and <a for=/>replace data</a> .
2428
+
2424
2429
<p> To <dfn export id=concept-node-insert>insert</dfn> a <var> node</var> into a <var> parent</var>
2425
2430
before a <var> child</var> , with an optional <i> suppress observers flag</i> , run these steps:
2426
2431
@@ -2476,9 +2481,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
2476
2481
<li><p> If <var> parent</var> is a <a for=Element>shadow host</a> and <var> node</var> is a
2477
2482
<a>slotable</a> , then <a>assign a slot</a> for <var> node</var> .
2478
2483
2479
- <li> If <var> node</var> is a {{Text}} node, run the <a>child text content change steps</a> for
2480
- <var> parent</var> .
2481
-
2482
2484
<li><p> If <var> parent</var> 's <a for=tree>root</a> is a <a for=/>shadow root</a> , and
2483
2485
<var> parent</var> is a <a>slot</a> whose <a for=slot>assigned nodes</a> is the empty list,
2484
2486
then run <a>signal a slot change</a> for <var> parent</var> .
@@ -2515,6 +2517,8 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
2515
2517
2516
2518
<li><p> If <i> suppress observers flag</i> is unset, then <a>queue a tree mutation record</a> for
2517
2519
<var> parent</var> with <var> nodes</var> , « », <var> previousSibling</var> , and <var> child</var> .
2520
+
2521
+ <li><p> Run the <a>children changed steps</a> for <var> parent</var> .
2518
2522
</ol>
2519
2523
2520
2524
@@ -2779,8 +2783,7 @@ with an optional <i>suppress observers flag</i>, run these steps:
2779
2783
<var> parent</var> with « », « <var> node</var> », <var> oldPreviousSibling</var> , and
2780
2784
<var> oldNextSibling</var> .
2781
2785
2782
- <li><p> If <var> node</var> is a {{Text}} node, then run the <a>child text content change steps</a>
2783
- for <var> parent</var> .
2786
+ <li><p> Run the <a>children changed steps</a> for <var> parent</var> .
2784
2787
</ol>
2785
2788
2786
2789
@@ -4243,10 +4246,6 @@ steps for each <a>descendant</a> <a>exclusive <code>Text</code> node</a> <var>no
4243
4246
(excluding itself), in <a>tree order</a> .
4244
4247
</ol>
4245
4248
4246
- <p class="note"> {{Node/normalize()}} does not need to run any
4247
- <a>child text content change steps</a> , since although it messes with {{Text}} nodes extensively, it
4248
- does so specifically in a way that preserves the <a>child text content</a> .
4249
-
4250
4249
<hr>
4251
4250
4252
4251
<dl class=domintro>
@@ -7252,8 +7251,8 @@ To <dfn export id=concept-cd-replace>replace data</dfn> of node <var>node</var>
7252
7251
<a for=range>end offset</a> by <var> data</var> 's <a for="JavaScript string">length</a> and decrease
7253
7252
it by <var> count</var> .
7254
7253
7255
- <li> If <var> node</var> is a {{Text}} node and its <a>parent</a> is not null, run the
7256
- <a>child text content change steps</a> for < var> node</var> 's <a>parent</a> .
7254
+ <li> If <var> node</var> 's <a>parent</a> is non- null, then run the <a>children changed steps</a> for
7255
+ <var> node</var> 's <a>parent</a> .
7257
7256
</ol>
7258
7257
<!-- delete happens after insert for better cursor positioning with editing
7259
7258
https://www.w3.org/Bugs/Public/show_bug.cgi?id=13153 -->
@@ -7390,10 +7389,6 @@ if any, and its <a>contiguous exclusive <code>Text</code> nodes</a>, and <var>no
7390
7389
<var> node</var> is the <a for=string>concatenation</a> of the <a for=CharacterData>data</a> of all
7391
7390
the {{Text}} <a for=/>node</a> <a>children</a> of <var> node</var> , in <a>tree order</a> .
7392
7391
7393
- <p> This and <a lt="other applicable specifications">other specifications</a> may define
7394
- <dfn export id=concept-node-text-change-ext>child text content change steps</dfn> for
7395
- <a for=/>nodes</a> .
7396
-
7397
7392
<p> The <dfn export id=concept-descendant-text-content>descendant text content</dfn> of a
7398
7393
<a for=/>node</a> <var> node</var> is the <a for=string>concatenation</a> of the
7399
7394
<a for=CharacterData>data</a> of all the {{Text}} <a for=/>node</a> <a>descendants</a> of
0 commit comments