@@ -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-2
36
+ urlPrefix: https://w3c.github.io/hr-time/#; spec: HR-TIME
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-2 ]]
970
+ recommendation. [[!HR-TIME]]
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
@@ -3591,11 +3591,6 @@ run these steps:
3591
3591
<var> target</var> with null, null, null, <var> addedNodes</var> , <var> removedNodes</var> ,
3592
3592
<var> previousSibling</var> , and <var> nextSibling</var> .
3593
3593
3594
- <p> To <dfn noexport>queue an attribute mutation record</dfn> for <var> target</var> with
3595
- <var> name</var> , <var> namespace</var> , and <var> oldValue</var> , <a>queue a mutation record</a> of
3596
- "<code> attributes</code> " for <var> target</var> with <var> name</var> , <var> namespace</var> ,
3597
- <var> oldValue</var> , « », « », null, and null.
3598
-
3599
3594
3600
3595
<h4 id=interface-mutationrecord>Interface {{MutationRecord}}</h4>
3601
3596
@@ -6101,118 +6096,87 @@ its <a for=Element>attribute list</a> <a for=list>is empty</a>.
6101
6096
<dfn export id=concept-element-attribute-has lt="has an attribute">has</dfn> an <a>attribute</a>
6102
6097
<var> A</var> if its <a for=Element>attribute list</a> <a for=list>contains</a> <var> A</var> .
6103
6098
6104
- This and <a lt="other applicable specifications">other specifications</a> may define
6099
+ <p> This and <a lt="other applicable specifications">other specifications</a> may define
6105
6100
<dfn export id=concept-element-attributes-change-ext>attribute change steps</dfn> for
6106
6101
<a for=/>elements</a> . The algorithm is passed <var> element</var> , <var> localName</var> ,
6107
6102
<var> oldValue</var> , <var> value</var> , and <var> namespace</var> .
6108
6103
6109
- To <dfn export id=concept-element-attributes-change lt="change an attribute">change</dfn> an
6110
- <a>attribute</a> <var> attribute</var>
6111
- from an <a for="/">element</a> <var> element</var>
6112
- to <var> value</var> , run these steps:
6104
+ <p> To <dfn noexport>handle attribute changes</dfn> for an <a>attribute</a> <var> attribute</var> with
6105
+ <var> element</var> , <var> oldValue</var> , and <var> newValue</var> , run these steps:
6113
6106
6114
6107
<ol>
6115
- <li><p> <a>Queue an attribute mutation record</a> for <var> element </var> with <var> attribute </var> 's
6116
- <a for=Attr>local name</a> , <var> attribute</var> 's <a for=Attr>namespace</a> , and
6117
- <var> attribute </var> 's < a for=Attr>value </a> .
6108
+ <li><p> <a>Queue a mutation record</a> of " <code> attributes </code> " for <var> element </var> with
6109
+ <var> attribute </var> 's < a for=Attr>local name</a>, <var>attribute</var>' s
6110
+ <a for=Attr>namespace </a> , <var> oldValue </var> , « », « », null, and null .
6118
6111
6119
- <li> If <var> element</var> is <a for=Element>custom</a> , then
6112
+ <li><p> If <var> element</var> is <a for=Element>custom</a> , then
6120
6113
<a>enqueue a custom element callback reaction</a> with <var> element</var> , callback name
6121
6114
"<code> attributeChangedCallback</code> ", and an argument list containing <var> attribute</var> 's
6122
- <a for=Attr>local name</a> , <var> attribute </var> 's <a for=Attr>value</a > , <var> value </var> , and
6123
- <var> attribute </var> 's < a for=Attr>namespace</a> .
6115
+ <a for=Attr>local name</a> , <var> oldValue </var> , <var> newValue </var > , and <var> attribute </var> 's
6116
+ <a for=Attr>namespace</a> .
6124
6117
6125
6118
<li><p> Run the <a>attribute change steps</a> with <var> element</var> , <var> attribute</var> 's
6126
- <a for=Attr>local name</a> , <var> attribute</var> 's <a for=Attr>value</a> , <var> value</var> , and
6127
- <var> attribute</var> 's <a for=Attr>namespace</a> .
6128
-
6129
- <li> Set <var> attribute</var> 's
6130
- <a for=Attr>value</a> to <var> value</var> .
6119
+ <a for=Attr>local name</a> , <var> oldValue</var> , <var> newValue</var> , and <var> attribute</var> 's
6120
+ <a for=Attr>namespace</a> .
6131
6121
</ol>
6132
6122
6133
- To <dfn export id=concept-element-attributes-append lt="append an attribute">append</dfn> an
6134
- <a>attribute</a> <var> attribute</var> to
6135
- an <a for="/">element</a> <var> element</var> ,
6136
- run these steps:
6123
+ <p> To <dfn export id=concept-element-attributes-change lt="change an attribute">change</dfn> an
6124
+ <a>attribute</a> <var> attribute</var> to <var> value</var> , run these steps:
6137
6125
6138
6126
<ol>
6139
- <li><p> <a>Queue an attribute mutation record </a> for <var> element </var> with <var> attribute</var> 's
6140
- <a for=Attr>local name </a> , <var> attribute</var> 's <a for=Attr>namespace </a> , and null .
6127
+ <li><p> <a>Handle attribute changes </a> for <var> attribute </var> with <var> attribute</var> 's
6128
+ <a for=Attr>element </a> , <var> attribute</var> 's <a for=Attr>value </a> , and <var> value </var> .
6141
6129
6142
- <li> If <var> element</var> is <a for=Element>custom</a> , then
6143
- <a>enqueue a custom element callback reaction</a> with <var> element</var> , callback name
6144
- "<code> attributeChangedCallback</code> ", and an argument list containing <var> attribute</var> 's
6145
- <a for=Attr>local name</a> , null, <var> attribute</var> 's <a for=Attr>value</a> , and
6146
- <var> attribute</var> 's <a for=Attr>namespace</a> .
6130
+ <li><p> Set <var> attribute</var> 's <a for=Attr>value</a> to <var> value</var> .
6131
+ </ol>
6147
6132
6148
- <li><p> Run the <a>attribute change steps</a> with <var> element</var> , <var> attribute</var> 's
6149
- <a for=Attr>local name</a> , null, <var> attribute</var> 's <a for=Attr>value</a> , and
6150
- <var> attribute</var> 's <a for=Attr>namespace</a> .
6133
+ <p> To <dfn export id=concept-element-attributes-append lt="append an attribute">append</dfn> an
6134
+ <a>attribute</a> <var> attribute</var> to an <a for="/">element</a> <var> element</var> , run these
6135
+ steps:
6136
+
6137
+ <ol>
6138
+ <li><p> <a>Handle attribute changes</a> for <var> attribute</var> with <var> element</var> , null, and
6139
+ <var> attribute</var> 's <a for=Attr>value</a> .
6151
6140
6152
- <li> <a for=list>Append</a> <var> attribute</var> to <var> element</var> 's
6141
+ <li><p> < a for=list>Append</a> <var> attribute</var> to <var> element</var> 's
6153
6142
<a for=Element>attribute list</a> .
6154
6143
6155
- <li> Set <var> attribute</var> 's
6156
- <a for=Attr>element</a> to <var> element</var> .
6144
+ <li><p> Set <var> attribute</var> 's <a for=Attr>element</a> to <var> element</var> .
6157
6145
</ol>
6158
6146
6159
- To <dfn export id=concept-element-attributes-remove lt="remove an attribute">remove</dfn> an
6160
- <a>attribute</a> <var> attribute</var>
6161
- from an <a for="/">element</a> <var> element</var> ,
6162
- run these steps:
6147
+ <p> To <dfn export id=concept-element-attributes-remove lt="remove an attribute">remove</dfn> an
6148
+ <a>attribute</a> <var> attribute</var> , run these steps:
6163
6149
6164
6150
<ol>
6165
- <li><p> <a>Queue an attribute mutation record</a> for <var> element</var> with <var> attribute</var> 's
6166
- <a for=Attr>local name</a> , <var> attribute</var> 's <a for=Attr>namespace</a> , and
6167
- <var> attribute</var> 's <a for=Attr>value</a> .
6168
-
6169
- <li> If <var> element</var> is <a for=Element>custom</a> , then
6170
- <a>enqueue a custom element callback reaction</a> with <var> element</var> , callback name
6171
- "<code> attributeChangedCallback</code> ", and an argument list containing <var> attribute</var> 's
6172
- <a for=Attr>local name</a> , <var> attribute</var> 's <a for=Attr>value</a> , null, and
6173
- <var> attribute</var> 's <a for=Attr>namespace</a> .
6151
+ <li><p> <a>Handle attribute changes</a> for <var> attribute</var> with <var> attribute</var> 's
6152
+ <a for=Attr>element</a> , <var> attribute</var> 's <a for=Attr>value</a> , and null.
6174
6153
6175
- <li><p> Run the <a>attribute change steps</a> with <var> element</var> , <var> attribute</var> 's
6176
- <a for=Attr>local name</a> , <var> attribute</var> 's <a for=Attr>value</a> , null, and
6177
- <var> attribute</var> 's <a for=Attr>namespace</a> .
6154
+ <li> <a for=list>Remove</a> <var> attribute</var> from <var> attribute</var> 's
6155
+ <a for=Attr>element</a> 's <a for=Element>attribute list</a> .
6178
6156
6179
- <li> <a for=list>Remove</a> <var> attribute</var> from <var> element</var> 's
6180
- <a for=Element>attribute list</a> .
6181
-
6182
- <li> Set <var> attribute</var> 's
6183
- <a for=Attr>element</a> to null.
6157
+ <li><p> Set <var> attribute</var> 's <a for=Attr>element</a> to null.
6184
6158
</ol>
6185
6159
6186
- To <dfn export id=concept-element-attributes-replace lt="replace an attribute">replace</dfn> an
6187
- <a>attribute</a> <var> oldAttr</var> by an <a>attribute</a> <var> newAttr</var>
6188
- in an <a for="/">element</a> <var> element</var> , run these steps:
6160
+ <p> To <dfn export id=concept-element-attributes-replace lt="replace an attribute">replace</dfn> an
6161
+ <a>attribute</a> <var> oldAttr</var> with an <a>attribute</a> <var> newAttr</var> , run these steps:
6189
6162
6190
6163
<ol>
6191
- <li><p> <a>Queue an attribute mutation record </a> for <var> element </var> with <var> oldAttr</var> 's
6192
- <a for=Attr>local name </a> , <var> oldAttr</var> 's <a for=Attr>namespace </a> , and
6193
- <var> oldAttr </var> 's < a for=Attr>value</a> .
6164
+ <li><p> <a>Handle attribute changes </a> for <var> oldAttr </var> with <var> oldAttr</var> 's
6165
+ <a for=Attr>element </a> , <var> oldAttr</var> 's <a for=Attr>value </a>, and <var>newAttr</var>' s
6166
+ <a for=Attr>value</a> .
6194
6167
6195
- <li> If <var> element</var> is <a for=Element>custom</a> , then
6196
- <a>enqueue a custom element callback reaction</a> with <var> element</var> , callback name
6197
- "<code> attributeChangedCallback</code> ", and an argument list containing <var> oldAttr</var> 's
6198
- <a for=Attr>local name</a> , <var> oldAttr</var> 's <a for=Attr>value</a>, <var>newAttr</var>' s
6199
- <a for=Attr>value</a> , and <var> oldAttr</var> 's <a for=Attr>namespace</a> .
6168
+ <li><p> <a for=list>Replace</a> <var> oldAttr</var> by <var> newAttr</var> in <var> oldAttr</var> 's
6169
+ <a for=Attr>element</a> 's <a for=Element>attribute list</a> .
6200
6170
6201
- <li><p> Run the <a>attribute change steps</a> with <var> element</var> , <var> oldAttr</var> 's
6202
- <a for=Attr>local name</a> , <var> oldAttr</var> 's <a for=Attr>value</a>, <var>newAttr</var>' s
6203
- <a for=Attr>value</a> , and <var> oldAttr</var> 's <a for=Attr>namespace</a> .
6204
-
6205
- <li><p> <a for=list>Replace</a> <var> oldAttr</var> by <var> newAttr</var> in <var> element</var> 's
6206
- <a for=Element>attribute list</a> .
6171
+ <li><p> Set <var> newAttr</var> 's <a for=Attr>element</a> to <var>oldAttr</var>' s
6172
+ <a for=Attr>element</a> .
6207
6173
6208
6174
<li><p> Set <var> oldAttr</var> 's <a for=Attr>element</a> to null.
6209
-
6210
- <li><p> Set <var> newAttr</var> 's <a for=Attr>element</a> to <var> element</var> .
6211
6175
</ol>
6212
6176
6213
6177
<hr>
6214
6178
6215
- To <dfn export id=concept-element-attributes-get-by-name>get an attribute by name</dfn> given a
6179
+ <p> To <dfn export id=concept-element-attributes-get-by-name>get an attribute by name</dfn> given a
6216
6180
<var> qualifiedName</var> and <a for="/">element</a> <var> element</var> , run these steps:
6217
6181
6218
6182
<ol>
@@ -6224,7 +6188,7 @@ To <dfn export id=concept-element-attributes-get-by-name>get an attribute by nam
6224
6188
whose <a for=Attr>qualified name</a> is <var> qualifiedName</var> , and null otherwise.
6225
6189
</ol>
6226
6190
6227
- To
6191
+ <p> To
6228
6192
<dfn export id=concept-element-attributes-get-by-namespace>get an attribute by namespace and local name</dfn>
6229
6193
given a <var> namespace</var> , <var> localName</var> , and <a for="/">element</a> <var> element</var> ,
6230
6194
run these steps:
@@ -6254,7 +6218,7 @@ run these steps:
6254
6218
<li><p> Return <var> attr</var> 's <a for=Attr>value</a> .</p></li>
6255
6219
</ol>
6256
6220
6257
- To <dfn export id=concept-element-attributes-set>set an attribute</dfn> given an
6221
+ <p> To <dfn export id=concept-element-attributes-set>set an attribute</dfn> given an
6258
6222
<var> attr</var> and <var> element</var> , run these steps:
6259
6223
6260
6224
<ol>
@@ -6268,18 +6232,17 @@ To <dfn export id=concept-element-attributes-set>set an attribute</dfn> given an
6268
6232
6269
6233
<li><p> If <var> oldAttr</var> is <var> attr</var> , return <var> attr</var> .
6270
6234
6271
- <li><p> If <var> oldAttr</var> is non-null, <a lt="replace an attribute">replace</a> it
6272
- by <var> attr </var> in <var> element </var> .
6235
+ <li><p> If <var> oldAttr</var> is non-null, then <a lt="replace an attribute">replace</a>
6236
+ <var> oldAttr </var> with <var> attr </var> .
6273
6237
6274
6238
<li><p> Otherwise, <a lt="append an attribute">append</a> <var> attr</var> to <var> element</var> .
6275
6239
6276
6240
<li><p> Return <var> oldAttr</var> .
6277
6241
</ol>
6278
6242
6279
- To <dfn export id=concept-element-attributes-set-value>set an attribute value</dfn> for
6280
- an <a for="/">element</a> <var> element</var>
6281
- using a <var> localName</var> and <var> value</var> , and an optional <var> prefix</var> , and
6282
- <var> namespace</var> , run these steps:
6243
+ <p> To <dfn export id=concept-element-attributes-set-value>set an attribute value</dfn> for an
6244
+ <a for="/">element</a> <var> element</var> , using a <var> localName</var> and <var> value</var> , and an
6245
+ optional <var> prefix</var> , and <var> namespace</var> , run these steps:
6283
6246
6284
6247
<ol>
6285
6248
<li> If <var> prefix</var> is not given, set it to null.
@@ -6297,46 +6260,40 @@ using a <var>localName</var> and <var>value</var>, and an optional <var>prefix</
6297
6260
<a lt="append an attribute">append</a> this <a>attribute</a> to <var> element</var> , and then
6298
6261
return.
6299
6262
6300
- <li> <a lt="change an attribute">Change</a>
6301
- <var> attribute</var> from <var> element</var> to
6302
- <var> value</var> .
6263
+ <li><p> <a lt="change an attribute">Change</a> <var> attribute</var> to <var> value</var> .
6303
6264
</ol>
6304
6265
6305
- To
6306
- <dfn export id=concept-element-attributes-remove-by-name>remove an attribute by name</dfn>
6266
+ <p> To <dfn export id=concept-element-attributes-remove-by-name>remove an attribute by name</dfn>
6307
6267
given a <var> qualifiedName</var> and <a for="/">element</a> <var> element</var> , run these steps:
6308
6268
6309
6269
<ol>
6310
6270
<li><p> Let <var> attr</var> be the result of
6311
- <a lt="get an attribute by name">getting an attribute</a> given
6312
- <var> qualifiedName</var> and <var> element</var> .
6313
-
6314
- <li><p> If <var> attr</var> is non-null, <a lt="remove an attribute">remove</a> it from
6271
+ <a lt="get an attribute by name">getting an attribute</a> given <var> qualifiedName</var> and
6315
6272
<var> element</var> .
6316
6273
6274
+ <li><p> If <var> attr</var> is non-null, then <a lt="remove an attribute">remove</a> <var> attr</var> .
6275
+
6317
6276
<li><p> Return <var> attr</var> .
6318
6277
</ol>
6319
6278
6320
- To
6279
+ <p> To
6321
6280
<dfn export id=concept-element-attributes-remove-by-namespace>remove an attribute by namespace and local name</dfn>
6322
- given a <var> namespace</var> , <var> localName</var> , and
6323
- <a for="/">element</a> <var> element </var> , run these steps:
6281
+ given a <var> namespace</var> , <var> localName</var> , and <a for="/">element</a> <var> element </var> ,
6282
+ run these steps:
6324
6283
6325
6284
<ol>
6326
- <li> Let <var> attr</var> be the result of
6285
+ <li><p> Let <var> attr</var> be the result of
6327
6286
<a lt="get an attribute by namespace and local name">getting an attribute</a> given
6328
6287
<var> namespace</var> , <var> localName</var> , and <var> element</var> .
6329
6288
6330
- <li> If <var> attr</var> is non-null,
6331
- <a lt="remove an attribute">remove</a> it from
6332
- <var> element</var> .
6289
+ <li><p> If <var> attr</var> is non-null, then <a lt="remove an attribute">remove</a> <var> attr</var> .
6333
6290
6334
- <li> Return <var> attr</var> .
6291
+ <li><p> Return <var> attr</var> .
6335
6292
</ol>
6336
6293
6337
6294
<hr>
6338
6295
6339
- An <a for=/>element</a> can have an associated
6296
+ <p> An <a for=/>element</a> can have an associated
6340
6297
<dfn export for=Element id=concept-id lt="ID">unique identifier (ID)</dfn>
6341
6298
6342
6299
<p class=note> Historically <a for="/">elements</a> could have multiple identifiers e.g., by using
@@ -6569,8 +6526,7 @@ method, when invoked, must run these steps:
6569
6526
<a for=Node>node document</a> , then <a lt="append an attribute">append</a> this <a>attribute</a> to
6570
6527
<a>context object</a> , and then return.
6571
6528
6572
- <li><p> <a lt="change an attribute">Change</a> <var> attribute</var> from <a>context object</a> to
6573
- <var> value</var> .
6529
+ <li><p> <a lt="change an attribute">Change</a> <var> attribute</var> to <var> value</var> .
6574
6530
</ol>
6575
6531
6576
6532
<p> The
@@ -6686,7 +6642,7 @@ when invoked, must run these steps:
6686
6642
<a for=list>contain</a> <var> attr</var> , then <a>throw</a> a "{{NotFoundError!!exception}} "
6687
6643
{{DOMException}} .
6688
6644
6689
- <li><p> <a lt="remove an attribute">Remove</a> <var> attr</var> from <a>context object</a> .
6645
+ <li><p> <a lt="remove an attribute">Remove</a> <var> attr</var> .
6690
6646
6691
6647
<li><p> Return <var> attr</var> .
6692
6648
</ol>
@@ -7098,11 +7054,10 @@ null.
7098
7054
string <var> value</var> , run these steps:
7099
7055
7100
7056
<ol>
7101
- <li> If <var> attribute</var> 's <a for=Attr>element</a> is null, then set <var>attribute</var>' s
7057
+ <li><p> If <var> attribute</var> 's <a for=Attr>element</a> is null, then set <var>attribute</var>' s
7102
7058
<a for=Attr>value</a> to <var> value</var> .
7103
7059
7104
- <li> Otherwise, <a lt="change an attribute">change</a> <var> attribute</var> from
7105
- <var> attribute</var> 's <a for=Attr>element</a> to <var> value</var> .
7060
+ <li><p> Otherwise, <a lt="change an attribute">change</a> <var> attribute</var> to <var> value</var> .
7106
7061
</ol>
7107
7062
7108
7063
<p> The {{Attr/value}} attribute's setter must <a>set an existing attribute value</a> with
0 commit comments