@@ -2390,11 +2390,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
23902390 <li><dfn data-x-href="https://infra.spec.whatwg.org/#scalar-value">scalar value</dfn></li>
23912391 <li><dfn data-x-href="https://infra.spec.whatwg.org/#tuple">tuple</dfn></li>
23922392 <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>
23962397 <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>
23982398 <li><dfn id="space-characters" data-x-href="https://infra.spec.whatwg.org/#ascii-whitespace">ASCII whitespace</dfn></li>
23992399 <li><dfn data-x-href="https://infra.spec.whatwg.org/#control">control</dfn></li>
24002400 <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> {
1272512725 <ol>
1272612726 <li><p>Let <var>current</var> be the <span>list</span> resulting in running the <span>inner
1272712727 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>
1273012729
1273112730 <p class="note">Intuitively, a <i>required line break count</i> item means that a certain
1273212731 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#
4933249331 data-x="attr-fe-minlength">form control <code data-x="">minlength</code> attribute</span>.</p>
4933349332
4933449333 <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>
4933849337
4933949338 <!-- we allow the default to be smaller than the minimum, so that you can have incomplete, but not
4934049339 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> {
5216652165 data-x="attr-fe-maxlength">form control <code data-x="">maxlength</code> attribute</span>.</p>
5216752166
5216852167 <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
5217152170 normalized</span> is equal to or less than the element's <span>maximum allowed value
5217252171 length</span>.</p>
5217352172
@@ -52310,8 +52309,8 @@ interface <dfn>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
5231052309 </ol>
5231152310
5231252311 <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>
5231552314
5231652315 <p>The <code data-x="dom-cva-willValidate">willValidate</code>, <code
5231752316 data-x="dom-cva-validity">validity</code>, and <code
@@ -53742,8 +53741,8 @@ form.method === input; // => true</code></pre>
5374253741 <p>A <dfn data-x="attr-fe-maxlength">form control <code data-x="">maxlength</code>
5374353742 attribute</dfn>, controlled by the <span data-x="concept-fe-dirty">dirty value flag</span>,
5374453743 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>
5374753746
5374853747 <p>If an element has its <span data-x="attr-fe-maxlength">form control <code
5374953748 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>
5375753756 <p><strong>Constraint validation</strong>: If an element has a <span>maximum allowed value
5375853757 length</span>, its <span data-x="concept-fe-dirty">dirty value flag</span> is true, its <span
5375953758 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
5376153760 data-x="concept-fe-api-value">API value</span> is greater than the element's <span>maximum allowed
5376253761 value length</span>, then the element is <span>suffering from being too long</span>.</p>
5376353762
5376453763 <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>
5376753766
5376853767 <p class="note">In the case of <code>textarea</code> elements, the <span
5376953768 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>
5377953778 <p>A <dfn data-x="attr-fe-minlength">form control <code data-x="">minlength</code>
5378053779 attribute</dfn>, controlled by the <span data-x="concept-fe-dirty">dirty value flag</span>,
5378153780 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>
5378453783
5378553784 <p class="note">The <code data-x="attr-fe-minlength">minlength</code> attribute does not imply the
5378653785 <code data-x="">required</code> attribute. If the form control has no <code
@@ -53806,9 +53805,9 @@ form.method === input; // => true</code></pre>
5380653805 length</span>, its <span data-x="concept-fe-dirty">dirty value flag</span> is true, its <span
5380753806 data-x="concept-fe-value">value</span> was last changed by a user edit (as opposed to a change
5380853807 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>
5381253811
5381353812 </div>
5381453813
@@ -72535,8 +72534,8 @@ Demos:
7253572534
7253672535 <li>
7253772536
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>
7254072539
7254172540 <ol>
7254272541
@@ -73459,8 +73458,8 @@ END:VCARD</pre>
7345973458
7346073459 <li>
7346173460
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>
7346473463
7346573464 <ol>
7346673465
@@ -85036,9 +85035,9 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
8503685035 and whose <span data-x="concept-response-https-state">HTTPS state</span> is
8503785036 <var>settings</var>'s <span>HTTPS state</span>.</p>
8503885037
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
8504285041 href="https://github.com/whatwg/html/issues/1129">issue #1129</a>.</p>
8504385042 </li>
8504485043 </ol>
@@ -90182,7 +90181,7 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
9018290181 <h5 id="creating-scripts">Creating scripts</h5>
9018390182
9018490183 <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>
9018690185 <var>settings</var>, a <span>URL</span> <var>baseURL</var>, some <span>script fetch options</span>
9018790186 <var>options</var>, and an optional <var>muted errors</var> boolean:</p>
9018890187
@@ -90237,7 +90236,7 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
9023790236 </ol>
9023890237
9023990238 <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>
9024190240 <var>settings</var>, a <span>URL</span> <var>baseURL</var>, and some <span>script fetch
9024290241 options</span> <var>options</var>:</p>
9024390242
@@ -91340,8 +91339,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9134091339 <div w-nodev>
9134191340
9134291341 <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>
9134591344
9134691345 <ol>
9134791346 <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> {
9309893097 <ol>
9309993098 <li><p>Wait 100 milliseconds, so that people think we're doing heavy-duty encryption.</p></li>
9310093099
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>
9310493103
9310593104 <li><p><span data-x="list append">Append</span> <var>encrypted</var> to
9310693105 <var>encryptedURLs</var>.</p>
@@ -93140,10 +93139,10 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
9314093139 example, if we'd saved just the <span>current settings object</span>, instead of its <span>API
9314193140 base URL</span>, there would have been a potential race.</p></li>
9314293141
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>
9314793146
9314893147 <li><p>It performs "expensive computation" (waiting for 100 milliseconds per input URL) during
9314993148 the <span>in parallel</span> steps, thus not blocking the main <span>event loop</span>.</p></li>
@@ -125248,6 +125247,7 @@ INSERT INTERFACES HERE
125248125247 Andrei Popescu,
125249125248 Andres Gomez,
125250125249 Andres Rios,
125250+ Andreu Botella,
125251125251 Andrew Barfield,
125252125252 Andrew Clover,
125253125253 Andrew Gove,
0 commit comments