Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fedaaea

Browse files
committed
Use JAVASCRIPT rather than ECMA262 as reference name
Also reference https://javascript.spec.whatwg.org/ normatively for as long as it’s still relevant and require it to be implemented.
1 parent baad9fd commit fedaaea

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

source

+22-18
Original file line numberDiff line numberDiff line change
@@ -2950,15 +2950,18 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
29502950
<dd>
29512951

29522952
<p>Some parts of the language described by this specification only support JavaScript as the
2953-
underlying scripting language. <ref spec=ECMA262></p>
2953+
underlying scripting language. <ref spec=JAVASCRIPT></p>
29542954

2955-
<p class="note">The term "JavaScript" is used to refer to ECMA262, rather than the official term
2956-
ECMAScript, since the term JavaScript is more widely known. Similarly, the <span>MIME
2955+
<p class="note">The term "JavaScript" is used to refer to ECMA-262, rather than the official
2956+
term ECMAScript, since the term JavaScript is more widely known. Similarly, the <span>MIME
29572957
type</span> used to refer to JavaScript in this specification is <code
29582958
data-x="">text/javascript</code>, since that is the most commonly used type, <span
29592959
data-x="willful violation">despite it being an officially obsoleted type</span> according to RFC
29602960
4329. <ref spec=RFC4329></p>
29612961

2962+
<p>User agents must follow the additions and clarifications made in the WHATWG JavaScript
2963+
standard. <ref spec=JAVASCRIPT></p>
2964+
29622965
<p>The following terms are defined in the JavaScript specification and used in this specification:</p>
29632966

