@@ -2390,11 +2390,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
2390
2390
<li><dfn data-x-href="https://infra.spec.whatwg.org/#scalar-value">scalar value</dfn></li>
2391
2391
<li><dfn data-x-href="https://infra.spec.whatwg.org/#tuple">tuple</dfn></li>
2392
2392
<li><dfn data-x-href="https://infra.spec.whatwg.org/#noncharacter">noncharacter</dfn></li>
2393
- <li><dfn data-x-href="https://infra.spec.whatwg.org/#javascript-string">JavaScript string</dfn>,
2394
- <dfn data-x-href="https://infra.spec.whatwg.org/#code-unit">code unit</dfn>, and
2395
- <dfn data-x-href="https://infra.spec.whatwg.org/#javascript-string-length">JavaScript string length</dfn></li>
2393
+ <li><dfn data-x-href="https://infra.spec.whatwg.org/#string">string</dfn>,
2394
+ <dfn data-x-href="https://infra.spec.whatwg.org/#code-unit">code unit</dfn>,
2395
+ <dfn data-x-href="https://infra.spec.whatwg.org/#string-length">length</dfn>, and
2396
+ <dfn data-x-href="https://infra.spec.whatwg.org/#string-code-point-length">code point length</dfn></li>
2396
2397
<li><dfn data-x-href="https://infra.spec.whatwg.org/#scalar-value-string">scalar value string</dfn></li>
2397
- <li><dfn data-x-href="https://infra.spec.whatwg.org/#string-length">string length</dfn></li>
2398
2398
<li><dfn id="space-characters" data-x-href="https://infra.spec.whatwg.org/#ascii-whitespace">ASCII whitespace</dfn></li>
2399
2399
<li><dfn data-x-href="https://infra.spec.whatwg.org/#control">control</dfn></li>
2400
2400
<li><dfn data-x="ASCII digits" data-x-href="https://infra.spec.whatwg.org/#ascii-digit">ASCII digit</dfn></li>
@@ -12725,8 +12725,7 @@ interface <dfn>DOMStringMap</dfn> {
12725
12725
<ol>
12726
12726
<li><p>Let <var>current</var> be the <span>list</span> resulting in running the <span>inner
12727
12727
text collection steps</span> with <var>node</var>. Each item in <var>results</var> will either
12728
- be a <span>JavaScript string</span> or a positive integer (a <i>required line break
12729
- count</i>).</p>
12728
+ be a <span>string</span> or a positive integer (a <i>required line break count</i>).</p>
12730
12729
12731
12730
<p class="note">Intuitively, a <i>required line break count</i> item means that a certain
12732
12731
number of line breaks appear at that point, but they can be collapsed with the line breaks
@@ -49332,9 +49331,9 @@ ldh-str = < as defined in <a href="https://tools.ietf.org/html/rfc1034#
49332
49331
data-x="attr-fe-minlength">form control <code data-x="">minlength</code> attribute</span>.</p>
49333
49332
49334
49333
<p>If the <code>input</code> element has a <span>maximum allowed value length</span>, then the
49335
- <span>JavaScript string length</span> of the value of the element's <code
49336
- data-x="attr-input-value">value</code> attribute must be equal to or less than the element's
49337
- <span>maximum allowed value length</span>.</p>
49334
+ <span>length</span> of the value of the element's <code data-x="attr-input-value">value</code>
49335
+ attribute must be equal to or less than the element's <span>maximum allowed value
49336
+ length</span>.</p>
49338
49337
49339
49338
<!-- we allow the default to be smaller than the minimum, so that you can have incomplete, but not
49340
49339
empty, input already in the form, like a template that needs to be filled in -->
@@ -52166,8 +52165,8 @@ interface <dfn>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
52166
52165
data-x="attr-fe-maxlength">form control <code data-x="">maxlength</code> attribute</span>.</p>
52167
52166
52168
52167
<p>If the <code>textarea</code> element has a <span>maximum allowed value length</span>, then the
52169
- element's children must be such that the <span>JavaScript string length</span> of the value of the
52170
- element's <span>descendant text content</span> with <span data-x="normalize newlines">newlines
52168
+ element's children must be such that the <span>length</span> of the value of the element's
52169
+ <span>descendant text content</span> with <span data-x="normalize newlines">newlines
52171
52170
normalized</span> is equal to or less than the element's <span>maximum allowed value
52172
52171
length</span>.</p>
52173
52172
@@ -52310,8 +52309,8 @@ interface <dfn>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
52310
52309
</ol>
52311
52310
52312
52311
<p>The <dfn><code data-x="dom-textarea-textLength">textLength</code></dfn> IDL attribute must
52313
- return the <span>JavaScript string length</span> of the element's <span
52314
- data-x="concept-fe-api-value">API value</span>.</p>
52312
+ return the <span>length</span> of the element's <span data-x="concept-fe-api-value">API
52313
+ value</span>.</p>
52315
52314
52316
52315
<p>The <code data-x="dom-cva-willValidate">willValidate</code>, <code
52317
52316
data-x="dom-cva-validity">validity</code>, and <code
@@ -53742,8 +53741,8 @@ form.method === input; // => true</code></pre>
53742
53741
<p>A <dfn data-x="attr-fe-maxlength">form control <code data-x="">maxlength</code>
53743
53742
attribute</dfn>, controlled by the <span data-x="concept-fe-dirty">dirty value flag</span>,
53744
53743
declares a limit on the number of characters a user can input. The "number of characters" is
53745
- measured using <span>JavaScript string length</span> and, in the case of <code>textarea</code>
53746
- elements, with all newlines normalized to a single character (as opposed to CRLF pairs).</p>
53744
+ measured using <span>length</span> and, in the case of <code>textarea</code> elements, with all
53745
+ newlines normalized to a single character (as opposed to CRLF pairs).</p>
53747
53746
53748
53747
<p>If an element has its <span data-x="attr-fe-maxlength">form control <code
53749
53748
data-x="">maxlength</code> attribute</span> specified, the attribute's value must be a <span>valid
@@ -53757,13 +53756,13 @@ form.method === input; // => true</code></pre>
53757
53756
<p><strong>Constraint validation</strong>: If an element has a <span>maximum allowed value
53758
53757
length</span>, its <span data-x="concept-fe-dirty">dirty value flag</span> is true, its <span
53759
53758
data-x="concept-fe-value">value</span> was last changed by a user edit (as opposed to a change
53760
- made by a script), and the <span>JavaScript string length</span> of the element's <span
53759
+ made by a script), and the <span>length</span> of the element's <span
53761
53760
data-x="concept-fe-api-value">API value</span> is greater than the element's <span>maximum allowed
53762
53761
value length</span>, then the element is <span>suffering from being too long</span>.</p>
53763
53762
53764
53763
<p>User agents may prevent the user from causing the element's <span
53765
- data-x="concept-fe-api-value">API value</span> to be set to a value whose <span>JavaScript string
53766
- length</span> is greater than the element's <span>maximum allowed value length</span>.</p>
53764
+ data-x="concept-fe-api-value">API value</span> to be set to a value whose <span>length</span> is
53765
+ greater than the element's <span>maximum allowed value length</span>.</p>
53767
53766
53768
53767
<p class="note">In the case of <code>textarea</code> elements, the <span
53769
53768
data-x="concept-fe-api-value">API value</span> and <span data-x="concept-fe-value">value</span>
@@ -53779,8 +53778,8 @@ form.method === input; // => true</code></pre>
53779
53778
<p>A <dfn data-x="attr-fe-minlength">form control <code data-x="">minlength</code>
53780
53779
attribute</dfn>, controlled by the <span data-x="concept-fe-dirty">dirty value flag</span>,
53781
53780
declares a lower bound on the number of characters a user can input. The "number of characters" is
53782
- measured using <span>JavaScript string length</span> and, in the case of <code>textarea</code>
53783
- elements, with all newlines normalized to a single character (as opposed to CRLF pairs).</p>
53781
+ measured using <span>length</span> and, in the case of <code>textarea</code> elements, with all
53782
+ newlines normalized to a single character (as opposed to CRLF pairs).</p>
53784
53783
53785
53784
<p class="note">The <code data-x="attr-fe-minlength">minlength</code> attribute does not imply the
53786
53785
<code data-x="">required</code> attribute. If the form control has no <code
@@ -53806,9 +53805,9 @@ form.method === input; // => true</code></pre>
53806
53805
length</span>, its <span data-x="concept-fe-dirty">dirty value flag</span> is true, its <span
53807
53806
data-x="concept-fe-value">value</span> was last changed by a user edit (as opposed to a change
53808
53807
made by a script), its <span data-x="concept-fe-value">value</span> is not the empty string, and
53809
- the <span>JavaScript string length</span> of the element's <span data-x="concept-fe-api-value">API
53810
- value</span> is less than the element's <span>minimum allowed value length</span>, then the
53811
- element is <span>suffering from being too short</span>.</p>
53808
+ the <span>length</span> of the element's <span data-x="concept-fe-api-value">API value</span> is
53809
+ less than the element's <span>minimum allowed value length</span>, then the element is
53810
+ <span>suffering from being too short</span>.</p>
53812
53811
53813
53812
</div>
53814
53813
@@ -72535,8 +72534,8 @@ Demos:
72535
72534
72536
72535
<li>
72537
72536
72538
- <p>While <var>line</var>'s <span data-x="string length">length </span> is greater than
72539
- <var>maximum length</var>:</p>
72537
+ <p>While <var>line</var>'s <span>code point length</span> is greater than <var>maximum
72538
+ length</var>:</p>
72540
72539
72541
72540
<ol>
72542
72541
@@ -73459,8 +73458,8 @@ END:VCARD</pre>
73459
73458
73460
73459
<li>
73461
73460
73462
- <p>While <var>line</var>'s <span data-x="string length">length </span> is greater than
73463
- <var>maximum length</var>:</p>
73461
+ <p>While <var>line</var>'s <span>code point length</span> is greater than <var>maximum
73462
+ length</var>:</p>
73464
73463
73465
73464
<ol>
73466
73465
@@ -85036,9 +85035,9 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
85036
85035
and whose <span data-x="concept-response-https-state">HTTPS state</span> is
85037
85036
<var>settings</var>'s <span>HTTPS state</span>.</p>
85038
85037
85039
- <p class="XXX">The exact conversion between the JavaScript string <var>result</var> and the
85040
- bytes that comprise a <span data-x="concept-response-body">response body</span> is not yet
85041
- specified, pending further investigation into user agent behavior. See <a
85038
+ <p class="XXX">The exact conversion between the string <var>result</var> and the bytes that
85039
+ comprise a <span data-x="concept-response-body">response body</span> is not yet specified,
85040
+ pending further investigation into user agent behavior. See <a
85042
85041
href="https://github.com/whatwg/html/issues/1129">issue #1129</a>.</p>
85043
85042
</li>
85044
85043
</ol>
@@ -90182,7 +90181,7 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
90182
90181
<h5 id="creating-scripts">Creating scripts</h5>
90183
90182
90184
90183
<p>To <dfn data-x="creating a classic script">create a classic script</dfn>, given a
90185
- <span>JavaScript string</span> <var>source</var>, an <span>environment settings object</span>
90184
+ <span>string</span> <var>source</var>, an <span>environment settings object</span>
90186
90185
<var>settings</var>, a <span>URL</span> <var>baseURL</var>, some <span>script fetch options</span>
90187
90186
<var>options</var>, and an optional <var>muted errors</var> boolean:</p>
90188
90187
@@ -90237,7 +90236,7 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
90237
90236
</ol>
90238
90237
90239
90238
<p>To <dfn data-x="creating a module script">create a module script</dfn>, given a
90240
- <span>JavaScript string</span> <var>source</var>, an <span>environment settings object</span>
90239
+ <span>string</span> <var>source</var>, an <span>environment settings object</span>
90241
90240
<var>settings</var>, a <span>URL</span> <var>baseURL</var>, and some <span>script fetch
90242
90241
options</span> <var>options</var>:</p>
90243
90242
@@ -91340,8 +91339,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
91340
91339
<div w-nodev>
91341
91340
91342
91341
<p>To <dfn>resolve a module specifier</dfn> given a <span>URL</span> <var>base URL</var> and a
91343
- <span>JavaScript string</span> <var>specifier</var>, perform the following steps. It will return
91344
- either a <span>URL record</span> or failure.</p>
91342
+ <span>string</span> <var>specifier</var>, perform the following steps. It will return either a
91343
+ <span>URL record</span> or failure.</p>
91345
91344
91346
91345
<ol>
91347
91346
<li><p>Apply the <span>URL parser</span> to <var>specifier</var>. If the result is not failure,
@@ -93098,9 +93097,9 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
93098
93097
<ol>
93099
93098
<li><p>Wait 100 milliseconds, so that people think we're doing heavy-duty encryption.</p></li>
93100
93099
93101
- <li><p>Let <var>encrypted</var> be a new <span>JavaScript string</span> derived from
93102
- <var>url</var>, whose <var>n</var>th <span>code unit</span> is equal to <var>url</var>'s
93103
- <var>n</var>th < span>code unit</span> plus 13.</p></li>
93100
+ <li><p>Let <var>encrypted</var> be a new <span>string</span> derived from <var>url</var>,
93101
+ whose <var>n</var>th <span>code unit</span> is equal to <var>url</var>'s <var>n</var>th
93102
+ <span>code unit</span> plus 13.</p></li>
93104
93103
93105
93104
<li><p><span data-x="list append">Append</span> <var>encrypted</var> to
93106
93105
<var>encryptedURLs</var>.</p>
@@ -93140,10 +93139,10 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
93140
93139
example, if we'd saved just the <span>current settings object</span>, instead of its <span>API
93141
93140
base URL</span>, there would have been a potential race.</p></li>
93142
93141
93143
- <li><p>It implicitly passes a <span>list</span> of <span data-x="JavaScript string">JavaScript
93144
- strings</span> from the initial steps to the <span>in parallel</span> steps. This is OK, as
93145
- both <span data-x="list">lists</span> and <span data-x="JavaScript string">JavaScript
93146
- strings</span> are <span data-x="JavaScript Realm">realm</span>-agnostic.</p></li>
93142
+ <li><p>It implicitly passes a <span>list</span> of <span data-x="string">strings</span> from the
93143
+ initial steps to the <span>in parallel</span> steps. This is OK, as both <span
93144
+ data-x="list">lists</span> and <span data-x="string">strings</span> are <span data-x=" JavaScript
93145
+ Realm">realm</span>-agnostic.</p></li>
93147
93146
93148
93147
<li><p>It performs "expensive computation" (waiting for 100 milliseconds per input URL) during
93149
93148
the <span>in parallel</span> steps, thus not blocking the main <span>event loop</span>.</p></li>
@@ -125248,6 +125247,7 @@ INSERT INTERFACES HERE
125248
125247
Andrei Popescu,
125249
125248
Andres Gomez,
125250
125249
Andres Rios,
125250
+ Andreu Botella,
125251
125251
Andrew Barfield,
125252
125252
Andrew Clover,
125253
125253
Andrew Gove,
0 commit comments