diff --git a/source b/source index e5abb8f1e85..e6e3f73fe8a 100644 --- a/source +++ b/source @@ -3194,8 +3194,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
User agents that support JavaScript must also implement the Import Text proposal. - The following term is defined there, and used in this specification: JSIMPORTTEXT
+User agents that support JavaScript must also implement the Import Text + proposal. The following term is defined there, and used in this specification: + JSIMPORTTEXT
DOMMatrix2DInit and
DOMMatrixInit dictionariesDOMMatrix from a dictionary
- and create a DOMMatrix from a 2D dictionary
- algorithms for DOMMatrix2DInit or DOMMatrixInitDOMMatrix from a 2D dictionary algorithms for
+ DOMMatrix2DInit or DOMMatrixInit
DOMPointInit dictionary, and associated
x and
@@ -8068,18 +8071,19 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
- Each img, audio, video, and iframe element has associated
- lazy load resumption steps, initially null.
Each img, audio, video, and iframe element
+ has associated lazy load resumption steps, initially null.
Each video element also has associated poster lazy load resumption steps,
- initially null.
Each video element also has associated poster lazy load resumption
+ steps, initially null.
For img, audio, video, and iframe elements that
- will lazy load, these steps are run from the
- lazy load intersection observer's callback or when their lazy loading
- attribute is set to the Eager state. This
- causes the element to continue loading. For video elements, poster lazy load
- resumption steps are also run at the same time.
For img, audio, video, and
+ iframe elements that will lazy
+ load, these steps are run from the lazy load intersection observer's callback
+ or when their lazy loading attribute is set to the Eager state. This causes the element to continue loading.
+ For video elements, poster lazy load resumption steps are also run at
+ the same time.
Each Document has a lazy load intersection observer, initially set to
null but can be set to an IntersectionObserver instance.
Let posterResumptionSteps be null.
If entry.isIntersecting is true and entry.target is a
- video element, then set posterResumptionSteps to the video
- element's poster lazy load resumption steps.
target is a
+ video element, then set posterResumptionSteps to the
+ video element's poster lazy load resumption steps.
If resumptionSteps is null and posterResumptionSteps is null, then return.
For each child node node of element:
Let current be the list resulting from running the rendered - text collection steps with node. Each item in results will either - be a string or a positive integer (a required line break count).
+Let current be the list resulting from running the + rendered text collection steps with node. Each item in + results will either be a string or a positive integer (a required + line break count).
Intuitively, a required line break count item means that a certain number of line breaks appear at that point, but they can be collapsed with the line breaks @@ -16679,17 +16685,17 @@ interface HTMLLinkElement : HTMLElement {
The as attribute
specifies either a preload destination or a module preload destination
for a preload request for the resource given by the href
- attribute. It is an enumerated attribute. Each of the union of preload destinations and module preload destinations is a keyword for this
- attribute, mapping to a state of the same name. The attribute must be specified on
- link elements that have a rel attribute that
- contains the preload keyword; in such cases it must have a
- value which is a preload destination. It may be specified on link
- elements that have a rel attribute that contains the
- modulepreload keyword; in such cases it must have a value
- which is a module preload destination. For other link elements, it must
- not be specified.
link elements that have a rel attribute that contains the preload keyword; in such cases it must have a value which is a
+ preload destination. It may be specified on link elements that have a
+ rel attribute that contains the modulepreload keyword; in such cases it must have a value which
+ is a module preload destination. For other link elements, it must not be
+ specified.
The processing model for how the as attribute is
used is given in an individual link type's fetch and process the linked resource
@@ -26363,8 +26369,8 @@ document.body.appendChild(wbr);
If this's url is null, then return null.
Return this's url's - origin.
Return this's url's origin.
To update href for an HTMLAnchorElement or
- HTMLAreaElement element, set the element's href
- content attribute's value to the element's url, HTMLAreaElement element, set the element's href content attribute's value to the element's url, serialized.
If continue is false, then return.
Inform the navigation API about aborting navigation given subject's node navigable.
+Inform the navigation API about aborting navigation given + subject's node navigable.
For the purposes of this section, a string type - matches a preload destination - destination if the following algorithm returns true:
+For the purposes of this section, a string type matches a preload destination destination if the following + algorithm returns true:
If type is an empty string, then return true.
If any of the following are true:
destination is "script" and
- mimeTypeRecord is a JavaScript MIME type;
destination is "script" and mimeTypeRecord
+ is a JavaScript MIME type;
destination is "image" and
mimeTypeRecord is an image MIME type;
The source HTML element removing steps, given
- removedNode, isSubtreeRoot, and oldAncestor are:
The source HTML element removing steps, given removedNode,
+ isSubtreeRoot, and oldAncestor are:
If isSubtreeRoot is true and oldAncestor is a picture
@@ -35039,13 +35047,14 @@ interface HTMLIFrameElement : HTMLElement {
Furthermore, notice that since the DOCTYPE is optional in
iframe srcdoc documents, and the html,
- head, and body elements have optional
- start and end tags, and the title element is also optional in iframe srcdoc
- documents, the markup in a srcdoc attribute can be
- relatively succinct despite representing an entire document, since only the contents of the
- body element need appear literally in the syntax. The other elements are still
- present, but only by implication.
head, and body elements have optional start and end tags, and the title
+ element is also optional in iframe srcdoc documents, the markup in a srcdoc attribute can be relatively succinct despite
+ representing an entire document, since only the contents of the body element need
+ appear literally in the syntax. The other elements are still present, but only by
+ implication.
If the poster attribute's value is the empty string
- or if the attribute is absent, then:
If the poster attribute's value is the empty
+ string or if the attribute is absent, then:
Set the video element's poster lazy load resumption steps to
@@ -36866,7 +36875,8 @@ interface HTMLVideoElement : HTMLMediaElement
the window's load event.
11.mp4The video does not load until played. The poster image loads eagerly and delays the window's load event.
The video does not load until played. The poster image loads eagerly and delays the + window's load event.
The src, crossorigin,
- preload, autoplay,
- loop, muted, controls, and loading attributes are preload, autoplay, loop, muted, controls, and
+ loading attributes are the attributes common to all media elements.
audio elements without a controls attribute will not be displayed by the user agent, preventing them from lazy loading.
audio elements without a controls attribute will not be displayed by the user agent,
+ preventing them from lazy loading.
<audio src="1.mp3" type="audio/mpeg" controls> @@ -37677,8 +37690,9 @@ interface HTMLMediaElement : HTMLElement { data-x="attr-media-crossorigin">crossorigin,preload,autoplay,loop,muted,controls, andloading, apply to all media elements. They are defined in this section. + data-x="attr-media-controls">controls, andloading, apply to all media + elements. They are defined in this section.The
loadingattribute is a lazy loading attribute. Its purpose is to indicate the policy for @@ -37705,7 +37719,8 @@ interface HTMLMediaElement : HTMLElement {
If resumptionSteps is not null, then:
Set the media element's lazy load resumption steps to null.
Set the media element's lazy load resumption steps to + null.
Invoke resumptionSteps.
When the load()
- method on a media element is invoked, the user agent must run the following steps:
Let resumptionSteps be the media element's lazy load
@@ -38192,7 +38208,8 @@ interface MediaError {
If resumptionSteps is not null, then: Set the media element's lazy load resumption steps to null. Set the media element's lazy load resumption steps to
+ null. Invoke resumptionSteps. Set the element's show poster flag to true. If the media element's lazy loading attribute is in the Eager state or scripting
- is disabled, set the media element's delaying-the-load-event flag
- to true (this delays the load event).
-
@@ -38349,9 +38366,10 @@ interface MediaError {
Await a stable state, allowing the task that invoked this algorithm to continue. The synchronous
@@ -38748,11 +38766,11 @@ interface MediaError {
Let isTopLevelSelfFetch be false. Let settingsObject be the media element's
- node document's relevant settings object. Let settingsObject be the media element's node
+ document's relevant settings object. Let global be the media element's
- node document's relevant global object. Let global be the media element's node document's
+ relevant global object. If all of the following conditions are true: global's navigable's parent is null; and settingsObject's creation URL equals the URL record, settingsObject's creation
+ URL equals the URL
+ record, then set isTopLevelSelfFetch to true.
preload attribute). Including both is not an error, however.
In audio and video elements, if scripting is
- enabled, the loading attribute can defer the In audio and video elements, if scripting is enabled, the loading attribute can defer the preload attribute's hinted behavior until the element's
lazy load resumption steps are run.
it has an autoplay attribute
specified;
if it is an audio or video element and its lazy loading attribute is either in the Eager state or has started loading while in the Lazy state, or scripting is
- disabled for the element;
if it is an audio or video element and its lazy loading
+ attribute is either in the Eager state or
+ has started loading while in the Lazy state, or
+ scripting is disabled for the element;
its node document's active sandboxing flag set does not have the sandboxed automatic features browsing context flag set; and
Let resumptionSteps be the media element's lazy load - resumption steps.
If resumptionSteps is not null, then:
Set the media element's lazy load resumption steps to null.
Set the media element's lazy load resumption steps to + null.
Invoke resumptionSteps.
value", and element.If element's dirty value flag is true,
+ then return the result of getting an
+ attribute by namespace and local name given null, "value", and
+ element.
Return element's value.
Let color be the result of - parsing value.
Let color be the result of parsing value.
If color is failure, then set color to opaque black.
Constraint validation: When the element has a minimum and does not have a reversed range, and the result of applying the algorithm to convert a string to a number to - the string given by the element's value is a number, and - the number obtained from that algorithm is less than the algorithm to convert a string to a number to the + string given by the element's value is a number, and the + number obtained from that algorithm is less than the minimum, the element is suffering from an underflow.
Constraint validation: When the element has a maximum and does not have a reversed range, and the result of applying the algorithm to convert a string to a number to - the string given by the element's value is a number, and - the number obtained from that algorithm is more than the algorithm to convert a string to a number to the + string given by the element's value is a number, and the + number obtained from that algorithm is more than the maximum, the element is suffering from an overflow.
Constraint validation: When an element has a reversed range, and the result of applying the algorithm to convert a string to a number to the string given by the element's value is a number, and the number obtained from that algorithm - is more than the maximum and less than the value is a number, and the number obtained from that algorithm is + more than the maximum and less than the minimum, the element is simultaneously suffering from an underflow and suffering from an overflow.
@@ -57793,9 +57813,9 @@ interface HTMLOptionElement : HTMLElement {The option HTML element removing steps, given
- removedNode, isSubtreeRoot, and oldAncestor are to run
- update an option's nearest ancestor select given
+
The option HTML element removing steps, given removedNode,
+ isSubtreeRoot, and oldAncestor are to run update an
+ option's nearest ancestor select given
removedNode.
If selectedcontent's disabled is
- true, nearestSelectAncestor is null, or nearestSelectAncestor has the
- multiple attribute, then return.
multiple attribute, then return.
Run update a select's selectedcontent given
nearestSelectAncestor.
The dialog HTML element removing steps, given
- removedNode, isSubtreeRoot, and oldAncestor are:
The dialog HTML element removing steps, given removedNode,
+ isSubtreeRoot, and oldAncestor are:
If removedNode has an open attribute,
@@ -80152,15 +80172,15 @@ Demos:
:stalledThe :stalled pseudo-class must match
- all media elements that match the The :stalled pseudo-class must match all
+ media elements that match the :buffering pseudo-class and whose is
currently stalled is true.
This pseudo-class is intended for displaying player state UI when video playback
- has been buffering for too long. Unlike the stalled event, which fires whenever the network download has
- stalled regardless of playback or ready state.
stalled
+ event, which fires whenever the network download has stalled regardless of playback or ready
+ state.
:mutedThe new Origin() constructor steps are to set
- this's origin to a unique The new
+ Origin() constructor steps are to set this's origin to a unique opaque origin.
SecurityError" DOMException.
- Assert: this's relevant Document's ancestor origins list is not
+
Assert: this's relevant Document's
+ ancestor origins list is not
null.
Otherwise, return this's relevant Let navigateEvent be navigation's ongoing Let apiMethodTracker be navigation's ongoing API method tracker. Let apiMethodTracker be navigation's ongoing API method
+ tracker. Prepare to run script given navigation's relevant settings
@@ -101779,8 +101800,8 @@ callback NavigationInterceptHandler = precommitController.addHandler(NavigationInterceptHandler handler)
- Adds a NavigationInterceptHandler callback that would be called once the navigation is committed,
- as if this method was passed to the Adds a NavigationInterceptHandler callback that would be called once the
+ navigation is committed, as if this method was passed to the The navigate event intercept commit handler steps, given a Let promisesList be an empty list. If endResultIsSameDocument is false and apiMethodTracker is non-null,
- then clean up
+ If endResultIsSameDocument is false and apiMethodTracker is
+ non-null, then clean up
apiMethodTracker. Set navigable's parent to
parent. Set the initial visibility state of documentState's document to
- navigable's traversable navigable's system visibility state. Set the initial visibility state of documentState's document to navigable's traversable navigable's system visibility
+ state.Document's NavigationHistoryBehavior {
navigate event.navigateEvent.intercept() method as a handler.Navigation
- navigation, a NavigateEvent object event, and a navigation
- API method tracker apiMethodTracker are as follows:NavigateEvent object event, and a
+ navigation API method tracker apiMethodTracker are as follows:
sharedworker-message"sharedworker-message"SharedWorkerGlobalScope whose owner set contains this Document.sharedworker-with-no-active-client"sharedworker-with-no-active-client"Document was in the owner set of a
SharedWorkerGlobalScope that is not actively
needed.javascript: URL given navigable,
url, historyHandling, sourceSnapshotParams,
- initiatorOriginSnapshot, userInvolvement,
- cspNavigationType, initialInsertion, and
- navigationId.
Return.
Assert: historyHandling is " an origin possibly for use in a user-facing prompt to confirm the invocation of
an external software package
struct, where that makes sense. See the comment there.
-->
scheme URL.
-
NavigationTimingType used for creating the navigation timing entry for the new Document (if one is
created)Document (if one is created)DocumentMake active newDocument.
Set the initial visibility state of newDocument to - navigable's traversable navigable's system visibility state.
Scripting is disabled for a platform - object object if any of the following are true:
+Scripting is disabled for a platform object + object if any of the following are true:
Scripting is disabled for @@ -117049,8 +117057,8 @@ document.querySelector("button").addEventListener("click", bound); script">JavaScript module scripts;
a Synthetic Module Record, for CSS module - scripts, JSON module scripts, and - text module scripts;
a WebAssembly Module Record, for WebAssembly module scripts; or
As CSS style sheets, JSON documents, and text do not import dependent modules, and do not - throw exceptions on evaluation, the fetch - options and base URL of CSS module scripts, JSON module - scripts, and text module scripts are always null.
+As CSS style sheets, JSON documents, and text do not import dependent modules, and + do not throw exceptions on evaluation, the fetch options and base URL of CSS module + scripts, JSON module scripts, and text module scripts are always null.
The active script is determined by the following algorithm:
@@ -118485,8 +118494,8 @@ document.querySelector("button").addEventListener("click", bound);Set script's settings object to settings.
Set script's base URL and - fetch options to null.
Set script's base URL and fetch options to null.
Set script's parse error and error to rethrow to null.
Document.
- If document's active sandboxing flag set has its - sandboxed scripts browsing context flag set, then return null.
If document's active sandboxing flag set has its sandboxed + scripts browsing context flag set, then return null.
Let body be the uncompiled script body in eventHandler's value.
Certain operations and methods are defined as firing events on elements. For example, the click() method on the HTMLElement interface is defined as
- firing a click event on the element. POINTEREVENTS
click event on the element.
+ POINTEREVENTS
Firing a synthetic pointer event named
@@ -124094,12 +124104,12 @@ document.body.appendChild(frame)
If this's relevant settings object's origin is not same origin-domain
- with the entry settings object's origin is not same origin-domain with
+ the entry settings object's origin, then return null. Return this's relevant settings object's
- origin. Return this's relevant settings object's origin. Since these objects are potentially accessible cross-origin (e.g., through
@@ -128617,13 +128627,13 @@ typedef (WindowProxy or MessagePort or ServiceWo
The If this's origin is
- an origin, then return the serialization of this's If this's origin is an
+ origin, then return the serialization of this's origin. If this's origin is
- null, then return the empty string. If this's origin is null,
+ then return the empty string. Return this's origin. If the event type buffer has a value other than the empty string, change the
@@ -129791,8 +129800,8 @@ function receiver(e) {
If this throws an exception, catch it, fire an
event named Fire an event named
origin getter steps are:
-
lastEventId attribute to the last event ID string of the event
+ redirects), and its lastEventId attribute to
+ the last event ID string of the event
source.messageerror at
targetWindow, using MessageEvent, with its origin initialized to origin and
- the source attribute initialized to
+ data-x="concept-MessageEvent-origin">origin initialized to origin and the
+ source attribute initialized to
source, and then return.message at targetWindow, using
- MessageEvent, with its origin initialized to origin, the source attribute initialized to source, the
- data attribute initialized to
- messageClone, and the ports attribute
- initialized to newPorts.MessageEvent, with its origin
+ initialized to origin, the source
+ attribute initialized to source, the data attribute initialized to messageClone,
+ and the ports attribute initialized to
+ newPorts.
Fire an event named message at destination, using
MessageEvent, with the data attribute
- initialized to data and its origin initialized to
- sourceOrigin.
Let worker global scope be realm's global object.
Let origin be a unique opaque origin if worker global scope's
- url's Let origin be a unique opaque
+ origin if worker global scope's url's scheme is "data"; otherwise
outside settings's origin.
If this's map is empty, then return.
If this's map is empty, then return.
Clear this's map.