From fedaaea0c0ef73eb976cab97c7c94fa0f798af73 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren Some parts of the language described by this specification only support JavaScript as the
- underlying scripting language.
The term "JavaScript" is used to refer to ECMA262, rather than the official term
- ECMAScript, since the term JavaScript is more widely known. Similarly, the MIME
+ The term "JavaScript" is used to refer to ECMA-262, rather than the official
+ term ECMAScript, since the term JavaScript is more widely known. Similarly, the MIME
type used to refer to JavaScript in this specification is User agents must follow the additions and clarifications made in the WHATWG JavaScript
+ standard. The following terms are defined in the JavaScript specification and used in this specification:text/javascript
, since that is the most commonly used type, despite it being an officially obsoleted type according to RFC
4329.
This is a rather unusual low-level operation for which no primitives are - defined by ECMAScript.
+ defined by JavaScript.Add transferResult as the last element of @@ -15716,7 +15719,7 @@ Space is not the only void
The following JavaScript function shows how the tree walk could be implemented. The root argument is the root of the tree to walk (either a sectioning content element or a sectioning root element), and the enter and exit arguments are callbacks that are called with - the nodes as they are entered and exited.
+ the nodes as they are entered and exited.function (root, enter, exit) { var node = root; @@ -47414,7 +47417,7 @@ ldh-str = < as defined in u" flag specified, compiles successfully, then the resulting regular expression is the element's compiled pattern regular expression. If the element has no such attribute, or if the value doesn't compile successfully, then the element has no compiled pattern regular - expression. + expression.If the value doesn't compile successfully, user agents are encouraged to log this fact in a developer console, to aid debugging.
@@ -57956,7 +57959,7 @@ dictionary RelatedEventInit : EventInit { with the requirements of the JavaScript specification's Script or Module productions, for classic scripts and module scripts respectively. + spec="JAVASCRIPT">When used to include data blocks, the data must be embedded inline, the format of the data must be given using the
Scripting languages
A JavaScript MIME type is a MIME type string that is one of the - following and refers to JavaScript:
+ following and refers to JavaScript:
application/ecmascript
@@ -85671,7 +85674,7 @@ interface NavigatorOnLine { data-x="js-ScriptEvaluation">ScriptEvaluation or ModuleEvaluation to cease immediately, emptying the JavaScript execution context stack without triggering any of the normal mechanisms - likefinally
blocks. + likefinally
blocks.User agents may impose resource limitations on scripts, for example CPU quotas, memory limits, total execution time limits, or bandwidth limitations. When a script exceeds a limit, the user @@ -85710,7 +85713,7 @@ interface NavigatorOnLine { specify certain invariants about how promise operations execute with a clean JavaScript execution context stack and in a certain order. However, as of the time of this writing the definition of EnqueueJob in that specification is not - sufficiently flexible to integrate with HTML as a host environment.
+ sufficiently flexible to integrate with HTML as a host environment.This is not strictly true. It is in fact possible, by taking liberal advantage of the many "implementation defined" sections of the algorithm, to contort it to our purposes. @@ -85760,7 +85763,7 @@ interface NavigatorOnLine { of their processing model. This specification defines the rest of their processing model: how the module system is bootstrapped, via the
+ modules are fetched, resolved, and executed.script
element withtype
attribute set to "module
", and how - modules are fetched, resolved, and executed.Although the JavaScript specification speaks in terms of "scripts" versus "modules", in general this specification speaks in terms of classic @@ -85802,7 +85805,7 @@ interface NavigatorOnLine {
JavaScript contains an implementation-defined HostResolveImportedModule abstract operation. User - agents must use the following implementation:
+ agents must use the following implementation:
Let referencing module script be @@ -86040,7 +86043,7 @@ dictionary ErrorEventInit : EventInit {
JavaScript contains an implementation-defined HostPromiseRejectionTracker(promise, operation) abstract operation. User agents must use the following implementation: -
+@@ -111363,7 +111366,7 @@ if (s = prompt('What is your name?')) { legacy content: one that uses the presence of
document.all
as a way to detect legacy user agents, and one that only supports those legacy user agents and uses thedocument.all
object without testing for its - presence first. + presence first.
@@ -116706,9 +116709,6 @@ INSERT INTERFACES HERE- [E163]
- Recommendation E.163 — Numbering Plan for The International Telephone Service, CCITT Blue Book, Fascicle II.2, pp. 128-134, November 1988.
-- [ECMA262]
-- ECMAScript Language Specification. Ecma International.
-- [EDITING]
- HTML Editing APIs, A. Gregor. W3C Editing APIs CG.
@@ -116778,6 +116778,10 @@ INSERT INTERFACES HERE- [ISO8601]
- (Non-normative) ISO8601: Data elements and interchange formats — Information interchange — Representation of dates and times. ISO.
+- [JAVASCRIPT]
+- ECMAScript Language Specification. Ecma International.
+- JavaScript Standard, M. Bynens. WHATWG.
+- [JLREQ]
- Requirements for Japanese Text Layout. W3C.