diff --git a/source b/source index 73646634775..3ec0a10a684 100644 --- a/source +++ b/source @@ -2880,6 +2880,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
DataCloneError
"EncodingError
"NotAllowedError
"InvalidNodeTypeError
"When this specification requires a user agent to create a Date
object
@@ -3185,7 +3186,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
Text
node conceptThe following features are defined in UI Events: UIEVENTS
@@ -11684,6 +11686,10 @@ interface HTMLElement : Element { [CEReactions] attribute boolean translate; [CEReactions] attribute DOMString dir; + // TextTrackCue related + [CEReactions] attribute boolean cuebackground; + [CEReactions] attribute boolean cue; + // user interaction [CEReactions] attribute (boolean or unrestricted double or DOMString)? hidden; [CEReactions] attribute boolean inert; @@ -12941,6 +12947,8 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%autocapitalize
autofocus
contenteditable
cue
cuebackground
dir
draggable
enterkeyhint
An arbitrary string.
+A DocumentFragment
that is the content of the cue and is composed of one ore
+ more of the allowed text track cue elements and exclusive Text
nodes.
The b
, br
, i
, div
, p
, rb
, rt
, rtc
, ruby
, and the span
element.
One or more of the allowed text track cue elements in a
+ text track cue fragment that has a cuebackground
+ attribute.
+ A cue background can be selected and styles via the CSS ::cuebackground
pseudo-element.
+
The time, in seconds and fractions of a second, that describes the beginning of the range of @@ -39099,6 +39132,7 @@ interface VideoTrack { example, WebVTT has a text track cue writing direction and so forth. WEBVTT
An unbounded text track cue is a text track cue @@ -40124,6 +40158,7 @@ interface TextTrackCueList {
[Exposed=Window]
interface TextTrackCue : EventTarget {
+ constructor(double startTime, double endTime, DocumentFragment cueFragment);
readonly attribute TextTrack? track;
attribute DOMString id;
@@ -40136,6 +40171,10 @@ interface TextTrackCue : EventTarget {
};
cue = new TextTrackCue(startTime, endTime, cueFragment)
Creates a TextTrackCue
instance with the given parameters.
cue.track
Returns the TextTrack
object to which this text track cue belongs,
@@ -40175,6 +40214,122 @@ interface TextTrackCue : EventTarget {
The TextTrackCue(startTime, endTime,
+ cueFragment)
constructor runs the following steps:
If cueFragment first child is null or a Text
node, then throw an
+ "InvalidNodeTypeError
" DOMException
.
For each child in cueFragment's children:
+Ensure child is an allowed cue + descendant.
Let fragment be a newly created DocumentFragment
using
+ this's relevant global object's associated Document
.
Let clones be a clone of cueFragment, with the clone children flag set + to true.
This is to prevent mutation of the cueFragment after + construction.
+Append clones into fragment. + Rethrow any exceptions.
Append + runs the ensure pre-insertion validity algorithm, which can throw.
+Assure the required elements for cue passing + fragment and a new map «[ "cuebackground" → null, "cue" → null ]». Rethrow any + exceptions.
Set this's text track cue fragment to + fragment.
Set this's text track cue start time to + startTime.
Set this's text track cue end time to + endTime.
Return this.
To ensure Node
node is an allowed
+ cue descendant, run these steps:
If node is not an exclusive Text
node or is not an
+ Element
, then throw "InvalidNodeTypeError
"
+ DOMException
.
If node is an Element
:
If node's namespace is not in the HTML namespace, then throw
+ "InvalidNodeTypeError
" DOMException
.
If node is not one of the allowed text track cue elements, then
+ throw "InvalidNodeTypeError
" DOMException
.
For each child of node in tree order: +
Ensure child is an allowed cue + descendant.
To Assure the required elements for cue with
+ Node
node, and map
+ requiredElements:
If node is a DocumentFragment
:
For each child of node in tree order:
+Assure the required elements for cue + passing child and requiredElements.
If requiredElements["cue"] is null or
+ requiredElements["cuebackground"] is null, then throw an
+ "InvalidNodeTypeError
" DOMException
.
If node is an Element
:
If requiredElements["cuebackground"] is null:
+Set requiredElements["cuebackground"] to the result of getting an + attribute in the HTML namespace, "cuebackground", node.
If requiredElements["cue"] is null:
+Let cue be the result of getting an attribute in the HTML + namespace, "cue", node.
If cue is not null:
+Let backgroundCue be + requiredElements["cuebackground"].
If backgroundCue is null, then throw a
+ "HierarchyRequestError
" DOMException
.
If backgroundCue is not an inclusive ancestor of cue, then
+ throw a "HierarchyRequestError
"
+ DOMException
.
Set requiredElements["cue"] to cue and break.
If node is an any other type, continue.
The track
attribute, on getting, must return the TextTrack
object of the text
@@ -40219,6 +40374,7 @@ interface TextTrackCue : EventTarget {
unset otherwise.
The following are the event handlers that (and their corresponding TextTrackCue : EventTarget {
+ When the The cue IDL attribute must reflect the content
+ attribute of the same name. When the The cuebackground IDL attribute must
+ reflect the content attribute of the same name. The The The
+
+ cue
and cuebackground
attributescue
content attribute is present, the element serves as a
+ text track cue. A text track cue fragment must contain one or
+ more text track cues.cuebackground
attribute is present, the
+ element serves as cue background for a text track cue.cue
and cuebackground
attributes must each be present at least once
+ in a text track cue fragment.cue
and cuebackground
can be present on the same element.Best practices for metadata text tracks
@@ -136085,6 +136266,34 @@ interface External {
video
anonymous
"; "use-credentials
"
+ cue
+ b
+ br
+ i
+ div
+ p
+ rb
+ rt
+ rtc
+ ruby
+ span
+ cuebackground
+ b
+ br
+ i
+ div
+ p
+ rb
+ rt
+ rtc
+ ruby
+ span
+ data
object