diff --git a/source b/source index 3cc7013f662..a58d36bf7cd 100644 --- a/source +++ b/source @@ -600,12 +600,9 @@ interface Example { };
variable = object.method([optionalArgument])
method
( [ optionalArgument ] )This is a note to authors describing the usage of an interface.
-This is a note to authors describing the usage of an interface.
/* this is a CSS fragment */
@@ -6909,11 +6906,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
empty string. Unless otherwise specified, the slot's value is the empty string.
nonce
Returns the value of the element's [[CryptographicNonce]] internal slot.
-Can be set, to update that slot's value.
-element.nonce
Returns the value set for element's cryptographic nonce. If the setter was not
+ used, this will be the value originally found in the nonce
+ content attribute.
element.nonce = value
Updates element's cryptographic nonce value.
The HTMLAllCollection
{
};
collection.length
Returns the number of elements in collection.
element = collection.item(index)
element = collection(index)
element = collection[index]
Returns the item at index index from collection (determined by + tree order).
element = collection.item(name)
collection = collection.item(name)
element = collection.namedItem(name)
collection = collection.namedItem(name)
element = collection(name)
collection = collection(name)
element = collection[name]
collection = collection[name]
Returns the item with ID or name name from + collection.
+ +If there are multiple matching items, then an HTMLCollection
object containing
+ all those elements is returned.
length
Returns the number of elements in the collection.
-item
(index)Returns the item with index index from the collection (determined by tree order).
-item
(name)item
(name)namedItem
(name)namedItem
(name)Returns the item with ID or name name from the collection.
-If there are multiple matching items, then an HTMLCollection
object containing all those elements is returned.
Only button
, form
, iframe
,
- input
, map
, meta
, object
,
- select
, and textarea
elements can have a name for the purpose of this
- method; their name is given by the value of their name
attribute.
Only button
, form
, iframe
, input
,
+ map
, meta
, object
, select
, and
+ textarea
elements can have a name for the purpose of this method; their name is
+ given by the value of their name
attribute.
collection.length
Returns the number of elements in collection.
length
Returns the number of elements in the collection.
-element = collection.item(index)
element = collection[index]
Returns the item at index index in collection. The items are sorted + in tree order.
item
(index)element = collection.namedItem(name)
radioNodeList = collection.namedItem(name)
element = collection[name]
radioNodeList = collection[name]
Returns the item with index index from the collection. The items are sorted in tree order.
-Returns the item with ID or name
name from collection.
namedItem
(name)namedItem
(name)Returns the item with ID or name
name from the collection.
If there are multiple matching items, then a RadioNodeList
object containing all those elements is returned.
If there are multiple matching items, then a RadioNodeList
object containing all
+ those elements is returned.
Returns the value of the first checked radio button represented by the object.
-Can be set, to check the first radio button with the given value represented by the object.
-radioNodeList.value
Returns the value of the first checked radio button represented by + radioNodeList.
radioNodeList.value = value
Checks the first first radio button represented by radioNodeList that has value + value.
collection.length
Returns the number of elements in collection.
length
[ = value ]collection.length = value
Returns the number of elements in the collection.
-When set to a smaller number, truncates the number of option
elements in the corresponding container.
When set to a greater number, adds new blank option
elements to that container.
When set to a smaller number than the existing length, truncates the number of
+ option
elements in the container corresponding to collection.
item
(index)Returns the item with index index from the collection. The items are sorted in tree order.
+When set to a greater number than the existing length, adds new blank option
+ elements to the container corresponding to collection.
element = collection.item(index)
element = collection[index]
Returns the item at index index in collection. The items are sorted + in tree order.
collection[index] = element
When index is a greater number than the number of items in the collection, adds
- new blank option
elements in the corresponding container.
-
When set to null, removes the item at index index from the collection.
-When set to an option
element, adds or replaces it at index index
- from the collection.
When index is a greater number than the number of items in collection,
+ adds new blank option
elements in the corresponding container.
When set to null, removes the item at index index from collection.
+ +When set to an option
element, adds or replaces it at index index in
+ collection.
namedItem
(name)element = collection.namedItem(name)
element = collection[name]
Returns the item with ID or name
name from the collection.
Returns the item with ID or name
name from collection.
If there are multiple matching items, then the first is returned.
add
(element [, before ] )collection.add(element[, before])
Inserts element before the node given by before.
-The before argument can be a number, in which case element is inserted before the item with that number, or an element from the - collection, in which case element is inserted before that element.
-If before is omitted, null, or a number out of range, then element will be added at the end of the list.
-This method will throw a "HierarchyRequestError
" DOMException
if
- element is an ancestor of the element into which it is to be inserted.
remove
(index)Removes the item with index index from the collection.
+The before argument can be a number, in which case element is inserted + before the item with that number, or an element from collection, in which case + element is inserted before that element.
+ +If before is omitted, null, or a number out of range, then element will + be added at the end of the list.
+ +Throws a "HierarchyRequestError
" DOMException
if
+ element is an ancestor of the element into which it is to be inserted.
selectedIndex
[ = value ]collection.remove(index)
Removes the item with index index from collection.
Returns the index of the first selected item, if any, or −1 if there is no selected - item.
+collection.selectedIndex
Returns the index of the first selected item, if any, or −1 if there is no selected + item.
Can be set, to change the selection.
- +collection.selectedIndex = index
Changes the selection to the option
element at index index in
+ collection.
DOMStringList
.
length
strings.length
Returns the number of strings in strings.
item
(index)strings[index]
strings.item(index)
Returns the string with index index from strings.
contains
(string)strings.contains(string)
Returns true if strings contains string, and false otherwise.
referrer
document.referrer
Returns the URL of the Document
- from which the user navigated to this one, unless it was blocked or there was no such document,
- in which case it returns the empty string.
Returns the URL of the Document
from
+ which the user navigated to this one, unless it was blocked or there was no such document, in
+ which case it returns the empty string.
The noreferrer
link type can be used to block the
referrer.
cookie
[ = value ]document.cookie [ = value ]
Returns the HTTP cookies that apply to the Document
. If there are no cookies or
cookies can't be applied to this resource, the empty string will be returned.
lastModified
document.lastModified
Returns the date of the last modification to the document, as reported by the server, in the
form "MM/DD/YYYY hh:mm:ss
", in the user's local time zone.
If the last modification date is not known, the current time is returned instead.
readyState
document.readyState
Returns "loading
" while the Document
is loading, "interactive
" once it is finished parsing but still loading subresources, and
@@ -9576,11 +9581,8 @@ partial interface Document {
head
Returns the head
element.
document.head
Returns the head
element.
The head
element of a document is the first head
element
@@ -9598,8 +9600,7 @@ partial interface Document {
title
[ = value ]document.title [ = value ]
Returns the document's title, as given by the title
element for
HTML and as given by the SVG title
element for SVG.
body
[ = value ]document.body [ = value ]
Returns the body element.
@@ -9768,33 +9768,36 @@ partial interface Document {images
document.images
Returns an HTMLCollection
of the img
elements in the Document
.
Returns an HTMLCollection
of the img
elements in the
+ Document
.
embeds
plugins
document.embeds
document.plugins
Return an HTMLCollection
of the embed
elements in the Document
.
Returns an HTMLCollection
of the embed
elements in the
+ Document
.
links
document.links
Returns an HTMLCollection
of the a
and area
elements
in the Document
that have href
attributes.
forms
document.forms
Return an HTMLCollection
of the form
elements in the Document
.
Returns an HTMLCollection
of the form
elements in the
+ Document
.
scripts
document.scripts
Return an HTMLCollection
of the script
elements in the Document
.
Returns an HTMLCollection
of the script
elements in the
+ Document
.
getElementsByName
(name)Returns a NodeList
of elements in the Document
that have a name
attribute with the value name.
collection = document.getElementsByName(name)
Returns a NodeList
of elements in the Document
that have a name
attribute with the value name.
currentScript
document.currentScript
Returns the script
element, or the SVG script
element,
- that is currently executing, as long as the element represents a classic script.
- In the case of reentrant script execution, returns the one that most recently started executing
+ that is currently executing, as long as the element represents a classic script. In
+ the case of reentrant script execution, returns the one that most recently started executing
amongst those that have not yet finished executing.
Returns null if the Document
is not currently executing a script
- or SVG script
element (e.g., because the running script is an event
+
Returns null if the Document
is not currently executing a script
or
+ SVG script
element (e.g., because the running script is an event
handler, or a timeout), or if the currently executing script
or SVG
script
element represents a module script.
password
hyperlink.password
Returns the hyperlink's URL's password.
+Can be set, to change the URL's password.
host
hyperlink.host
Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
+Can be set, to change the URL's host and port.
hostname
hyperlink.hostname
Returns the hyperlink's URL's host.
+Can be set, to change the URL's host.
port
hyperlink.port
Returns the hyperlink's URL's port.
+Can be set, to change the URL's port.
pathname
hyperlink.pathname
Returns the hyperlink's URL's path.
+Can be set, to change the URL's path.
search
hyperlink.search
Returns the hyperlink's URL's query (includes leading "?
" if
non-empty).
Can be set, to change the URL's query (ignores leading "?
").
hash
hyperlink.hash
Returns the hyperlink's URL's fragment (includes leading "#
" if
non-empty).
Can be set, to change the URL's fragment (ignores leading "#
").
width
[ = value ]height
[ = value ]image.width [ = value ]
image.height [ = value ]
These attributes return the actual rendered dimensions of the - image, or zero if the dimensions are not known.
+These attributes return the actual rendered dimensions of the image, or zero if the + dimensions are not known.
-They can be set, to change the corresponding content - attributes.
+They can be set, to change the corresponding content attributes.
naturalWidth
naturalHeight
image.naturalWidth
image.naturalHeight
These attributes return the intrinsic dimensions of the image, - or zero if the dimensions are not known.
+These attributes return the intrinsic dimensions of the image, or zero if the dimensions are + not known.
complete
image.complete
Returns true if the image has been completely downloaded or if - no image is specified; otherwise, returns false.
+Returns true if the image has been completely downloaded or if no image is specified; + otherwise, returns false.
currentSrc
image.currentSrc
Returns the image's absolute URL.
-Returns the image's absolute URL.
decode
()image.decode()
This method causes the user agent to decode the
@@ -27036,14 +27036,13 @@ interface HTMLImageElement : HTMLElement {
DOMException
if the image cannot be decoded.
Image
( [ width [, height ] ] )image = new Image([ width [, height ] ])
Returns a new img
element, with the width
and height
attributes set to the values
- passed in the relevant arguments, if applicable.
Returns a new img
element, with the width
+ and height
attributes set to the values passed in the
+ relevant arguments, if applicable.
videoWidth
videoHeight
video.videoWidth
video.videoHeight
These attributes return the intrinsic dimensions of the video, - or zero if the dimensions are not known.
+These attributes return the intrinsic dimensions of the video, or zero if the dimensions are + not known.
Audio
( [ url ] )audio = new Audio([ url ])
Returns a new audio
element, with the src
@@ -33087,35 +33084,27 @@ interface HTMLTrackElement : HTMLElement {
data-x="attr-track-default">default attribute is specified.
readyState
track.readyState
Returns the text track readiness state, - represented by a number from the following list:
+Returns the text track readiness state, represented by a number from the + following list:
NONE
(0)The text track not loaded state.
-LOADING
(1)The text track loading state.
-LOADED
(2)The text track loaded state.
-ERROR
(3)The text track failed to load state.
-track.NONE (0)
The text track not loaded state.
track.LOADING (1)
The text track loading state.
track.LOADED (2)
The text track loaded state.
track.ERROR (3)
The text track failed to load state.
track
track.track
Returns the TextTrack
object corresponding to the text track of the track
element.
Returns the TextTrack
object corresponding to the text track of the
+ track
element.
error
media.error
Returns a MediaError
object representing the current error state of the
@@ -33351,14 +33339,11 @@ interface MediaError {
};
media.error.code
error
. code
Returns the current error's error code, from the list below.
-Returns the current error's error code, from the list below.
error
. message
media.error.message
Returns a specific informative diagnostic message about the error condition encountered. The @@ -33475,14 +33460,14 @@ interface MediaError {
srcObject
[ = source ]media.srcObject [ = source ]
Allows the media element to be assigned a media provider object.
+Allows the media element to be assigned a media provider + object.
currentSrc
media.currentSrc
Returns the URL of the current media resource, if any.
@@ -33546,8 +33531,7 @@ interface MediaError { set of strings -->canPlayType
(type)media.canPlayType(type)
Returns the empty string (a negative response), "maybe", or "probably" based on how confident @@ -33614,8 +33598,7 @@ interface MediaError {
networkState
media.networkState
Returns the current state of network activity for the element, from the codes in the list @@ -33668,8 +33651,7 @@ interface MediaError {
load
()media.load()
Causes the element to reset and start selecting and loading a new media resource @@ -34764,8 +34746,7 @@ interface MediaError { -->
buffered
media.buffered
Returns a Returns the length of the media resource, in seconds, assuming that the start of
@@ -34814,7 +34794,7 @@ interface MediaError {
Returns Infinity for unbounded streams. Returns the official playback position, in seconds. Returns a value that expresses the current state of the element with respect to rendering the
@@ -35340,20 +35319,15 @@ interface MediaError {
Returns true if playback is paused; false otherwise. Returns true if playback is paused; false otherwise. Returns true if playback has reached the end of the media resource. Returns true if playback has reached the end of the media resource. Returns the default rate of playback, for when the user is not fast-forwarding or reversing
@@ -35366,7 +35340,7 @@ interface MediaError {
will be returned to the default rate of playback. Returns the current rate playback, where 1.0 is normal speed. Can be set, to change the rate of playback. Returns true if pitch-preserving algorithms are used when the Returns a Sets the Sets the Returns true if the user agent is currently seeking. Returns true if the user agent is currently seeking. Returns a Seeks to near the given time as fast as possible, trading precision for
- speed. (To seek to a precise time, use the Seeks to near the given time as fast as possible, trading precision for speed. (To
+ seek to a precise time, use the This does nothing if the media resource has not been loaded.TimeRanges
object that represents the ranges of the media
@@ -34802,8 +34783,7 @@ interface MediaError {
Offsets into the media resource
-
-
duration
media.duration
currentTime
[ = value ]media.currentTime [ = value ]
Ready states
-
-
readyState
media.readyState
Playing the media resource
+
media.paused
paused
ended
media.ended
defaultPlaybackRate
[ = value ]media.defaultPlaybackRate [ = value ]
playbackRate
[ = value ]media.playbackRate [ = value ]
preservesPitch
media.preservesPitch
MediaError {
aesthetic and performance reasons.
played
media.played
TimeRanges
object that represents the ranges of the media
resource that the user agent has played.play
()media.play()
paused
attribute to false, loading the
@@ -35400,7 +35374,7 @@ interface MediaError {
restart it from the start.pause
()media.pause()
paused
attribute to true, loading the
@@ -36119,26 +36093,23 @@ interface MediaError {
Seeking
+
media.seeking
seeking
seekable
media.seekable
TimeRanges
object that represents the ranges of the media
resource to which it is possible for the user agent to seek.fastSeek
( time )media.fastSeek(time)
currentTime
attribute.)currentTime
+ attribute.)
audioTracks
media.audioTracks
Returns an AudioTrackList
object representing the audio tracks available in the
media resource.
videoTracks
media.videoTracks
Returns a VideoTrackList
object representing the video tracks available in the
@@ -36390,30 +36360,26 @@ interface VideoTrack {
};
media.audioTracks.length
media.videoTracks.length
audioTracks
. length
videoTracks
. length
Returns the number of tracks in the list.
-Returns the number of tracks in the list.
audioTracks
[index]videoTracks
[index]audioTrack = media.audioTracks[index]
videoTrack = media.videoTracks[index]
Returns the specified AudioTrack
or VideoTrack
object.
Returns the specified AudioTrack
or VideoTrack
object.
audioTracks
. getTrackById
( id )videoTracks
. getTrackById
( id )audioTrack = media.audioTracks.getTrackById(id)
videoTrack = media.videoTracks.getTrackById(id)
Returns the AudioTrack
or VideoTrack
object with the given identifier, or null if no track has that identifier.
Returns the AudioTrack
or VideoTrack
object with the given
+ identifier, or null if no track has that identifier.
id
id
audioTrack.id
videoTrack.id
Returns the ID of the given track. This is the ID that can be used with a VideoTrack {
syntax, and that can be used with the getTrackById()
method.
kind
kind
audioTrack.kind
videoTrack.kind
Returns the category the given track falls into. The possible track categories are given below.
-Returns the category the given track falls into. The possible track categories are given below.
label
label
audioTrack.label
videoTrack.label
Returns the label of the given track, if known, or the empty string otherwise.
-Returns the label of the given track, if known, or the empty string otherwise.
language
language
audioTrack.language
videoTrack.language
Returns the language of the given track, if known, or the empty string otherwise.
-Returns the language of the given track, if known, or the empty string otherwise.
enabled
[ = value ]audioTrack.enabled [ = value ]
Returns true if the given track is active, and false otherwise.
@@ -36451,13 +36412,12 @@ interface VideoTrack { enabled simultaneously, they are mixed.videoTracks
. selectedIndex
media.videoTracks.selectedIndex
Returns the index of the currently selected track, if any, or −1 otherwise.
-Returns the index of the currently selected track, if any, or −1 + otherwise.
selected
[ = value ]videoTrack.selected [ = value ]
Returns true if the given track is active, and false otherwise.
@@ -37618,21 +37578,25 @@ interface TextTrackList : EventTarget { };textTracks
. length
media.textTracks.length
Returns the number of text tracks associated with the media element (e.g. from track
elements). This is the number of text tracks in the media element's list of text tracks.
Returns the number of text tracks associated with the
+ media element (e.g. from track
elements). This is the number of text tracks in the media element's list of text
+ tracks.
textTracks[
n ]
media.textTracks[ n ]
Returns the TextTrack
object representing the nth text track in the media element's list of text tracks.
Returns the TextTrack
object representing the nth text
+ track in the media element's list of text tracks.
textTracks
. getTrackById
( id )textTrack = media.textTracks.getTrackById(id)
Returns the TextTrack
object with the given identifier, or null if no track has that identifier.
Returns the TextTrack
object with the given identifier, or null if no track has
+ that identifier.
addTextTrack
( kind [, label [, language ] ] )textTrack = media.addTextTrack(kind [, label [, language ] ])
Creates and returns a new TextTrack
object, which is also added to the
media element's list of text tracks.
kind
Returns the text track kind string.
-textTrack.kind
Returns the text track kind string.
label
textTrack.label
Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).
language
Returns the text track language string.
-textTrack.language
Returns the text track language string.
id
textTrack.id
Returns the ID of the given track.
@@ -37743,55 +37702,46 @@ interface TextTrack : EventTarget { ID of thetrack
element.
inBandMetadataTrackDispatchType
Returns the text track in-band metadata track dispatch type string.
-textTrack.inBandMetadataTrackDispatchType
Returns the text track in-band metadata track dispatch type string.
mode
[ = value ]textTrack.mode [ = value ]
Returns the text track mode, represented by a string from the following list:
disabled
"The text track disabled mode.
-The text track disabled mode.
hidden
"The text track hidden mode.
-The text track hidden mode.
showing
"The text track showing mode.
-The text track showing mode.
Can be set, to change the mode.
cues
textTrack.cues
Returns the text track list of cues, as a TextTrackCueList
object.
Returns the text track list of cues, as a TextTrackCueList
+ object.
activeCues
textTrack.activeCues
Returns the text track cues from the text track
list of cues that are currently active (i.e. that start before the current playback
position and end after it), as a TextTrackCueList
object.
addCue
( cue )Adds the given cue to textTrack's text track list of cues.
-textTrack.addCue(cue)
Adds the given cue to textTrack's text track list of + cues.
removeCue
( cue )Removes the given cue from textTrack's text track list of cues.
-textTrack.removeCue(cue)
Removes the given cue from textTrack's text track list of + cues.
cuelist.length
Returns the number of cues in the list.
length
cuelist[index]
Returns the number of cues in the list.
+Returns the text track cue with index index in the list. The cues are + sorted in text track cue order.
cuelist.getCueById(id)
Returns the text track cue with index index in the list. The cues are sorted in text track cue order.
-Returns the first text track cue (in text track cue order) with + text track cue identifier id.
-getCueById
( id )Returns the first text track cue (in text track cue order) with text track cue identifier id.
-Returns null if none of the cues have the given identifier or if the argument is the empty string.
+Returns null if none of the cues have the given identifier or if the argument is the empty + string.
cue.track
Returns the TextTrack
object to which this
- text track cue belongs, if any, or null
- otherwise.
Returns the TextTrack
object to which this text track cue belongs,
+ if any, or null otherwise.
cue.id [ = value ]
Returns the text track cue identifier.
+Can be set.
cue.startTime [ = value ]
Returns the text track cue start time, in seconds.
+Can be set.
cue.endTime [ = value ]
Returns the text track cue end time, in seconds.
+Returns positive Infinity for an unbounded text track cue.
+Can be set.
cue.pauseOnExit [ = value ]
Returns true if the text track cue pause-on-exit flag is set, false otherwise.
+Returns true if the text track cue pause-on-exit flag is set, false + otherwise.
+Can be set.
volume
[ = value ]media.volume [ = value ]
Returns the current playback volume, as a number in the range 0.0 to 1.0, where 0.0 is the @@ -38362,7 +38316,7 @@ red:89 value is not in the range 0.0 .. 1.0.
muted
[ = value ]media.muted [ = value ]
Returns true if audio is muted, overriding the volume
@@ -38472,14 +38426,11 @@ interface TimeRanges {
};
media.length
length
Returns the number of ranges in the object.
Returns the number of ranges in the object.
-start
(index)time = media.start(index)
Returns the time for the start of the range with the given index.
@@ -38488,7 +38439,7 @@ interface TimeRanges { is out of range.end
(index)time = media.end(index)
Returns the time for the end of the range with the given index.
@@ -38563,8 +38514,7 @@ dictionary TrackEventInit : EventInit { };track
event.track
Returns the track object (TextTrack
, AudioTrack
, or
@@ -39210,8 +39160,7 @@ interface HTMLMapElement : HTMLElement {
attributes must have the same value.
areas
map.areas
Returns an HTMLCollection
of the area
elements in the
@@ -39830,9 +39779,9 @@ interface HTMLAreaElement : HTMLElement {
getSVGDocument
()getSVGDocument
()getSVGDocument
()doc = iframe.getSVGDocument()
doc = embed.getSVGDocument()
doc = object.getSVGDocument()
Returns the Document
object, in the case of iframe
,
embed
, or object
elements being used to embed SVG.
caption
[ = value ]table.caption [ = value ]
Returns the table's caption
element.
Can be set, to replace the caption
element.
createCaption
()Ensures the table has a caption
element, and returns it.
caption = table.createCaption()
Ensures the table has a caption
element, and returns it.
deleteCaption
()Ensures the table does not have a caption
element.
table.deleteCaption()
Ensures the table does not have a caption
element.
tHead
[ = value ]table.tHead [ = value ]
Returns the table's thead
element.
DOMException
.
createTHead
()Ensures the table has a thead
element, and returns it.
thead = table.createTHead()
Ensures the table has a thead
element, and returns it.
deleteTHead
()Ensures the table does not have a thead
element.
table.deleteTHead()
Ensures the table does not have a thead
element.
tFoot
[ = value ]table.tFoot [ = value ]
Returns the table's tfoot
element.
DOMException
.
createTFoot
()Ensures the table has a tfoot
element, and returns it.
tfoot = table.createTFoot()
Ensures the table has a tfoot
element, and returns it.
deleteTFoot
()Ensures the table does not have a tfoot
element.
table.deleteTFoot()
Ensures the table does not have a tfoot
element.
tBodies
Returns an HTMLCollection
of the tbody
elements of the table.
table.tBodies
Returns an HTMLCollection
of the tbody
elements of the
+ table.
createTBody
()Creates a tbody
element, inserts it into the table, and returns it.
tbody = table.createTBody()
Creates a tbody
element, inserts it into the table, and returns it.
rows
Returns an HTMLCollection
of the tr
elements of the table.
table.rows
Returns an HTMLCollection
of the tr
elements of the
+ table.
insertRow
( [ index ] )tr = table.insertRow([ index ])
Creates a tr
element, along with a tbody
if required, inserts them
into the table at the position given by the argument, and returns the tr
.
IndexSizeError
" DOMException
.
deleteRow
(index)table.deleteRow(index)
Removes the tr
element with the given position in the table.
rows
tbody.rows
Returns an HTMLCollection
of the tr
elements of the table
section.
insertRow
( [ index ] )tr = tbody.insertRow([ index ])
Creates a tr
element, inserts it into the table section at the position given by
the argument, and returns the tr
.
IndexSizeError
" DOMException
.
deleteRow
(index)tbody.deleteRow(index)
Removes the tr
element with the given position in the table section.
rowIndex
tr.rowIndex
Returns the position of the row in the table's rows
@@ -41104,7 +41034,7 @@ interface HTMLTableRowElement : HTMLElement {
Returns −1 if the element isn't in a table.
sectionRowIndex
tr.sectionRowIndex
Returns the position of the row in the table section's Returns −1 if the element isn't in a table section.HTMLTableRowElement : HTMLElement {
cells
tr.cells
Returns an HTMLCollection
of the td
and th
elements of
the row.
insertCell
( [ index ] )cell = tr.insertCell([ index ])
Creates a td
element, inserts it into the table row at the position given by the
@@ -41132,7 +41062,7 @@ interface HTMLTableRowElement : HTMLElement {
"IndexSizeError
" DOMException
.
deleteCell
(index)tr.deleteCell(index)
Removes the td
or th
element with the given position in the
row.
cellIndex
cell.cellIndex
Returns the position of the cell in the row's cells
list.
- This does not necessarily correspond to the x-position of the cell in the
- table, since earlier cells might cover multiple rows or columns.
Returns −1 if the element isn't in a row.
elements
form.elements
Returns an HTMLFormControlsCollection
of the form controls in the form (excluding image
- buttons for historical reasons).
Returns an HTMLFormControlsCollection
of the form controls in the form
+ (excluding image buttons for historical reasons).
length
form.length
Returns the number of form controls in the form (excluding image buttons for historical reasons).
form[index]
Returns the indexth element in the form (excluding image buttons for - historical reasons).
+Returns the indexth element in the form (excluding image buttons for historical + reasons).
form[name]
Returns the form control (or, if there are several, a RadioNodeList
of the form
@@ -43404,7 +43332,7 @@ interface HTMLFormElement : HTMLElement {
those elements is returned.
submit
()form.submit()
Submits the form, bypassing interactive @@ -43412,7 +43340,7 @@ interface HTMLFormElement : HTMLElement { event.
requestSubmit
( [ submitter ] )form.requestSubmit([ submitter ])
Requests to submit the form. Unlike submit()
, this
@@ -43431,22 +43359,19 @@ interface HTMLFormElement : HTMLElement {
normally, buttons are excluded.
reset
()form.reset()
Resets the form.
-Resets the form.
checkValidity
()form.checkValidity()
Returns true if the form's controls are all valid; otherwise, returns false.
-Returns true if the form's controls are all valid; otherwise, returns false.
reportValidity
()form.reportValidity()
Returns true if the form's controls are all valid; otherwise, returns false and informs the user.
+Returns true if the form's controls are all valid; otherwise, returns false and informs the + user.
label.control
control
Returns the form control that is associated with this element.
-Returns the form control that is associated with this element.
form
label.form
Returns the form owner of the form control that is associated with this @@ -43869,8 +43791,7 @@ interface HTMLLabelElement : HTMLElement {
labels
control.labels
Returns a When set, overrides the rendering of checkbox
@@ -48639,9 +48559,8 @@ ldh-str = < as defined in
-
- These attributes return the actual rendered dimensions of the image, or zero if the
@@ -49793,8 +49712,7 @@ You cannot submit this form when the field is incorrect.
Returns the current value of the form control. Returns the current checkedness of the form
@@ -49814,7 +49732,7 @@ You cannot submit this form when the field is incorrect.
Can be set, to change the checkedness. Returns a Returns a Returns a number representing the form control's value,
- if applicable; otherwise, returns NaN. Returns a number representing the form control's value, if applicable; otherwise, returns NaN. Can be set, to change the value. Setting this to NaN will set the underlying value to the
empty string.NodeList
of all the label
elements that the form control
@@ -47805,8 +47726,7 @@ ldh-str = < as defined in
-
- indeterminate
[ = value ]input.indeterminate [ = value ]
width
[ = value ]height
[ = value ]image.width [ = value ]
image.height [ = value ]
Common
input
element APIs
-
-
value
[ = value ]input.value [ = value ]
checked
[ = value ]input.checked [ = value ]
files
[ = files ]input.files [ = files ]
FileList
object listing the
instance, as the result of a drag-and-drop operation.valueAsDate
[ = value ]input.valueAsDate [ = value ]
Date
object representing the form control's
control isn't date- or time-based.valueAsNumber
[ = value ]input.valueAsNumber [ = value ]
stepUp
( [ n ] )stepDown
( [ n ] )input.stepUp([ n ])
input.stepDown([ n ])
Changes the form control's value by the value given in
- the step
attribute, multiplied by n.
- The default value for n is 1.
step
attribute, multiplied by n. The
+ default value for n is 1.
Throws "InvalidStateError
" DOMException
if the control
is neither date- or time-based nor numeric, or if the step
attribute's value is "any
".
list
input.list
Returns the datalist
element indicated by the list
attribute.
Returns the datalist
element indicated by the list
attribute.
type
select.type
Returns "select-multiple
" if the element has a HTMLSelectElement : HTMLElement {
otherwise.
options
select.options
Returns an HTMLOptionsCollection
of the list of options.
Returns an HTMLOptionsCollection
of the list of options.
length
[ = value ]select.length [ = value ]
Returns the number of elements in the list of options.
@@ -50769,15 +50682,15 @@ interface HTMLSelectElement : HTMLElement {select
.
item
(index)element = select.item(index)
select[index]
Returns the item with index index from the list of options. The items are sorted in tree order.
namedItem
(name)element = select.namedItem(name)
Returns the first item with ID or Returns null if no element with that ID could be found.name
name from the HTMLSelectElement : HTMLElement {
add
(element [, before ] )select.add(element [, before ])
Inserts element before the node given by before.
-The before argument can be a number, in which case element is inserted before the item with that number, or an element from the - list of options, in which case element is inserted before that element.
+The before argument can be a number, in which case element is inserted + before the item with that number, or an element from the list of options, in which case element is + inserted before that element.
-If before is omitted, null, or a number out of range, then element will be added at the end of the list.
+If before is omitted, null, or a number out of range, then element will + be added at the end of the list.
-This method will throw a "HierarchyRequestError
" DOMException
if
- element is an ancestor of the element into which it is to be inserted.
This method will throw a "HierarchyRequestError
"
+ DOMException
if element is an ancestor of the element into which it is
+ to be inserted.
selectedOptions
select.selectedOptions
Returns an HTMLCollection
of the list
of options that are selected.
selectedIndex
[ = value ]select.selectedIndex [ = value ]
Returns the index of the first selected item, if any, or −1 if there is no selected @@ -50815,7 +50732,7 @@ interface HTMLSelectElement : HTMLElement {
Can be set, to change the selection.
value
[ = value ]select.value [ = value ]
Returns the value of the first selected item, if @@ -51110,8 +51027,7 @@ interface HTMLDataListElement : HTMLElement { data-x="concept-option-label">label.
options
datalist.options
Returns an HTMLCollection
of the option
elements of the
@@ -51363,8 +51279,7 @@ interface HTMLOptionElement : HTMLElement {
selected
option.selected
Returns true if the element is selected, and false otherwise.
@@ -51372,26 +51287,23 @@ interface HTMLOptionElement : HTMLElement {Can be set, to override the current state of the element.
index
option.index
Returns the index of the element in its select
element's options
list.
Returns the index of the element in its select
element's options
list.
form
option.form
Returns the element's form
element, if any, or null otherwise.
Returns the element's form
element, if any, or null otherwise.
text
option.text
Same as textContent
, except that spaces are collapsed and script
elements are skipped.
Same as textContent
, except that spaces are collapsed and script
+ elements are skipped.
Option
( [ text [, value [, defaultSelected [, selected ] ] ] ] )option = new Option([ text [, value [, defaultSelected [, selected ] ] ] ])
Returns a new option
element.
The defaultSelected argument sets the selected
attribute.
The selected argument sets whether or not the element is selected. If it - is omitted, even if the defaultSelected argument is true, the element is not +
The selected argument sets whether or not the element is selected. If it is + omitted, even if the defaultSelected argument is true, the element is not selected.
textarea.type
type
Returns the string "textarea
".
Returns the string "textarea
".
value
textarea.value
Returns the current value of the element.
@@ -52104,24 +52013,22 @@ interface HTMLOutputElement : HTMLElement {value
[ = value ]output.value [ = value ]
Returns the element's current value.
Can be set, to change the value.
defaultValue
[ = value ]output.defaultValue [ = value ]
Returns the element's current default value.
Can be set, to change the default value.
type
Returns the string "output
".
output.type
Returns the string "output
".
position
progress.position
For a determinate progress bar (one with known current and maximum values), returns the @@ -52838,18 +52745,13 @@ interface HTMLFieldSetElement : HTMLElement { data-x="attr-fe-name">name attribute represents the element's name.
fieldset.type
type
Returns the string "fieldset".
-Returns the string "fieldset".
elements
fieldset.elements
Returns an HTMLCollection
of the form controls in the element.
Returns an HTMLCollection
of the form controls in the element.
legend.form
form
Returns the element's form
element, if any, or null otherwise.
Returns the element's form
element, if any, or null otherwise.
form
element.form
Returns the element's form owner.
@@ -55400,14 +55298,11 @@ MIT Room 32-G524element.select()
select
()Selects everything in the text control.
Selects everything in the text control.
-selectionStart
[ = value ]element.selectionStart [ = value ]
Returns the offset to the start of the selection.
@@ -55415,7 +55310,7 @@ MIT Room 32-G524Can be set, to change the start of the selection.
selectionEnd
[ = value ]element.selectionEnd [ = value ]
Returns the offset to the end of the selection.
@@ -55423,30 +55318,32 @@ MIT Room 32-G524Can be set, to change the end of the selection.
selectionDirection
[ = value ]element.selectionDirection [ = value ]
Returns the current direction of the selection.
Can be set, to change the direction of the selection.
-The possible values are "forward
", "backward
", and "none
".
The possible values are "forward
", "backward
",
+ and "none
".
setSelectionRange
(start, end [, direction] )element.setSelectionRange(start, end [, direction])
Changes the selection to cover the given substring in the given direction. If the direction is omitted, it will be reset to be the platform default (none or forward).
setRangeText
(replacement [, start, end [, selectionMode ] ] )element.setRangeText(replacement [, start, end [, selectionMode ] ])
Replaces a range of text with the new text. If the start and end arguments are not provided, the range is assumed to be the selection.
+Replaces a range of text with the new text. If the start and end + arguments are not provided, the range is assumed to be the selection.
-The final argument determines how the selection will be set after the text has been - replaced. The possible values are:
+The final argument determines how the selection will be set after the text has been replaced. + The possible values are:
willValidate
element.willValidate
Returns true if the element will be validated when the form is submitted; false otherwise.
setCustomValidity
(message)element.setCustomValidity(message)
Sets a custom error, so that the element would fail to validate. The given message is the @@ -56200,83 +56096,71 @@ control.setSelectionRange(oldStart + prefix.length, oldEnd + prefix.length, oldD
If the argument is the empty string, clears the custom error.
validity
. valueMissing
element.validity.valueMissing
Returns true if the element has no value but is a required field; false otherwise.
-Returns true if the element has no value but is a required field; false + otherwise.
validity
. typeMismatch
element.validity.typeMismatch
Returns true if the element's value is not in the correct syntax; false otherwise.
-Returns true if the element's value is not in the correct syntax; false + otherwise.
validity
. patternMismatch
element.validity.patternMismatch
Returns true if the element's value doesn't match the provided pattern; false otherwise.
-Returns true if the element's value doesn't match the provided pattern; false + otherwise.
validity
. tooLong
element.validity.tooLong
Returns true if the element's value is longer than the provided maximum length; false otherwise.
+Returns true if the element's value is longer than the provided maximum length; false + otherwise.
validity
. tooShort
element.validity.tooShort
Returns true if the element's value, if it is not the empty string, is shorter than the provided minimum length; false otherwise.
validity
. rangeUnderflow
element.validity.rangeUnderflow
Returns true if the element's value is lower than the provided minimum; false otherwise.
-Returns true if the element's value is lower than the provided minimum; false + otherwise.
validity
. rangeOverflow
element.validity.rangeOverflow
Returns true if the element's value is higher than the provided maximum; false otherwise.
-Returns true if the element's value is higher than the provided maximum; false + otherwise.
validity
. stepMismatch
element.validity.stepMismatch
Returns true if the element's value doesn't fit the rules given by the step
attribute; false otherwise.
Returns true if the element's value doesn't fit the rules given by the step
attribute; false otherwise.
validity
. badInput
element.validity.badInput
Returns true if the user has provided input in the user interface that the user agent is unable to convert to a value; false otherwise.
validity
. customError
element.validity.customError
Returns true if the element has a custom error; false otherwise.
-Returns true if the element has a custom error; false otherwise.
validity
. valid
element.validity.valid
Returns true if the element's value has no validity problems; false otherwise.
-Returns true if the element's value has no validity problems; false otherwise.
checkValidity
()valid = element.checkValidity()
Returns true if the element's value has no validity problems; false otherwise. Fires an invalid
event at the element in the latter case.
Returns true if the element's value has no validity problems; false otherwise. Fires an
+ invalid
event at the element in the latter case.
reportValidity
()valid = element.reportValidity()
Returns true if the element's value has no validity problems; otherwise, returns false, fires @@ -56284,7 +56168,7 @@ control.setSelectionRange(oldStart + prefix.length, oldEnd + prefix.length, oldD canceled) reports the problem to the user.
validationMessage
element.validationMessage
Returns the error message that would be shown to the user if the element was to be checked @@ -57438,10 +57322,10 @@ dictionary SubmitEventInit : EventInit { };
submitter
event.submitter
Returns the element representing the submit - button that triggered the form submission, or null if the submission was - not triggered by a button.
formData
event.formData
Returns a FormData
object representing names and values of elements associated
- to the target form
. Operations on the FormData
object will affect
- form data to be submitted.
form
. Operations on the FormData
object will affect form
+ data to be submitted.
dialog.show()
show
()Displays the dialog
element.
Displays the dialog
element.
showModal
()dialog.showModal()
Displays the dialog
element and makes it the top-most modal dialog.
This method honors the autofocus
attribute.
close
( [ result ] )dialog.close([ result ])
Closes the dialog
element.
The argument, if provided, provides a return value.
returnValue
[ = result ]dialog.returnValue [ = result ]
Returns the dialog
's return value.
text
[ = value ]script.text [ = value ]
Returns the child text content of the element.
@@ -59910,12 +59789,9 @@ interface HTMLTemplateElement : HTMLElement {template.content
content
Returns the template contents (a DocumentFragment
).
Returns the template contents (a DocumentFragment
).
name
slot.name
assignedNodes
()slot.assignedNodes()
assignedNodes
({ flatten: true })slot.assignedNodes({ flatten: true })
slot
elements encountered therein, recursively,
until there are no slot
elements left.assignedElements
()slot.assignedElements()
assignedElements
({ flatten: true })slot.assignedElements({ flatten: true })
assignedNodes({ flatten: true
})
, limited to elements.assign
(...nodes)Set slot's manually assigned nodes to the given nodes.
-slot.assign(...nodes)
Sets slot's manually assigned nodes to the given + nodes.
The name
IDL
@@ -60495,7 +60370,7 @@ callback BlobCallback = undefined (Blob? blob);
getContext
(contextId [, options ] )context = canvas.getContext(contextId [, options ])
Returns an object that exposes an API for drawing on the canvas. contextId
specifies the desired API: "2d
", "BlobCallback = undefined (Blob? blob);
toDataURL
( [ type [, quality ] ] )url = canvas.toDataURL([ type [, quality ] ])
Returns a data:
URL for the image in the
@@ -60682,7 +60556,7 @@ callback BlobCallback = undefined (Blob? blob);
which case the result might simply be "data:,
".)
toBlob
(callback [, type [, quality ] ] )canvas.toBlob(callback [, type [, quality ] ])
Creates a Blob
object representing a file containing the image in the canvas,
@@ -60695,16 +60569,15 @@ callback BlobCallback = undefined (Blob? blob);
indicating the desired quality level for the resulting image.
transferControlToOffscreen
()canvas.transferControlToOffscreen()
Returns a newly created OffscreenCanvas
object that uses the
- canvas
element as a placeholder. Once the canvas
element has become a
- placeholder for an OffscreenCanvas
object, its intrinsic size can no longer be
- changed, and it cannot have a rendering context. The content of the placeholder canvas is
- updated by calling the commit()
method of the
- OffscreenCanvas
object's rendering context.
+
Returns a newly created OffscreenCanvas
object that uses the canvas
+ element as a placeholder. Once the canvas
element has become a placeholder for an
+ OffscreenCanvas
object, its intrinsic size can no longer be changed, and it cannot
+ have a rendering context. The content of the placeholder canvas is updated by calling the commit()
method of the OffscreenCanvas
+ object's rendering context.
getContext
('2d' [, { [ alpha
: true ] [, desynchronized
: false ] [, colorSpace
: 'srgb'] [, willReadFrequently
: false ]} ] )context = canvas.getContext('2d' [, { [ alpha: true ] [, desynchronized: false ] [, colorSpace: 'srgb'] [, willReadFrequently: false ]} ])
Returns a CanvasRenderingContext2D
object that is permanently bound to a
particular canvas
element.
canvas
Returns the canvas
element.
context.canvas
Returns the canvas
element.
getContextAttributes
()attributes = canvas.getContextAttributes()
Returns an object whose:
@@ -61140,17 +61011,15 @@ interface Path2D { channel, or false if it was forced to be opaque.desynchronized
- member is true if the context can be desynchronized.colorSpace
member is
a string indicating the context's color
space.willReadFrequently
- member is true if the context is marked for readback optimization.willReadFrequently
+ member is true if the context is marked for readback
+ optimization.canvas
element.
save
()context.save()
Pushes the current state onto the stack.
restore
()context.restore()
Pops the top state on the stack, restoring the context to that state.
reset
()context.reset()
Resets the rendering context, which includes the backing buffer, the drawing state stack, path, and styles.
lineWidth
[ = value ]lineWidth
[ = value ]context.lineWidth [ = value ]
styles.lineWidth [ = value ]
Returns the current line width.
@@ -61548,8 +61416,8 @@ context.fillRect(100,0,50,50); // only this square remains ignored.lineCap
[ = value ]lineCap
[ = value ]context.lineCap [ = value ]
styles.lineCap [ = value ]
Returns the current line cap style.
@@ -61560,8 +61428,8 @@ context.fillRect(100,0,50,50); // only this square remains data-x="">round", and "square
". Other values are ignored.
lineJoin
[ = value ]lineJoin
[ = value ]context.lineJoin [ = value ]
styles.lineJoin [ = value ]
Returns the current line join style.
@@ -61572,8 +61440,8 @@ context.fillRect(100,0,50,50); // only this square remains data-x="">round", and "miter
". Other values are ignored.
miterLimit
[ = value ]miterLimit
[ = value ]context.miterLimit [ = value ]
styles.miterLimit [ = value ]
Returns the current miter limit ratio.
@@ -61583,8 +61451,8 @@ context.fillRect(100,0,50,50); // only this square remainssetLineDash
(segments)setLineDash
(segments)context.setLineDash(segments)
styles.setLineDash(segments)
Sets the current line dash pattern (as used when stroking). The argument is a list of @@ -61592,8 +61460,8 @@ context.fillRect(100,0,50,50); // only this square remains
getLineDash
()getLineDash
()segments = context.getLineDash()
segments = styles.getLineDash()
Returns a copy of the current line dash pattern. The array returned will always have an even @@ -61601,8 +61469,8 @@ context.fillRect(100,0,50,50); // only this square remains
lineDashOffset
lineDashOffset
context.lineDashOffset
styles.lineDashOffset
Returns the phase offset (in the same units as the line dash pattern).
@@ -61959,8 +61827,8 @@ transform. ack Shaun Morris. -->font
[ = value ]font
[ = value ]context.font [ = value ]
styles.font [ = value ]
Returns the current font settings.
@@ -61971,8 +61839,8 @@ transform. ack Shaun Morris. --> element.textAlign
[ = value ]textAlign
[ = value ]context.textAlign [ = value ]
styles.textAlign [ = value ]
Returns the current text alignment settings.
@@ -61980,8 +61848,8 @@ transform. ack Shaun Morris. --> below. Other values are ignored. The default is "start
".
textBaseline
[ = value ]textBaseline
[ = value ]context.textBaseline [ = value ]
styles.textBaseline [ = value ]
Returns the current baseline alignment settings.
@@ -61990,8 +61858,8 @@ transform. ack Shaun Morris. --> data-x="dom-context-2d-textBaseline-alphabetic">alphabetic".direction
[ = value ]direction
[ = value ]context.direction [ = value ]
styles.direction [ = value ]
Returns the current directionality.
@@ -62000,8 +61868,8 @@ transform. ack Shaun Morris. --> data-x="dom-context-2d-direction-inherit">inherit".textLetterSpacing
[ = value ]textLetterSpacing
[ = value ]context.textLetterSpacing [ = value ]
styles.textLetterSpacing [ = value ]
Returns the current spacing between characters in the text.
@@ -62009,17 +61877,17 @@ transform. ack Shaun Morris. --> apart, while negative values brings them closer together. The default is 0.textWordSpacing
[ = value ]textWordSpacing
[ = value ]context.textWordSpacing [ = value ]
styles.textWordSpacing [ = value ]
Returns the current spacing between words in the text.
-Can be set, to change spacing between words. Postive values spreads words further - apart, while negative values brings them closer together. The default is 0.
+Can be set, to change spacing between words. Postive values spreads words further apart, + while negative values brings them closer together. The default is 0.
fontKerning
[ = value ]fontKerning
[ = value ]context.fontKerning [ = value ]
styles.fontKerning [ = value ]
Returns the current font kerning settings.
@@ -62028,8 +61896,8 @@ transform. ack Shaun Morris. --> data-x="dom-context-2d-fontKerning-auto">auto".fontStretch
[ = value ]fontStretch
[ = value ]context.fontStretch [ = value ]
styles.fontStretch [ = value ]
Returns the current font stretch settings.
@@ -62038,18 +61906,18 @@ transform. ack Shaun Morris. --> data-x="dom-context-2d-fontStretch-normal">normal".fontVariantCaps
[ = value ]fontVariantCaps
[ = value ]context.fontVariantCaps [ = value ]
styles.fontVariantCaps [ = value ]
Returns the current font variant caps settings.
-Can be set, to change the font variant caps. The possible values and their meanings are
- given below. Other values are ignored. The default is "Can be set, to change the font variant caps. The possible values and their meanings are given
+ below. Other values are ignored. The default is "
normal
".
textRendering
[ = value ]textRendering
[ = value ]context.textRendering [ = value ]
styles.textRendering [ = value ]
Returns the current text rendering settings.
@@ -62653,48 +62521,45 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]); data-x="concept-path">path must be initialized to zero subpaths.context.moveTo(x, y)
path.moveTo(x, y)
moveTo
(x, y)moveTo
(x, y)Creates a new subpath with the given point.
Creates a new subpath with the given point.
-closePath
()closePath
()context.closePath()
path.closePath()
Marks the current subpath as closed, and starts a new subpath with a point the same as the start and end of the newly closed subpath.
lineTo
(x, y)lineTo
(x, y)context.lineTo(x, y)
path.lineTo(x, y)
Adds the given point to the current subpath, connected to the previous one by a straight line.
quadraticCurveTo
(cpx, cpy, x, y)quadraticCurveTo
(cpx, cpy, x, y)context.quadraticCurveTo(cpx, cpy, x, y)
path.quadraticCurveTo(cpx, cpy, x, y)
Adds the given point to the current subpath, connected to the previous one by a quadratic - Bézier curve with the given control point.
+ Bézier curve with the given control point.bezierCurveTo
(cp1x, cp1y, cp2x, cp2y, x, y)bezierCurveTo
(cp1x, cp1y, cp2x, cp2y, x, y)context.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)
path.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)
Adds the given point to the current subpath, connected to the previous one by a cubic - Bézier curve with the given control points.
+Adds the given point to the current subpath, connected to the previous one by a cubic Bézier + curve with the given control points.
arcTo
(x1, y1, x2, y2, radius)arcTo
(x1, y1, x2, y2, radius)context.arcTo(x1, y1, x2, y2, radius)
path.arcTo(x1, y1, x2, y2, radius)
Adds an arc with the given control points and radius to the current subpath, connected to the @@ -62706,9 +62571,9 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);
arc
(x, y, radius, startAngle, endAngle [, counterclockwise ] )arc
(x, y, radius, startAngle, endAngle [, counterclockwise ] )context.arc(x, y, radius, startAngle, endAngle [, counterclockwise ])
path.arc(x, y, radius, startAngle, endAngle [, counterclockwise ])
Adds points to the subpath such that the arc described by the circumference of the circle @@ -62864,7 +62729,7 @@ try {
ellipse
(x, y, radiusX, radiusY, rotation, startAngle, endAngle [, counterclockwise] )ellipse
(x, y, radiusX, radiusY, rotation, startAngle, endAngle [, counterclockwise] )context.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle [, counterclockwise])
path.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle [, counterclockwise])
Adds points to the subpath such that the arc described by the circumference of the ellipse @@ -63031,15 +62896,13 @@ try { radius is negative.
rect
(x, y, w, h)rect
(x, y, w, h)context.rect(x, y, w, h)
path.rect(x, y, w, h)
Adds a new closed subpath to the path, representing the given rectangle.
-Adds a new closed subpath to the path, representing the given rectangle.
roundRect
(x, y, w, h, radii)roundRect
(x, y, w, h, radii)context.roundRect(x, y, w, h, radii)
path.roundRect(x, y, w, h, radii)
Adds a new closed subpath to the path representing the given rounded rectangle. @@ -63463,18 +63326,18 @@ try { add text to paths.
Path2D
()path = new Path2D()
Creates a new empty Path2D
object.
Path2D
(path)path = new Path2D(path)
When path is a Path2D
object, returns a copy.
When path is a string, creates the path described by the argument, interpreted as SVG path data. -
addPath
(path [, transform ] )path.addPath(path [, transform ])
Adds to the path the path given by the argument.
scale
(x, y)context.scale(x, y)
Changes the current transformation matrix to apply a scaling transformation - with the given characteristics.
+Changes the current transformation matrix to apply a scaling transformation with + the given characteristics.
rotate
(angle)context.rotate(angle)
Changes the current transformation matrix to apply a rotation transformation with the given characteristics. The angle is in radians.
translate
(x, y)context.translate(x, y)
Changes the current transformation matrix to apply a translation transformation with the given characteristics.
transform
(a, b, c, d, e, f)context.transform(a, b, c, d, e, f)
Changes the current transformation matrix to apply the matrix given by the arguments as described below.
getTransform
()matrix = context.getTransform()
Returns a copy of the current transformation matrix, as a newly created
DOMMatrix
object.
setTransform
(a, b, c, d, e, f)context.setTransform(a, b, c, d, e, f)
Changes the current transformation matrix to the matrix given by the arguments as described below.
setTransform
(transform)context.setTransform(transform)
Changes the current transformation matrix to the matrix represented by
the passed DOMMatrix2DInit
dictionary.
resetTransform
()context.resetTransform()
Changes the current transformation matrix to the identity matrix.
-Changes the current transformation matrix to the identity matrix.
fillStyle
[ = value ]context.fillStyle [ = value ]
Returns the current style used for filling shapes.
@@ -63925,7 +63784,7 @@ try {CanvasPattern
object. Invalid values are ignored.
strokeStyle
[ = value ]context.strokeStyle [ = value ]
Returns the current style used for stroking shapes.
@@ -64096,8 +63955,7 @@ try { there are no stops, the gradient is transparent black.addColorStop
(offset, color)gradient.addColorStop(offset, color)
Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset @@ -64108,26 +63966,24 @@ try { the color cannot be parsed.
createLinearGradient
(x0, y0, x1, y1)gradient = context.createLinearGradient(x0, y0, x1, y1)
Returns a CanvasGradient
object that represents a
- linear gradient that paints along the line given by the
- coordinates represented by the arguments.
Returns a CanvasGradient
object that represents a linear gradient that paints
+ along the line given by the coordinates represented by the arguments.
createRadialGradient
(x0, y0, r0, x1, y1, r1)gradient = context.createRadialGradient(x0, y0, r0, x1, y1, r1)
Returns a CanvasGradient
object that represents a
- radial gradient that paints along the cone given by the circles
- represented by the arguments.
Returns a CanvasGradient
object that represents a radial gradient that paints
+ along the cone given by the circles represented by the arguments.
If either of the radii are negative, throws an
- "IndexSizeError
" DOMException
exception.
If either of the radii are negative, throws an "IndexSizeError
"
+ DOMException
exception.
createConicGradient
(startAngle, x, y)gradient = context.createConicGradient(startAngle, x, y)
Returns a CanvasGradient
object that represents a conic gradient that paints
clockwise along the rotation around the center represented by the arguments.
createPattern
(image, repetition)pattern = context.createPattern(image, repetition)
Returns a CanvasPattern
object that uses the given image and repeats in the
@@ -64269,13 +64124,14 @@ try {
The allowed values for repetition are repeat
(both
directions), repeat-x
(horizontal only), repeat-y
- (vertical only), and no-repeat
(neither). If the repetition argument is empty, the value repeat
is used.
no-repeat
(neither). If the repetition
+ argument is empty, the value repeat
is used.
If the image isn't yet fully decoded, then nothing is drawn. If the image is a canvas with no
data, throws an "InvalidStateError
" DOMException
.
setTransform
(transform)pattern.setTransform(transform)
Sets the transformation matrix that will be used when rendering the pattern during a fill or @@ -64413,20 +64269,16 @@ try {
context.clearRect(x, y, w, h)
clearRect
(x, y, w, h)Clears all pixels on the bitmap in the given rectangle to transparent + black.
Clears all pixels on the bitmap in the given rectangle to transparent black.
-context.fillRect(x, y, w, h)
fillRect
(x, y, w, h)Paints the given rectangle onto the bitmap, using the current fill style.
Paints the given rectangle onto the bitmap, using the current fill style.
-strokeRect
(x, y, w, h)context.strokeRect(x, y, w, h)
Paints the box that outlines the given rectangle onto the bitmap, using the current stroke @@ -64501,37 +64353,35 @@ try {
fillText
(text, x, y [, maxWidth ] )strokeText
(text, x, y [, maxWidth ] )context.fillText(text, x, y [, maxWidth ])
context.strokeText(text, x, y [, maxWidth ])
Fills or strokes (respectively) the given text at the given position. If a maximum width is provided, the text will be scaled to fit that width if necessary.
measureText
(text)metrics = context.measureText(text)
Returns a TextMetrics
object with the metrics of the given text in the current
font.
width
actualBoundingBoxLeft
actualBoundingBoxRight
fontBoundingBoxAscent
fontBoundingBoxDescent
actualBoundingBoxAscent
actualBoundingBoxDescent
emHeightAscent
emHeightDescent
hangingBaseline
alphabeticBaseline
ideographicBaseline
metrics.width
metrics.actualBoundingBoxLeft
metrics.actualBoundingBoxRight
metrics.fontBoundingBoxAscent
metrics.fontBoundingBoxDescent
metrics.actualBoundingBoxAscent
metrics.actualBoundingBoxDescent
metrics.emHeightAscent
metrics.emHeightDescent
metrics.hangingBaseline
metrics.alphabeticBaseline
metrics.ideographicBaseline
Returns the measurement described below.
-Returns the measurement described below.
context.beginPath()
beginPath
()Resets the current default path.
Resets the current default path.
-fill
( [ fillRule ] )fill
(path [, fillRule ] )context.fill([ fillRule ])
context.fill(path [, fillRule ])
Fills the subpaths of the current default path or the given path with the @@ -64753,8 +64600,8 @@ try {
stroke
()stroke
(path)context.stroke()
context.stroke(path)
Strokes the subpaths of the current default path or the given path with the @@ -64762,8 +64609,8 @@ try {
clip
( [ fillRule ] )clip
(path [, fillRule ] )context.clip([ fillRule ])
context.clip(path [, fillRule ])
Further constrains the clipping region to the current default path or the given @@ -64771,8 +64618,8 @@ try {
isPointInPath
(x, y [, fillRule ] )isPointInPath
(path, x, y [, fillRule ] )context.isPointInPath(x, y [, fillRule ])
context.isPointInPath(path, x, y [, fillRule ])
Returns true if the given point is in the current default path or the given @@ -64780,8 +64627,8 @@ try {
isPointInStroke
(x, y)isPointInStroke
(path, x, y)context.isPointInStroke(x, y)
context.isPointInStroke(path, x, y)
Returns true if the given point would be in the region covered by the stroke of the @@ -64964,9 +64811,8 @@ try {
drawFocusIfNeeded
(element)drawFocusIfNeeded
(path, element)context.drawFocusIfNeeded(element)
context.drawFocusIfNeeded(path, element)
If the given element is focused, draws a focus ring around the current @@ -64974,8 +64820,8 @@ try {
scrollPathIntoView
()scrollPathIntoView
(path)context.scrollPathIntoView()
context.scrollPathIntoView(path)
Scrolls the current default path or the given path into view. This is especially @@ -65083,16 +64929,18 @@ try {
drawImage
(image, dx, dy)drawImage
(image, dx, dy, dw, dh)drawImage
(image, sx, sy, sw, sh, dx, dy, dw, dh)context.drawImage(image, dx, dy)
context.drawImage(image, dx, dy, dw, dh)
context.drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh)
Draws the given image onto the canvas. The arguments are - interpreted as follows:
+Draws the given image onto the canvas. The arguments are interpreted as follows:
- +If the image isn't yet fully decoded, then nothing is drawn. If the image is a canvas with no
data, throws an "InvalidStateError
" DOMException
.
ImageData
(sw, sh [, settings])imagedata = new ImageData(sw, sh [, settings])
Returns an ImageData
object with the given dimensions and the color space
- indicated by settings. All the pixels in the returned object are
- transparent black.
Throws an "IndexSizeError
" DOMException
if either of
the width or height arguments are zero.
ImageData
(data, sw [, sh [, settings ] ])imagedata = new ImageData(data, sw [, sh [, settings ] ])
Returns an ImageData
object using the data provided in the Uint8ClampedArray
argument, interpreted using the given
@@ -65234,11 +65082,11 @@ try {
data and dimensions can't be interpreted consistently, or if either dimension is zero.
createImageData
(imagedata)imagedata = context.createImageData(imagedata)
Returns an ImageData
object with the same dimensions and color space as the
argument. All the pixels in the returned object are transparent black.
createImageData
(sw, sh [, settings])imagedata = context.createImageData(sw, sh [, settings])
Returns an ImageData
object with the given dimensions. The color space of the
returned object is the color space of
@@ -65249,7 +65097,7 @@ try {
the width or height arguments are zero.
getImageData
(sx, sy, sw, sh [, settings])imagedata = context.getImageData(sx, sy, sw, sh [, settings])
Returns an ImageData
object containing the image data for the given rectangle of
the bitmap. The color space of the returned object is the
width
height
imagedata.width
imagedata.height
Returns the actual dimensions of the data in the ImageData
object, in
pixels.
data
imagedata.data
Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
colorSpace
imagedata.colorSpace
Returns the color space of the pixels.
putImageData
(imagedata, dx, dy [, dirtyX, dirtyY, dirtyWidth, dirtyHeight ])context.putImageData(imagedata, dx, dy [, dirtyX, dirtyY, dirtyWidth, dirtyHeight ])
Paints the data from the given ImageData
object onto the bitmap. If a dirty
rectangle is provided, only the pixels from that rectangle are painted.
globalAlpha
[ = value ]context.globalAlpha [ = value ]
Returns the current alpha value applied to rendering operations.
@@ -65739,7 +65586,7 @@ console.log(pixels.data[2]);globalCompositeOperation
[ = value ]context.globalCompositeOperation [ = value ]
Returns the current composition operation, from the values defined in Compositing and
@@ -65799,8 +65646,7 @@ console.log(pixels.data[2]);
Returns whether pattern fills and the Returns the current image-smoothing-quality preference.Image smoothing
-
-
imageSmoothingEnabled
[ = value ]context.imageSmoothingEnabled [ = value ]
Can be set, to change whether images are smoothed (true) or not (false).
imageSmoothingQuality
[ = value ]context.imageSmoothingQuality [ = value ]
shadowColor
[ = value ]context.shadowColor [ = value ]
Returns the current shadow color.
-Can be set, to change the shadow color. Values that cannot be parsed as CSS colors are ignored.
+Can be set, to change the shadow color. Values that cannot be parsed as CSS colors are + ignored.
shadowOffsetX
[ = value ]shadowOffsetY
[ = value ]context.shadowOffsetX [ = value ]
context.shadowOffsetY [ = value ]
Returns the current shadow offset.
@@ -65866,7 +65712,7 @@ console.log(pixels.data[2]);Can be set, to change the shadow offset. Values that are not finite numbers are ignored.
shadowBlur
[ = value ]context.shadowBlur [ = value ]
Returns the current level of blur applied to shadows.
@@ -65977,8 +65823,7 @@ console.log(pixels.data[2]); data-x="dom-context-2d-filter">filter attribute.filter
[ = value ]context.filter [ = value ]
Returns the current filter.
@@ -66266,10 +66111,7 @@ dictionary ImageBitmapRenderingContextSettings { };getContext
('bitmaprenderer' [, { [ alpha
: false ] } ] )context = canvas.getContext('bitmaprenderer' [, { [ alpha: false ] } ])
Returns an ImageBitmapRenderingContext
object that is permanently bound to a
@@ -66279,15 +66121,11 @@ dictionary ImageBitmapRenderingContextSettings {
provided and set to false, then the canvas is forced to always be opaque.
canvas
context.canvas
Returns the canvas
element that the context is bound to.
Returns the canvas
element that the context is bound to.
transferFromImageBitmap
(imageBitmap)context.transferFromImageBitmap(imageBitmap)
Transfers the underlying bitmap data
@@ -66295,12 +66133,11 @@ dictionary ImageBitmapRenderingContextSettings {
canvas
element to which context is bound.
transferFromImageBitmap
(null)context.transferFromImageBitmap(null)
Replaces contents of the canvas
element to which context
- is bound with a transparent black bitmap whose size corresponds to the Replaces contents of the
canvas
element to which context is bound
+ with a transparent black bitmap whose size corresponds to the width
and height
content attributes of the canvas
element.
OffscreenCanvas
(width,
- height)offscreenCanvas = new OffscreenCanvas(width,
+ height)
Returns a new OffscreenCanvas
object that is not linked to a placeholder canvas
element, and
- whose bitmap's size is determined by the width and height arguments.
canvas
element, and whose
+ bitmap's size is determined by the width and height arguments.
getContext
(contextId [,
- options ] )context = offscreenCanvas.getContext(contextId [,
+ options ])
Returns an object that exposes an API for drawing on the OffscreenCanvas
- object. contextId specifies the desired API: "Returns an object that exposes an API for drawing on the
OffscreenCanvas
object.
+ contextId specifies the desired API: "2d
", "bitmaprenderer
", "webgl
", "webgl2
", or "webgpu
". options is handled by
- that API.
This specification defines the "2d
" context below,
which is similar but distinct from the "2d
"
@@ -66753,11 +66588,11 @@ interface OffscreenCanvas : EventTarget {
width
[
- = value ]offscreenCanvas.width [
+ = value ]
height
[
- = value ]offscreenCanvas.height [
+ = value ]
These attributes return the dimensions of the OffscreenCanvas
object's OffscreenCanvas : EventTarget {
object's rendering context.
convertToBlob
( [options] )promise = offscreenCanvas.convertToBlob([options])
Returns a promise that will fulfill with a new Blob
object representing a file
containing the image in the OffscreenCanvas
object.
The argument, if provided, is a dictionary that controls the encoding options of the image
- file to be created. The type
- field specifies the file format and has a default value of "image/png
"; that type
- is also used if the requested type isn't supported. If the image format supports variable
- quality (such as "image/jpeg
"), then the quality
field is a number in the range 0.0
- to 1.0 inclusive indicating the desired quality level for the resulting image.
type
field specifies the
+ file format and has a default value of "image/png
"; that type is also used if the
+ requested type isn't supported. If the image format supports variable quality (such as
+ "image/jpeg
"), then the quality
+ field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the
+ resulting image.
transferToImageBitmap
()canvas.transferToImageBitmap()
Returns a newly created ImageBitmap
object with the image in the
@@ -66983,23 +66816,19 @@ interface OffscreenCanvasRenderingContext2D {
from which the OffscreenCanvasRenderingContext2D
object was created.
commit
()offscreenCanvasRenderingContext2D.commit()
Copies the rendering context's bitmap to
- the bitmap of the placeholder Copies the rendering context's bitmap to the
+ bitmap of the placeholder canvas
+ canvas
element of the associated OffscreenCanvas
object. The copy
operation is synchronous. Calling this method is not needed for the transfer, since it happens
automatically during the event loop execution.
canvas
offscreenCanvas = offscreenCanvasRenderingContext2D.canvas
Returns the associated OffscreenCanvas
object.
Returns the associated OffscreenCanvas
object.
customElements
. define
(name,
- constructor)window.customElements.define(name,
+ constructor)
customElements
. define
(name, constructor,
- { extends: baseLocalName })window.customElements.define(name, constructor,
+ { extends: baseLocalName })
DOMException
will be thrown upon trying to extend a custom element or
an unknown element.customElements
. get
(name)window.customElements.get(name)
customElements
. whenDefined
(name)window.customElements.whenDefined(name)
SyntaxError
" DOMException
if not
given a valid custom element name.customElements
. upgrade
(root)window.customElements.upgrade(root)
attachInternals()
element.attachInternals()
Returns an Returns the Returns the Sets both the state and
- submission value of internals's
- target element to value. Sets both the state and submission value of internals's target element to value. If value is null, the element won't participate in form submission. Sets the submission value of
internals's target element to
@@ -69207,12 +69028,12 @@ dictionary ValidityStateFlags {
If value is null, the element won't participate in form submission. Returns the form owner of internals's
- target element. Returns the form owner of internals's target element. Marks internals's target element as
suffering from the constraints indicated by the flags argument, and sets the element's
validation message to message. If anchor is specified, the user agent might
@@ -69221,40 +69042,39 @@ dictionary ValidityStateFlags {
interactively or Marks internals's target element as
satisfying its constraints. Returns true if internals's
- target element will be validated when the form is
- submitted; false otherwise. Returns true if internals's target
+ element will be validated when the form is submitted; false otherwise. Returns the Returns the Returns the error message that would be shown to the user if internals's
- target element was to be checked for validity. Returns the error message that would be shown to the user if internals's target element was to be checked for validity. Returns true if internals's target
element has no validity problems; false otherwise. Fires an Returns true if internals's target
element has no validity problems; otherwise, returns false, fires an Returns a Sets or retrieves the default ARIA role for internals's target element, which will be used unless the page author
overrides it using the Sets or retrieves various default ARIA states or property values for
internals's target element, which will be used
unless the page author overrides them using the Acts as if the element was clicked. Acts as if the element was clicked. Returns the deepest element in the document through which or to which key events are being
@@ -75573,22 +75388,21 @@ END:VCARD
Similarly, when the focused element is in a different node tree than
- documentOrShadowRoot, the element returned will be the
- host that's located in the same
- node tree as documentOrShadowRoot if documentOrShadowRoot
- is a shadow-including inclusive ancestor of the focused element, and null if
- not. Returns true if key events are being routed through or to the document; otherwise, returns
- false. Roughly speaking, this corresponds to the document, or a document nested inside this
- one, being focused. Moves the focus to the element. Moves the focus to the viewport. Use of this method is discouraged; if you want
@@ -75638,8 +75449,8 @@ END:VCARD
For example, to hide the outline from For example, to hide the outline from Returns " Returns true if the element is editable; otherwise, returns false. Returns true if the element is editable; otherwise, returns false. Returns " Returns true if the element is to have its spelling and grammar checked; otherwise, returns
@@ -76696,7 +76503,7 @@ body { display:none }
state. Returns the current autocapitalization state for the element, or an empty string if it hasn't
@@ -77346,15 +77153,14 @@ interface DataTransfer {
};
Creates a new Returns the kind of operation that is currently selected. If the kind of operation isn't one
@@ -77371,7 +77177,7 @@ interface DataTransfer {
Returns the kinds of operations that are to be allowed. Returns a Returns a Uses the given element to update the drag feedback, replacing any previously specified
@@ -77406,7 +77210,7 @@ interface DataTransfer {
Returns a frozen array listing the formats that were set in the Returns the specified data. If there is no such data, returns the empty string. Returns the specified data. If there is no such data, returns the empty string. Adds the specified data. Adds the specified data. Removes the data of the specified formats. Removes all data if the argument is omitted. Removes the data of the specified formats. Removes all data if the argument is
+ omitted. Returns a Returns a Returns the drag data item kind, one of: "string",
- "file". Returns the drag data item kind, one of: "string",
+ "file". Returns the drag data item type string. Returns the drag data item type string. Invokes the callback with the string data as the argument, if the drag data item
kind is text. Returns a Returns a Returns true if the element is draggable; otherwise, returns false. Can be set, to override the default and set the Can be set, to override the default and set the Returns the Returns the Returns the Can be set to null.ElementInternals
object targeting the custom element
element. Throws an exception if element is not a custom
@@ -69158,11 +68980,10 @@ dictionary ValidityStateFlags {
Shadow root access
-
shadowRoot
ShadowRoot
for internals's
- target element, if the
- target element is a shadow host, or null
- otherwise.internals.shadowRoot
ShadowRoot
for internals's target element, if the target
+ element is a shadow host, or null otherwise.Form-associated custom elements
-
setFormValue
(value)internals.setFormValue(value)
setFormValue
(value,
- state)internals.setFormValue(value,
+ state)
form
internals.form
setValidity
(flags,
- message [, anchor ])internals.setValidity(flags,
+ message [, anchor ])
reportValidity()
is
called.setValidity
({})internals.setValidity({})
willValidate
internals .
+ willValidate
validity
ValidityState
object for internals's
- target element.internals.validity
ValidityState
object for internals's target element.validationMessage
internals .
+ validationMessage
checkValidity()
valid = internals .
+ checkValidity()
invalid
event at the element in the latter case.reportValidity()
valid = internals .
+ reportValidity()
invalid
event at the element, and (if the event isn't canceled)
reports the problem to the user.labels
internals.labels
NodeList
of all the label
elements that
internals's target element is associated
with.Accessibility semantics
-
role
[ = value ]internals.role [ = value ]
role
attribute.aria*
[ = value ]internals.aria* [ = value ]
aria-*
@@ -74324,12 +74144,9 @@ END:VCARD
-->
+
element.click()
click
()
-
-
activeElement
documentOrShadowRoot.activeElement
iframe
's node document.hasFocus
()document.hasFocus()
focus
()window.focus()
focus
([ { preventScroll
: true } ])element.focus([ { preventScroll: true } ])
blur
()element.blur()
textarea
elements and instead use
- a yellow background to indicate focus, you could use:textarea
elements and instead use a
+ yellow background to indicate focus, you could use:
@@ -76228,8 +76039,7 @@ body { display:none }
textarea:focus-visible { outline: none; background: yellow; color: black; }
-
-
contentEditable
[ = value ]element.contentEditable [ = value ]
true
", "false
", or "
isContentEditable
element.isContentEditable
designMode
getter and setter
-
designMode
[ = value ]document.designMode [ = value ]
on
" if the document is editable, and "off
" if it isn't.
-
-
spellcheck
[ = value ]element.spellcheck [ = value ]
-
@@ -77903,38 +77694,37 @@ callback FunctionStringCallback = undefined (DOMString data)
callback FunctionObjectCallback = undefined (any data);-->
autocapitalize
[ = value ]element.autocapitalize [ = value ]
-
-
DataTransfer
()dataTransfer = new DataTransfer()
DataTransfer
object with an empty drag data
store.dropEffect
[ = value ]dataTransfer.dropEffect [ = value ]
effectAllowed
[ = value ]dataTransfer.effectAllowed [ = value ]
items
dataTransfer.items
DataTransferItemList
object, with the drag data.DataTransferItemList
object, with the drag data.setDragImage
(element, x, y)dataTransfer.setDragImage(element, x, y)
types
dataTransfer.types
DataTransfer {
getData
(format)data = dataTransfer.getData(format)
setData
(format, data)dataTransfer.setData(format, data)
clearData
( [ format ] )dataTransfer.clearData([ format ])
files
dataTransfer.files
FileList
of the files being dragged, if any.FileList
of the files being dragged, if any.
-
-
kind
item.kind
type
item.type
getAsString
(callback)item.getAsString(callback)
getAsFile
()file = item.getAsFile()
File
object, if the drag data item kind is File.File
object, if the drag data item kind is
+ File.
-
-
@@ -79609,12 +79395,11 @@ popup4.close();draggable
[ = value ]element.draggable [ = value ]
draggable
- content attribute.draggable
content attribute.
-
top
WindowProxy
for the top-level browsing context.window.top
WindowProxy
for the top-level browsing
+ context.opener
[ = value ]window.opener [ = value ]
WindowProxy
for the opener browsing context.
parent
Returns the WindowProxy
for the parent browsing context.
window.parent
Returns the WindowProxy
for the parent browsing
+ context.
frameElement
window.frameElement
Returns the Element
for the browsing context container.
window
frames
self
These attributes all return window.
-window.window
window.frames
window.self
These attributes all return window.
document
Returns the Document
associated with window.
window.document
Returns the Document
associated with window.
defaultView
Returns the Window
object of the active document.
document.defaultView
Returns the Window
object of the active document.
open
( [ url [, target [, features ] ] ] )window = window.open([ url [, target [, features ] ] ])
Opens a window to show url (defaults to about:blank
), and returns it.
@@ -80722,7 +80499,7 @@ dictionary WindowPostMessageOptions : PostMessageOpt
rendering of the new window.
name
[ = value ]window.name [ = value ]
Returns the name of the window.
@@ -80730,23 +80507,17 @@ dictionary WindowPostMessageOptions : PostMessageOptCan be set, to change the name.
close
()window.close()
Closes the window.
-Closes the window.
closed
window.closed
Returns true if the window has been closed, false otherwise.
-Returns true if the window has been closed, false otherwise.
stop
()window.stop()
Cancels the document load.
-Cancels the document load.
length
window.length
Returns the number of document-tree child browsing contexts.
+Returns the number of document-tree child + browsing contexts.
window[index]
Returns the indicated document-tree child browsing context.
-Returns the indicated document-tree child browsing context.
Window
objectwindow[name]
Returns the indicated element or collection of elements.
@@ -81358,35 +81125,23 @@ interface BarProp { };locationbar
. visible
Returns true if the location bar is visible; otherwise, returns false.
-window.locationbar.visible
Returns true if the location bar is visible; otherwise, returns false.
menubar
. visible
Returns true if the menu bar is visible; otherwise, returns false.
-window.menubar.visible
Returns true if the menu bar is visible; otherwise, returns false.
personalbar
. visible
Returns true if the personal bar is visible; otherwise, returns false.
-window.personalbar.visible
Returns true if the personal bar is visible; otherwise, returns false.
scrollbars
. visible
Returns true if the scrollbars are visible; otherwise, returns false.
-window.scrollbars.visible
Returns true if the scrollbars are visible; otherwise, returns false.
statusbar
. visible
Returns true if the status bar is visible; otherwise, returns false.
-window.statusbar.visible
Returns true if the status bar is visible; otherwise, returns false.
toolbar
. visible
Returns true if the toolbar is visible; otherwise, returns false.
-window.toolbar.visible
Returns true if the toolbar is visible; otherwise, returns false.
domain
[ = domain ]document.domain [ = domain ]
Returns the current domain used for security checks.
@@ -82442,7 +82196,7 @@ interface BarProp {originAgentCluster
window.originAgentCluster
Returns true if this Window
belongs to an agent cluster which is
@@ -84693,14 +84447,11 @@ interface History {
};
window.history.length
history
. length
Returns the number of entries in the joint session history.
Returns the number of entries in the joint session history.
-history
. scrollRestoration
[ = value ]window.history.scrollRestoration [ = value ]
Returns the scroll restoration mode of the @@ -84710,23 +84461,22 @@ interface History { mode of the current entry in the session history.
history
. state
window.history.state
Returns the current serialized state, deserialized into an object.
-Returns the current serialized state, deserialized into an object.
history
. go
( [ delta ] )window.history.go([ delta ])
Goes back or forward the specified number of steps in the joint session history.
+Goes back or forward the specified number of steps in the joint session + history.
A zero delta will reload the current page.
If the delta is out of range, does nothing.
history
. back
()window.history.back()
Goes back one step in the joint session history.
@@ -84734,7 +84484,7 @@ interface History {If there is no previous page, does nothing.
history
. forward
()window.history.forward()
Goes forward one step in the joint session history.
@@ -84742,7 +84492,7 @@ interface History {If there is no next page, does nothing.
history
. pushState
(data, ""[, url])window.history.pushState(data, ""[, url])
Pushes the given data onto the session history, and, if provided and not null, the given URL. @@ -84750,7 +84500,7 @@ interface History { string is traditional.)
history
. replaceState
(data, ""[, url])window.history.replaceState(data, ""[, url])
Updates the current entry in the session history to have the given data, and if provided and @@ -85341,9 +85091,8 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O
location
[ = value ]location
[ = value ]document.location [ = value ]
window.location [ = value ]
Returns a Location
object with the current page's location.
toString()
href
location.toString()
location.href
Returns the Location
object's URL.
Can be set, to navigate to the given URL.
origin
Returns the Location
object's URL's origin.
location.origin
Returns the Location
object's URL's origin.
protocol
location.protocol
Returns the Location
object's URL's scheme.
Can be set, to navigate to the same URL with a changed scheme.
host
location.host
Returns the Location
object's URL's host and port (if different from the default
port for the scheme).
Can be set, to navigate to the same URL with a changed host and port.
hostname
location.hostname
Returns the Location
object's URL's host.
Can be set, to navigate to the same URL with a changed host.
port
location.port
Returns the Location
object's URL's port.
Can be set, to navigate to the same URL with a changed port.
pathname
location.pathname
Returns the Location
object's URL's path.
Can be set, to navigate to the same URL with a changed path.
search
location.search
Returns the Location
object's URL's query (includes leading "?
" if non-empty).
Can be set, to navigate to the same URL with a changed query (ignores leading "?
").
hash
location.hash
Returns the Location
object's URL's fragment (includes leading "#
" if non-empty).
Can be set, to navigate to the same URL with a changed fragment (ignores leading "#
").
assign
(url)Navigates to the given URL.
-location.assign(url)
Navigates to the given URL.
replace
(url)Removes the current page from the session history and navigates to the given URL.
-location.replace(url)
Removes the current page from the session history and navigates to the given URL.
reload
()location.reload()
Reloads the current page.
-Reloads the current page.
ancestorOrigins
location.ancestorOrigins
Returns a Returns a copy of the information that was provided to Returns a copy of the information that was provided to Returns the URL of the session history entry that was previously
@@ -88515,7 +88260,7 @@ dictionary HashChangeEventInit : EventInit {
Returns the URL of the session history entry that is now
@@ -88552,8 +88297,7 @@ dictionary PageTransitionEventInit : EventInit
For the Dispatches an Returns a promise for the module namespace object for the module script
@@ -92528,7 +92275,7 @@ dictionary PromiseRejectionEventInit : EventInit
Returns the active module script's WindowOrWorkerGlobalScope {
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
Returns whether or not this global object represents a secure context. Returns the global object's origin, serialized as string. Returns whether scripts running in this global are allowed to use APIs that require
cross-origin isolation. This depends on the ` Takes the input data, in the form of a Unicode string containing only characters in the range
@@ -95143,7 +94889,7 @@ document.body.appendChild(frame)
exception if the input string contains any out-of-range characters. Takes the input data, in the form of a Unicode string containing base64-encoded binary data,
@@ -95206,7 +94952,7 @@ document.body.appendChild(frame)
Causes the Works like the Closes the input stream that was opened by the In general, adds the given string(s) to the Cancels the timeout set with Cancels the timeout set with Schedules a timeout to run handler every timeout
- milliseconds. Any arguments are passed straight through to the handler. Schedules a timeout to run handler every timeout milliseconds. Any
+ arguments are passed straight through to the handler. Schedules a timeout to compile and run code every timeout milliseconds. Schedules a timeout to compile and run code every timeout
+ milliseconds. Cancels the timeout set with Cancels the timeout set with Timers can be nested; after five such nested timers, however, the interval is
@@ -96039,8 +95775,7 @@ scheduleWork(); // queues a task to do lots of work
Queues a microtask to run the given
callback. Displays a modal alert with the given message, and waits for the user to dismiss
+ it. Displays a modal alert with the given message, and waits for the user to dismiss it. Displays a modal OK/Cancel prompt with the given message, waits for the user to dismiss it,
and returns true if the user clicks OK and false if the user clicks Cancel. Displays a modal text control prompt with the given message, waits for the user to dismiss
it, and returns the value that the user entered. If the user cancels the prompt, then returns
@@ -96315,12 +96048,9 @@ function sendData(data) {
Prompts the user to print the page. Prompts the user to print the page. Returns the string " Returns the string " Returns the version of the browser. Returns the name of the platform. Returns the string " Returns either the string " Returns the complete ` Returns either the empty string, the string " Returns the empty string. Returns a language tag representing the user's preferred language. Returns an array of language tags representing the user's preferred languages, with the most
preferred language first. Returns false if the user agent is definitely offline (disconnected from the network).
@@ -96783,7 +96501,7 @@ interface Navigator {
};
Registers a handler for scheme at url. For example, an online telephone
messaging service could register itself as a handler of the Unregisters the handler given by the arguments. Returns false if setting a cookie will be ignored, and true otherwise. Returns false if setting a cookie will be ignored, and true otherwise. Returns true if the user agent supports inline viewing of PDF files when navigating to them, or false otherwise. In the latter case, PDF files
- will be handled by external software. Takes image, which can be an If options is provided, the If options is provided, the Rejects the promise with an " Releases imageBitmap's underlying bitmap data. Releases imageBitmap's underlying bitmap data. Returns the intrinsic width of the image, in CSS
pixels. Returns the intrinsic height of the image, in CSS
@@ -98138,28 +97851,25 @@ dictionary MessageEventInit : EventInit {
typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource; Returns the data of the message. Returns the data of the message. Returns the origin of the message, for server-sent events and
cross-document messaging. Returns the last event ID string, for
- server-sent events. Returns the last event ID string,
+ for server-sent events. Returns the Returns the Creates a new Setting Aborts any instances of the fetch algorithm started for
@@ -98366,21 +98075,20 @@ dictionary EventSourceInit {
data-x="dom-EventSource-CLOSED">CLOSED. Returns the URL providing the event stream.
- Returns the URL providing the event
+ stream. Returns true if the credentials mode
- for connection requests to the URL providing the
- event stream is set to " Returns the state of this Creates a new url is a string giving the URL over which the connection is
established. Only " protocols is either a string or an array of strings. If it is a string, it
- is equivalent to an array consisting of just that string; if it is omitted, it is equivalent to
- the empty array. Each string in the array is a subprotocol name. The connection will only be
- established if the server reports that it has selected one of these subprotocols. The subprotocol
- names have to match the requirements for elements that comprise the value of protocols is either a string or an array of strings. If it is a string, it is
+ equivalent to an array consisting of just that string; if it is omitted, it is equivalent to the
+ empty array. Each string in the array is a subprotocol name. The connection will only be
+ established if the server reports that it has selected one of these subprotocols. The
+ subprotocol names have to match the requirements for elements that comprise the value of Transmits data using the WebSocket connection. data can be a string, a
Closes the WebSocket connection, optionally using code as the WebSocket connection close code and
@@ -99171,22 +98876,19 @@ interface WebSocket : EventTarget {
close reason. Returns the URL that was used to establish the
WebSocket connection. Returns the state of the Returns the number of bytes of application data (UTF-8 text and binary data) that have been
queued using Returns the extensions selected by the server, if any. Returns the subprotocol selected by the server, if any. It can be used in conjunction with
- the array form of the constructor's second argument to perform subprotocol negotiation. Returns the extensions selected by the server, if any. Returns the subprotocol selected by the server, if any. It can be used in conjunction with
+ the array form of the constructor's second argument to perform subprotocol negotiation. Returns a string that indicates how binary data from the Binary data is returned in Binary data is returned in Binary data is returned in Binary data is returned in Can be set, to change how binary data is returned. The default is " Returns true if the connection closed cleanly; false otherwise. Returns true if the connection closed cleanly; false otherwise. Returns the WebSocket connection close code provided by the server. Returns the WebSocket connection close code provided by the server. Returns the WebSocket connection close reason provided by the server. Returns the WebSocket connection close reason provided by the server. Posts a message to the given window. Messages can be structured objects, e.g. nested objects
- and arrays, can contain JavaScript values (strings, numbers, Objects listed in the This is an alternate version of When posting a message to a Returns a new Returns a new Returns the first Returns the first Returns the second Returns the second Posts a message through the channel. Objects listed in transfer are
- transferred, not just cloned, meaning that they are no longer usable on the sending side. Posts a message through the channel. Objects listed in transfer are transferred,
+ not just cloned, meaning that they are no longer usable on the sending side. Throws a " Begins dispatching messages received on the port. Disconnects the port, so that it is no longer active. Returns a new Returns the channel name (as passed to the constructor). Returns the channel name (as passed to the constructor). Sends the given message to other Sends the given message to other Closes the Closes the Returns dedicatedWorkerGlobal's name, i.e. the value given to the
- Clones message and transmits it to the Aborts dedicatedWorkerGlobal. Returns sharedWorkerGlobal's name, i.e. the value given to the
Aborts sharedWorkerGlobal. Returns a new Clones message and transmits it to worker's global environment.
transfer can be passed as a list of objects that are to be transferred rather than
- cloned. Returns a new Returns a new Returns sharedWorker's Returns the number of logical processors potentially available to the user agent. Loads and executes the module script given by moduleURL into all of
worklet's global scopes. It can
@@ -103873,20 +103544,20 @@ interface Storage {
};
Returns the number of key/value pairs. Returns the name of the nth key, or null if n is greater than or
equal to the number of key/value pairs. Returns the current value associated with the given key, or null if the given
key does not exist. Sets the value of the pair identified by key to value, creating a new
key/value pair if none existed for key previously. Removes the key/value pair with the given key, if a key/value pair with the given
@@ -103909,7 +103580,7 @@ interface Storage {
holding an equivalent Removes all key/value pairs, if there are any. Returns the Returns the Throws a " Returns the key of the storage item being changed. Returns the old value of the key of the storage item whose value is being
changed. Returns the new value of the key of the storage item whose value is being
changed. Returns the URL of the document whose storage
item changed. Returns the DOMStringList
object listing the origins of the ancestor browsing contexts, from the parent browsing
@@ -88470,14 +88219,11 @@ dictionary PopStateEventInit : EventInit {
};
+
event.state
state
pushState()
or replaceState()
.pushState()
or replaceState()
.
-
-
oldURL
event.oldURL
newURL
event.newURL
-
-
@@ -91937,7 +91684,7 @@ document.querySelector("button").addEventListener("click", bound);
persisted
event.persisted
pageshow
event, returns false if the page is
@@ -88569,10 +88313,13 @@ dictionary PageTransitionEventInit : EventInit
Document
alive in a session
- history entry after unload
- iframe
s that are not salvageable
- WebSocket
objects
- Document
+ history entry after unloadiframe
s that are not salvageableWebSocket
objectsDocument
Runtime script errors
-
@@ -92510,7 +92257,7 @@ dictionary PromiseRejectionEventInit : EventInitscript element.
reportError
( e )self.reportError(e)
error
event at the global object for the
given value e, in the same fashion as an unhandled exception.
-
@@ -95389,8 +95135,7 @@ document.body.appendChild(frame)
import(specifier)
modulePromise = import(specifier)
import . meta
. url
url = import.meta .url
-
isSecureContext
self.isSecureContext
origin
self.origin
crossOriginIsolated
self.crossOriginIsolated
Cross-Origin-Opener-Policy
` and
@@ -95131,8 +94878,7 @@ document.body.appendChild(frame)
input and output of these functions are Unicode strings.
-
-
btoa
( data )result = self.btoa(data)
atob
( data )result = self.atob(data)
Opening the input stream
-
open
( )document = document.open()
Document
to be replaced in-place, as if it was a new
Document
object, but reusing the previous object, which is then returned.open
( url, name, features )window = document.open(url, name, features)
window.open()
method.Closing the input stream
-
-
close
()document.close()
affect the state of the HTML parser while the parser is running, resulting in a DOM
that does not correspond to the source of the document (e.g. if the string written is the string
"document.write()
-
-
write
(text...)document.write(...text)
Document
's input stream.<plaintext>
" or "<!--
"). In other cases,
- the call can clear the current page first, as if document.open()
had been called. In yet more cases, the method
- is simply ignored, or throws an exception. Users agents are explicitly allowed to avoid executing
+ the call can clear the current page first, as if document.open()
had been called. In yet more cases, the method
+ is simply ignored, or throws an exception. Users agents are explicitly allowed to avoid executing
script
elements inserted via this method. And to make matters even worse, the
exact behavior of this method can in some cases be dependent on network latency
- setTimeout()
or setInterval()
identified by handle.setTimeout()
or setInterval()
identified by handle.setInterval
( handler [, timeout [, arguments... ] ] )handle = self.setInterval(handler [, timeout [, ...arguments ] ])
setInterval
( code [, timeout ] )handle = self.setInterval(code [, timeout ])
clearInterval
( handle )self.clearInterval(handle)
setInterval()
or setTimeout()
identified by handle.setInterval()
or setTimeout()
identified by handle.Microtask queuing
-
@@ -96171,19 +95906,17 @@ function sendData(data) {
queueMicrotask
(callback)self.queueMicrotask(callback)
Simple dialogs
+
window.alert(message)
alert
(message)confirm
(message)result = window.confirm(message)
prompt
(message [, default] )result = window.prompt(message [, default])
Printing
+
window.print()
print
()
-
@@ -96626,12 +96347,10 @@ interface Navigator {
};
navigator
. appCodeName
self.navigator.appCodeName
Mozilla
".navigator
. appName
self.navigator.appName
Netscape
".navigator
. appVersion
self.navigator.appVersion
navigator
. platform
self.navigator.platform
navigator
. product
self.navigator.product
Gecko
".navigator
. productSub
window.navigator.productSub
20030107
", or the string "20100101
".navigator
. userAgent
self.navigator.userAgent
User-Agent
` header.navigator
. vendor
window.navigator.vendor
Apple Computer, Inc.
",
or the string "Google Inc.
".navigator
. vendorSub
window.navigator.vendorSub
-
navigator
. language
self.navigator.language
navigator
. languages
self.navigator.languages
-
navigator
. onLine
self.navigator.onLine
-
navigator
. registerProtocolHandler
(scheme, url)window.navigator.registerProtocolHandler(scheme, url)
%s
" string is missing in url.navigator
. unregisterProtocolHandler
(scheme, url)window.navigator.unregisterProtocolHandler(scheme, url)
+
window.navigator.cookieEnabled
navigator
. cookieEnabled
PDF viewing support
-
navigator
. pdfViewerEnabled
window.navigator.pdfViewerEnabled
interface mixin NavigatorPlugins {
@@ -97391,14 +97107,13 @@ dictionary ImageBitmapOptions {
system RAM, the latency is probably acceptable.
-
-
createImageBitmap
(image [, options ])createImageBitmap
(image, sx, sy, sw, sh [, options ])promise = self.createImageBitmap(image [, options ])
promise = self.createImageBitmap(image, sx, sy, sw, sh [, options ])
img
element, an SVG
- image
element, a video
element, a canvas
- element, a Blob
object, an ImageData
object, or another
+ image
element, a video
element, a canvas
element,
+ a Blob
object, an ImageData
object, or another
ImageBitmap
object, and returns a promise that is resolved when a new
ImageBitmap
is created.ImageBitmap
object's bitmap
- data is modified according to options. For example,
- if the premultiplyAlpha
- option is set to "premultiply
",
- the bitmap data's color channels are
- premultiplied by its alpha channel.ImageBitmap
object's bitmap data is
+ modified according to options. For example, if the premultiplyAlpha
option is set to "premultiply
", the bitmap data's color channels are premultiplied by its alpha channel.InvalidStateError
"
DOMException
if the source image is not in a valid state (e.g., an img
@@ -97432,21 +97147,19 @@ dictionary ImageBitmapOptions {
origin).close
()imageBitmap.close()
width
imageBitmap.width
height
imageBitmap.height
+
event.data
data
origin
event.origin
lastEventId
event.lastEventId
source
event.source
WindowProxy
of the source window, for cross-document
@@ -98168,7 +97878,7 @@ typedef (WindowProxy or MessagePort or ServiceWo
SharedWorkerGlobalScope
objects.ports
event.ports
MessagePort
array sent with the message, for cross-document
@@ -98342,10 +98052,9 @@ dictionary EventSourceInit {
-
-
EventSource
(
- url [, { withCredentials
:
- true } ])source = new EventSource(
+ url [, { withCredentials:
+ true } ])
EventSource
object.withCredentials
to true
- will set the credentials mode
- for connection requests to url to "include
".include
".
close
()source.close()
url
source.url
withCredentials
source.withCredentials
include
", and false otherwise.include
", and false otherwise.
readyState
source.readyState
EventSource
object's connection. It can have the
@@ -99133,37 +98841,34 @@ interface WebSocket : EventTarget {
data-x="concept-websocket-url">url (a URL record).
-
-
WebSocket
(url [, protocols ] )socket = new WebSocket(url [, protocols ])
WebSocket
object, immediately establishing the associated
WebSocket connection.ws
" or "wss
" schemes are
- allowed; others will cause a "SyntaxError
"
- DOMException
. URLs with fragments
- will also cause such an exception."
SyntaxError
" DOMException
.
+ URLs with fragments will also cause such an
+ exception.Sec-WebSocket-Protocol
fields as defined by
The WebSocket protocol. send
( data )socket.send(data)
Blob
, an ArrayBuffer
, or an ArrayBufferView
.close
( [ code ] [, reason ] )socket.close([ code ] [, reason ])
url
socket.url
readyState
socket.readyState
WebSocket
object's connection. It can have the values
described below.bufferedAmount
socket.bufferedAmount
send()
but not yet been transmitted to the
@@ -99197,34 +98899,25 @@ interface WebSocket : EventTarget {
to zero once the connection closes.)extensions
protocol
socket.extensions
binaryType
[ = value ]socket.protocol
socket.binaryType [ = value ]
WebSocket
object is
exposed to scripts:
-
blob
"Blob
form.blob
"Blob
form.arraybuffer
"ArrayBuffer
form.ArrayBuffer
+ form.CloseEventInit : EventInit {
};
+
event.wasClean
wasClean
event.code
code
reason
event.reason
Posting messages
-
postMessage
(message [, options ] )window.postMessage(message [, options ])
Date
- objects, etc), and can contain certain data objects such as File
Blob
,
+ and arrays, can contain JavaScript values (strings, numbers, Date
objects, etc),
+ and can contain certain data objects such as File
Blob
,
FileList
, and ArrayBuffer
objects.transfer
member
@@ -100072,13 +99758,13 @@ function receiver(e) {
cloned.postMessage
(message, targetOrigin [, transfer ] )window.postMessage(message, targetOrigin [, transfer ])
postMessage()
where the target origin is specified
as a parameter. Calling window.postMessage(message, target, transfer)
is
- equivalent to window.postMessage(message, {targetOrigin, transfer})
.window.postMessage(message, {targetOrigin,
+ transfer})
.
Window
of a browsing context
@@ -100417,24 +100103,20 @@ interface MessageChannel {
};
-
-
MessageChannel
()channel = new MessageChannel()
MessageChannel
object with two new MessagePort
objects.MessageChannel
object with two new MessagePort
+ objects.port1
channel.port1
MessagePort
object.MessagePort
object.port2
channel.port2
MessagePort
object.MessagePort
object.
-
@@ -100848,31 +100530,28 @@ interface BroadcastChannel : EventTarget {
};
postMessage
(message [, transfer] )postMessage
(message [, { transfer
}] )port.postMessage(message [, transfer])
port.postMessage(message [, { transfer }])
DataCloneError
" DOMException
if
transfer contains duplicate objects or port, or if message
could not be cloned.start
()port.start()
close
()port.close()
-
-
BroadcastChannel
(name)broadcastChannel = new BroadcastChannel(name)
BroadcastChannel
object via which messages for the given channel
name can be sent and received.name
broadcastChannel.name
postMessage
(message)broadcastChannel.postMessage(message)
BroadcastChannel
objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.BroadcastChannel
objects set up for this
+ channel. Messages can be structured objects, e.g. nested objects and arrays.close
()broadcastChannel.close()
BroadcastChannel
object, opening it up to garbage collection.BroadcastChannel
object, opening it up to garbage
+ collection.
-
@@ -101610,24 +101289,21 @@ interface DedicatedWorkerGlobalScope : WorkerGlobalSc
self
workerGlobal.self
location
workerGlobal.location
WorkerLocation
object.navigator
workerGlobal.navigator
WorkerNavigator
object.importScripts
(urls...)workerGlobal.importScripts(...urls)
DedicatedWorkerGlobalScope
object.
-
name
dedicatedWorkerGlobal.name
+ Worker
constructor. Primarily useful for debugging.Worker
constructor. Primarily useful for debugging.postMessage
(message [,
- transfer ])postMessage
(message
- [, { transfer
} ])Worker
object associated with
- dedicatedWorkerGlobal. transfer can be passed as a list of objects that are
- to be transferred rather than cloned.dedicatedWorkerGlobal.postMessage(message [,
+ transfer ])
dedicatedWorkerGlobal.postMessage(message
+ [, { transfer } ])
Worker
object associated
+ with dedicatedWorkerGlobal. transfer can be passed as a list of objects
+ that are to be transferred rather than cloned.close
()dedicatedWorkerGlobal.close()
-
name
sharedWorkerGlobal.name
+ SharedWorker
constructor. Multiple SharedWorker
objects can correspond
to the same shared worker (and SharedWorkerGlobalScope
), by reusing the same
- name.close
()sharedWorkerGlobal.close()
-
Worker
(scriptURL [, options ])Worker
object. scriptURL will be fetched and executed
- in the background, creating a new global environment for which worker represents the
- communication channel. options can be used to define the worker = new Worker(scriptURL [, options ])
+ Worker
object. scriptURL will be fetched and
+ executed in the background, creating a new global environment for which worker
+ represents the communication channel. options can be used to define the name of that global environment via the name
option, primarily for debugging purposes. It can also ensure this new
global environment supports JavaScript modules (specify type: "module"
),
and if that is specified, can also be used to specify how scriptURL is fetched through
- the credentials
option.
+ the credentials
option.terminate
()worker.terminate()
postMessage
(message [, transfer ] )
- postMessage
(message [, { transfer
} ] )
- worker.postMessage(message [, transfer ])
worker.postMessage(message [, { transfer } ])
-
SharedWorker
(scriptURL [, name ])SharedWorker
object. scriptURL will be fetched and
+ sharedWorker = new SharedWorker(scriptURL [, name ])
SharedWorker
object. scriptURL will be fetched and
executed in the background, creating a new global environment for which sharedWorker
represents the communication channel. name can be used to define the name of that global environment.SharedWorker
(scriptURL [, options ])SharedWorker
object. scriptURL will be fetched and
+ sharedWorker = new SharedWorker(scriptURL [, options ])
SharedWorker
object. scriptURL will be fetched and
executed in the background, creating a new global environment for which sharedWorker
represents the communication channel. options can be used to define the name of that global environment via the SharedWorker : EventTarget {
modules (specify
type: "module"
), and if that is specified, can also be
used to specify how scriptURL is fetched through the credentials
option. Note that attempting to construct a shared worker with
- options whose type
or credentials
- values mismatch an existing shared worker will cause the returned sharedWorker to
- fire an error event and not connect to the existing shared worker.type
or credentials
values
+ mismatch an existing shared worker will cause the returned sharedWorker to fire an
+ error event and not connect to the existing shared worker.
- port
MessagePort
object which can be used to
- communicate with the global environment.sharedWorker.port
MessagePort
object which can be used to
+ communicate with the global environment.
-
@@ -103070,10 +102741,10 @@ interface WorkerLocation {
};
navigator
. hardwareConcurrency
self.navigator.hardwareConcurrency
-
@@ -103511,7 +103182,7 @@ dictionary WorkletOptions {
window . fakeWorklet1
window.fakeWorklet1
window . fakeWorklet2
window.fakeWorklet2
-
await worklet . addModule(moduleURL[, { credentials }])
await worklet.addModule(moduleURL[, { credentials }])
-
length
storage.length
key
( n )storage.key (n)
getItem
( key )value = storage.getItem (key)
value = storage[key]
setItem
( key, value )storage.setItem (key, value)
storage[key] = value
Storage
object.
removeItem
( key )storage.removeItem (key)
delete
storage[key]Storage
object.clear
()storage.clear()
-
sessionStorage
window.sessionStorage
Storage
object associated with that window's origin's
session storage area.
-
@@ -104229,22 +103900,22 @@ dictionary StorageEventInit : EventInit {
};
localStorage
window.localStorage
Storage
object associated with window's origin's local
storage area.SecurityError
" DOMException
if the
Document
's origin is an opaque origin or if the request violates a policy
- decision (e.g., if the user agent is configured to not allow the page to persist data).
-
key
event.key
oldValue
event.oldValue
newValue
event.newValue
url
event.url
storageArea
event.storageArea
Storage
object that was affected.