29642967
<ul class="brief">
@@ -7866,7 +7869,7 @@ interface <dfn>DOMStringMap</dfn> {
78667869
<h3>Safe passing of structured data</h3>
78677870

78687871
<p>This section uses the terminology and typographic conventions from the JavaScript
7869-
specification. <ref spec=ECMA262></p>
7872+
specification. <ref spec=JAVASCRIPT></p>
78707873

78717874
<h4><dfn>Cloneable objects</dfn></h4>
78727875

@@ -7976,7 +7979,7 @@ interface <dfn>DOMStringMap</dfn> {
79767979
<var>placeholderResult</var>, now holds a reference to <var>transferResult</var>.</p>
79777980

79787981
<p class="note">This is a rather unusual low-level operation for which no primitives are
7979-
defined by ECMAScript.</p>
7982+
defined by JavaScript.</p>
79807983
</li>
79817984

79827985
<li><p>Add <var>transferResult</var> as the last element of
@@ -15716,7 +15719,7 @@ Space is not the only void</pre>
1571615719

1571715720
<p>The following JavaScript function shows how the tree walk could be implemented. The <var>root</var> argument is the root of the tree to walk (either a <span>sectioning
1571815721
content</span> element or a <span>sectioning root</span> element), and the <var>enter</var> and <var>exit</var> arguments are callbacks that are called with
15719-
the nodes as they are entered and exited. <ref spec=ECMA262></p>
15722+
the nodes as they are entered and exited. <ref spec=JAVASCRIPT></p>
1572015723

1572115724
<pre>function (root, enter, exit) {
1572215725
var node = root;
@@ -47414,7 +47417,7 @@ ldh-str = &lt; as defined in <a href="https://tools.ietf.org/html/rfc1034#
4741447417
with only the "<code data-x="">u</code>" flag specified, compiles successfully, then the resulting regular expression is the element's
4741547418
<dfn>compiled pattern regular expression</dfn>. If the element has no such attribute, or if the
4741647419
value doesn't compile successfully, then the element has no <span>compiled pattern regular
47417-
expression</span>. <ref spec=ECMA262></p>
47420+
expression</span>. <ref spec=JAVASCRIPT></p>
4741847421

4741947422
<p class="note">If the value doesn't compile successfully, user agents are encouraged to log this
4742047423
fact in a developer console, to aid debugging.</p>
@@ -57956,7 +57959,7 @@ dictionary <dfn>RelatedEventInit</dfn> : <span>EventInit</span> {
5795657959
with the requirements of the JavaScript specification's <i data-x="js-prod-Script">Script</i> or
5795757960
<i data-x="js-prod-Module">Module</i> productions, for <span data-x="classic script">classic
5795857961
scripts</span> and <span data-x="module script">module scripts</span> respectively. <ref
57959-
spec="ECMA262"></p>
57962+
spec="JAVASCRIPT"></p>
5796057963

5796157964
<p>When used to include <span data-x="data block">data blocks</span>, the data must be embedded
5796257965
inline, the format of the data must be given using the <code
@@ -58928,7 +58931,7 @@ o............A....e
5892858931
<h5 id="scriptingLanguages">Scripting languages</h5>
5892958932

5893058933
<p>A <dfn>JavaScript MIME type</dfn> is a <span>MIME type</span> string that is one of the
58931-
following and refers to JavaScript: <ref spec=ECMA262></p>
58934+
following and refers to JavaScript: <ref spec=JAVASCRIPT></p>
5893258935

5893358936
<ul class="brief">
5893458937
<li><code>application/ecmascript</code>
@@ -85671,7 +85674,7 @@ interface <dfn>NavigatorOnLine</dfn> {
8567185674
data-x="js-ScriptEvaluation">ScriptEvaluation</span> or <span
8567285675
data-x="js-ModuleEvaluation">ModuleEvaluation</span> to cease immediately, emptying the
8567385676
<span>JavaScript execution context stack</span> without triggering any of the normal mechanisms
85674-
like <code data-x="">finally</code> blocks. <ref spec=ECMA262></p>
85677+
like <code data-x="">finally</code> blocks. <ref spec=JAVASCRIPT></p>
8567585678

8567685679
<p>User agents may impose resource limitations on scripts, for example CPU quotas, memory limits,
8567785680
total execution time limits, or bandwidth limitations. When a script exceeds a limit, the user
@@ -85710,7 +85713,7 @@ interface <dfn>NavigatorOnLine</dfn> {
8571085713
specify certain invariants about how promise operations execute with a clean <span>JavaScript
8571185714
execution context stack</span> and in a certain order. However, as of the time of this writing
8571285715
the definition of <span data-x="js-EnqueueJob">EnqueueJob</span> in that specification is not
85713-
sufficiently flexible to integrate with HTML as a host environment. <ref spec="ECMA262"></p>
85716+
sufficiently flexible to integrate with HTML as a host environment. <ref spec=JAVASCRIPT></p>
8571485717

8571585718
<p class="note">This is not strictly true. It is in fact possible, by taking liberal advantage of
8571685719
the many "implementation defined" sections of the algorithm, to contort it to our purposes.
@@ -85760,7 +85763,7 @@ interface <dfn>NavigatorOnLine</dfn> {
8576085763
of their processing model. This specification defines the rest of their processing model: how the
8576185764
module system is bootstrapped, via the <code>script</code> element with <code
8576285765
data-x="attr-script-type">type</code> attribute set to "<code data-x="">module</code>", and how
85763-
modules are fetched, resolved, and executed. <ref spec="ECMA262"></p>
85766+
modules are fetched, resolved, and executed. <ref spec="JAVASCRIPT"></p>
8576485767

8576585768
<p class="note">Although the JavaScript specification speaks in terms of "scripts" versus
8576685769
"modules", in general this specification speaks in terms of <span data-x="classic script">classic
@@ -85802,7 +85805,7 @@ interface <dfn>NavigatorOnLine</dfn> {
8580285805

8580385806
<p>JavaScript contains an implementation-defined <span
8580485807
data-x="js-HostResolveImportedModule">HostResolveImportedModule</span> abstract operation. User
85805-
agents must use the following implementation: <ref spec="ECMA262"></p>
85808+
agents must use the following implementation: <ref spec=JAVASCRIPT></p>
8580685809

8580785810
<ol>
8580885811
<li><p>Let <var>referencing module script</var> be
@@ -86040,7 +86043,7 @@ dictionary <dfn>ErrorEventInit</dfn> : <span>EventInit</span> {
8604086043
<p>JavaScript contains an implementation-defined <span
8604186044
data-x="js-HostPromiseRejectionTracker">HostPromiseRejectionTracker</span>(<var>promise</var>,
8604286045
<var>operation</var>) abstract operation. User agents must use the following implementation:
86043-
<ref spec=ECMA262></p>
86046+
<ref spec=JAVASCRIPT></p>
8604486047

8604586048
<ol>
8604686049

@@ -111363,7 +111366,7 @@ if (s = prompt('What is your name?')) {
111363111366
legacy content: one that uses the presence of <code data-x="dom-document-all">document.all</code>
111364111367
as a way to detect legacy user agents, and one that only supports those legacy user agents and
111365111368
uses the <code data-x="dom-document-all">document.all</code> object without testing for its
111366-
presence first. <ref spec=ECMA262></p>
111369+
presence first. <ref spec=JAVASCRIPT></p>
111367111370

111368111371
<hr>
111369111372

@@ -116706,9 +116709,6 @@ INSERT INTERFACES HERE
116706116709
<dt id="refsE163">[E163]</dt>
116707116710
<dd><cite>Recommendation E.163 &mdash; Numbering Plan for The International Telephone Service</cite>, CCITT Blue Book, Fascicle II.2, pp. 128-134, November 1988.</dd>
116708116711

116709-
<dt id="refsECMA262">[ECMA262]</dt>
116710-
<dd><cite><a href="https://tc39.github.io/ecma262/">ECMAScript Language Specification</a></cite>. Ecma International.</dd>
116711-
116712116712
<dt id="refsEDITING">[EDITING]</dt>
116713116713
<dd><cite><a href="https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html">HTML Editing APIs</a></cite>, A. Gregor. W3C Editing APIs CG.</dd>
116714116714

@@ -116778,6 +116778,10 @@ INSERT INTERFACES HERE
116778116778
<dt id="refsISO8601">[ISO8601]</dt>
116779116779
<dd>(Non-normative) <cite><a href="http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=doc.Fetch&amp;nodeid=4021199">ISO8601: Data elements and interchange formats &mdash; Information interchange &mdash; Representation of dates and times</a></cite>. ISO.</dd>
116780116780

116781+
<dt id="refsJAVASCRIPT">[JAVASCRIPT]</dt>
116782+
<dd><cite><a href="https://tc39.github.io/ecma262/">ECMAScript Language Specification</a></cite>. Ecma International.</dd>
116783+
<dd><cite><a href="https://javascript.spec.whatwg.org/">JavaScript Standard</a></cite>, M. Bynens. WHATWG.</dd>
116784+
116781116785
<dt id="refsJLREQ">[JLREQ]</dt>
116782116786
<dd><cite><a href="https://www.w3.org/TR/jlreq/">Requirements for Japanese Text Layout</a></cite>. W3C.</dd> <!-- too many editors to list -->
116783116787

0 commit comments

Comments
 (0)