From 2c641e08878722bf29fb784d58c61873ce4a133a Mon Sep 17 00:00:00 2001 From: Onkar Ruikar <87750369+OnkarRuikar@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:28:29 +0530 Subject: [PATCH] fix(macro): update {{AvailableInWorkers}} positions, part 1 (#32572) --- files/en-us/web/api/broadcast_channel_api/index.md | 4 +--- .../en-us/web/api/broadcastchannel/broadcastchannel/index.md | 4 +--- files/en-us/web/api/broadcastchannel/close/index.md | 4 +--- files/en-us/web/api/broadcastchannel/index.md | 4 +--- files/en-us/web/api/broadcastchannel/name/index.md | 4 +--- files/en-us/web/api/broadcastchannel/postmessage/index.md | 4 +--- files/en-us/web/api/channel_messaging_api/index.md | 4 +--- .../channel_messaging_api/using_channel_messaging/index.md | 4 +--- files/en-us/web/api/console/assert_static/index.md | 4 +--- files/en-us/web/api/console/count_static/index.md | 4 +--- files/en-us/web/api/console/countreset_static/index.md | 4 +--- files/en-us/web/api/console/debug_static/index.md | 4 +--- files/en-us/web/api/console/dir_static/index.md | 4 +--- files/en-us/web/api/console/error_static/index.md | 4 +--- files/en-us/web/api/console/group_static/index.md | 4 +--- files/en-us/web/api/console/groupcollapsed_static/index.md | 4 +--- files/en-us/web/api/console/groupend_static/index.md | 4 +--- files/en-us/web/api/console/index.md | 4 +--- files/en-us/web/api/console/info_static/index.md | 4 +--- files/en-us/web/api/console/log_static/index.md | 4 +--- files/en-us/web/api/console/profile_static/index.md | 4 +--- files/en-us/web/api/console/profileend_static/index.md | 4 +--- files/en-us/web/api/console/table_static/index.md | 4 +--- files/en-us/web/api/console/time_static/index.md | 4 +--- files/en-us/web/api/console/timeend_static/index.md | 4 +--- files/en-us/web/api/console/timestamp_static/index.md | 4 +--- files/en-us/web/api/console/trace_static/index.md | 4 +--- files/en-us/web/api/console/warn_static/index.md | 4 +--- files/en-us/web/api/console_api/index.md | 4 +--- files/en-us/web/api/cookie_store_api/index.md | 4 +--- files/en-us/web/api/cookiestore/delete/index.md | 4 +--- files/en-us/web/api/cookiestore/get/index.md | 4 +--- files/en-us/web/api/cookiestore/getall/index.md | 4 +--- files/en-us/web/api/cookiestore/index.md | 4 +--- files/en-us/web/api/cookiestore/set/index.md | 4 +--- .../web/api/cookiestoremanager/getsubscriptions/index.md | 4 +--- files/en-us/web/api/cookiestoremanager/index.md | 4 +--- files/en-us/web/api/cookiestoremanager/subscribe/index.md | 4 +--- files/en-us/web/api/cookiestoremanager/unsubscribe/index.md | 4 +--- files/en-us/web/api/crypto/index.md | 4 +--- files/en-us/web/api/customevent/index.md | 4 +--- .../dedicatedworkerglobalscope/rtctransform_event/index.md | 4 +--- files/en-us/web/api/dompointreadonly/index.md | 4 +--- files/en-us/web/api/encoding_api/index.md | 4 +--- .../web/api/extendablecookiechangeevent/changed/index.md | 4 +--- .../web/api/extendablecookiechangeevent/deleted/index.md | 4 +--- .../extendablecookiechangeevent/index.md | 4 +--- files/en-us/web/api/extendablecookiechangeevent/index.md | 4 +--- files/en-us/web/api/fetch_api/index.md | 4 +--- files/en-us/web/api/filereadersync/filereadersync/index.md | 4 +--- files/en-us/web/api/filereadersync/index.md | 4 +--- files/en-us/web/api/filereadersync/readasarraybuffer/index.md | 4 +--- .../en-us/web/api/filereadersync/readasbinarystring/index.md | 4 +--- files/en-us/web/api/filereadersync/readasdataurl/index.md | 4 +--- files/en-us/web/api/filereadersync/readastext/index.md | 4 +--- files/en-us/web/api/formdata/append/index.md | 4 +--- files/en-us/web/api/formdata/delete/index.md | 4 +--- files/en-us/web/api/formdata/entries/index.md | 4 +--- files/en-us/web/api/formdata/formdata/index.md | 4 +--- files/en-us/web/api/formdata/get/index.md | 4 +--- files/en-us/web/api/formdata/getall/index.md | 4 +--- files/en-us/web/api/formdata/has/index.md | 4 +--- files/en-us/web/api/formdata/index.md | 4 +--- files/en-us/web/api/formdata/keys/index.md | 4 +--- files/en-us/web/api/formdata/set/index.md | 4 +--- files/en-us/web/api/formdata/values/index.md | 4 +--- files/en-us/web/api/headers/append/index.md | 4 +--- files/en-us/web/api/headers/delete/index.md | 4 +--- files/en-us/web/api/headers/entries/index.md | 4 +--- files/en-us/web/api/headers/foreach/index.md | 4 +--- files/en-us/web/api/headers/get/index.md | 4 +--- files/en-us/web/api/headers/getsetcookie/index.md | 4 +--- files/en-us/web/api/headers/has/index.md | 4 +--- files/en-us/web/api/headers/headers/index.md | 4 +--- files/en-us/web/api/headers/index.md | 4 +--- files/en-us/web/api/headers/keys/index.md | 4 +--- files/en-us/web/api/headers/set/index.md | 4 +--- files/en-us/web/api/headers/values/index.md | 4 +--- files/en-us/web/api/idbcursor/advance/index.md | 4 +--- files/en-us/web/api/idbcursor/continue/index.md | 4 +--- files/en-us/web/api/idbcursor/continueprimarykey/index.md | 4 +--- files/en-us/web/api/idbcursor/delete/index.md | 4 +--- files/en-us/web/api/idbcursor/direction/index.md | 4 +--- files/en-us/web/api/idbcursor/index.md | 4 +--- files/en-us/web/api/idbcursor/key/index.md | 4 +--- files/en-us/web/api/idbcursor/primarykey/index.md | 4 +--- files/en-us/web/api/idbcursor/request/index.md | 4 +--- files/en-us/web/api/idbcursor/source/index.md | 4 +--- files/en-us/web/api/idbcursor/update/index.md | 4 +--- files/en-us/web/api/idbcursorwithvalue/index.md | 4 +--- files/en-us/web/api/idbcursorwithvalue/value/index.md | 4 +--- files/en-us/web/api/idbdatabase/close/index.md | 4 +--- files/en-us/web/api/idbdatabase/createobjectstore/index.md | 4 +--- files/en-us/web/api/idbdatabase/deleteobjectstore/index.md | 4 +--- files/en-us/web/api/idbdatabase/index.md | 4 +--- files/en-us/web/api/idbdatabase/name/index.md | 4 +--- files/en-us/web/api/idbdatabase/objectstorenames/index.md | 4 +--- files/en-us/web/api/idbdatabase/transaction/index.md | 4 +--- files/en-us/web/api/idbdatabase/version/index.md | 4 +--- files/en-us/web/api/idbfactory/cmp/index.md | 4 +--- files/en-us/web/api/idbfactory/databases/index.md | 4 +--- files/en-us/web/api/idbfactory/deletedatabase/index.md | 4 +--- files/en-us/web/api/idbfactory/index.md | 4 +--- files/en-us/web/api/idbfactory/open/index.md | 4 +--- files/en-us/web/api/idbindex/count/index.md | 4 +--- files/en-us/web/api/idbindex/get/index.md | 4 +--- files/en-us/web/api/idbindex/getkey/index.md | 4 +--- files/en-us/web/api/idbindex/index.md | 4 +--- files/en-us/web/api/idbindex/keypath/index.md | 4 +--- files/en-us/web/api/idbindex/multientry/index.md | 4 +--- files/en-us/web/api/idbindex/name/index.md | 4 +--- files/en-us/web/api/idbindex/objectstore/index.md | 4 +--- files/en-us/web/api/idbindex/opencursor/index.md | 4 +--- 113 files changed, 113 insertions(+), 339 deletions(-) diff --git a/files/en-us/web/api/broadcast_channel_api/index.md b/files/en-us/web/api/broadcast_channel_api/index.md index 0b8cfb5543ce9c9..9313d49b98e3399 100644 --- a/files/en-us/web/api/broadcast_channel_api/index.md +++ b/files/en-us/web/api/broadcast_channel_api/index.md @@ -5,12 +5,10 @@ page-type: web-api-overview browser-compat: api.BroadcastChannel --- -{{DefaultAPISidebar("Broadcast Channel API")}} +{{DefaultAPISidebar("Broadcast Channel API")}} {{AvailableInWorkers}} The **Broadcast Channel API** allows basic communication between {{glossary("browsing context", "browsing contexts")}} (that is, _windows_, _tabs_, _frames_, or _iframes_) and workers on the same {{glossary("origin")}}. -{{AvailableInWorkers}} - By creating a {{domxref("BroadcastChannel")}} object, you can receive any messages that are posted to it. You don't have to maintain a reference to the frames or workers you wish to communicate with: they can "subscribe" to a particular channel by constructing their own {{domxref("BroadcastChannel")}} with the same name, and have bi-directional communication between all of them. ![The principle of the Broadcast Channel API](broadcastchannel.png) diff --git a/files/en-us/web/api/broadcastchannel/broadcastchannel/index.md b/files/en-us/web/api/broadcastchannel/broadcastchannel/index.md index d366f432ad8e5d2..60cee7fb4cd3687 100644 --- a/files/en-us/web/api/broadcastchannel/broadcastchannel/index.md +++ b/files/en-us/web/api/broadcastchannel/broadcastchannel/index.md @@ -6,13 +6,11 @@ page-type: web-api-constructor browser-compat: api.BroadcastChannel.BroadcastChannel --- -{{APIRef("BroadCastChannel API")}} +{{APIRef("BroadCastChannel API")}} {{AvailableInWorkers}} The **`BroadcastChannel()`** constructor creates a new {{domxref("BroadcastChannel")}} and connects it to the underlying channel. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/broadcastchannel/close/index.md b/files/en-us/web/api/broadcastchannel/close/index.md index d0dda43758722b3..9b7ca8140b15f50 100644 --- a/files/en-us/web/api/broadcastchannel/close/index.md +++ b/files/en-us/web/api/broadcastchannel/close/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.BroadcastChannel.close --- -{{APIRef("BroadCastChannel API")}} +{{APIRef("BroadCastChannel API")}} {{AvailableInWorkers}} The **`BroadcastChannel.close()`** terminates the connection to the underlying channel, allowing the object to be garbage collected. @@ -14,8 +14,6 @@ This is a necessary step to perform as there is no other way for a browser to know that this channel is not needed anymore. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/broadcastchannel/index.md b/files/en-us/web/api/broadcastchannel/index.md index 7322b95e779df71..997faa061b5a883 100644 --- a/files/en-us/web/api/broadcastchannel/index.md +++ b/files/en-us/web/api/broadcastchannel/index.md @@ -5,12 +5,10 @@ page-type: web-api-interface browser-compat: api.BroadcastChannel --- -{{APIRef("Broadcast Channel API")}} +{{APIRef("Broadcast Channel API")}} {{AvailableInWorkers}} The **`BroadcastChannel`** interface represents a named channel that any {{glossary("browsing context")}} of a given {{glossary("origin")}} can subscribe to. It allows communication between different documents (in different windows, tabs, frames or iframes) of the same origin. Messages are broadcasted via a {{domxref("BroadcastChannel/message_event", "message")}} event fired at all `BroadcastChannel` objects listening to the channel, except the object that sent the message. -{{AvailableInWorkers}} - {{InheritanceDiagram}} ## Constructor diff --git a/files/en-us/web/api/broadcastchannel/name/index.md b/files/en-us/web/api/broadcastchannel/name/index.md index ff2818e7a80e337..3ef8671e1e3c70d 100644 --- a/files/en-us/web/api/broadcastchannel/name/index.md +++ b/files/en-us/web/api/broadcastchannel/name/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-property browser-compat: api.BroadcastChannel.name --- -{{APIRef("BroadCastChannel API")}} +{{APIRef("BroadCastChannel API")}} {{AvailableInWorkers}} The read-only **`BroadcastChannel.name`** property returns a string, which uniquely identifies the given channel with its name. This name is passed to the {{domxref("BroadcastChannel.BroadCastChannel", "BroadcastChannel()")}} constructor at creation time and is therefore read-only. -{{AvailableInWorkers}} - ## Values A string. diff --git a/files/en-us/web/api/broadcastchannel/postmessage/index.md b/files/en-us/web/api/broadcastchannel/postmessage/index.md index 239bf25b31e27f2..4405fc07104eeab 100644 --- a/files/en-us/web/api/broadcastchannel/postmessage/index.md +++ b/files/en-us/web/api/broadcastchannel/postmessage/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.BroadcastChannel.postMessage --- -{{APIRef("BroadCastChannel API")}} +{{APIRef("BroadCastChannel API")}} {{AvailableInWorkers}} The **`BroadcastChannel.postMessage()`** sends a message, which can be of any kind of {{jsxref("Object")}}, @@ -14,8 +14,6 @@ to each listener in any {{glossary("browsing context")}} with the same {{glossar The message is transmitted as a ['message'](/en-US/docs/Web/API/BroadcastChannel/message_event) event targeted at each {{domxref("BroadcastChannel")}} bound to the channel. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/channel_messaging_api/index.md b/files/en-us/web/api/channel_messaging_api/index.md index 901e5168e9ddce6..d6bf566869cd528 100644 --- a/files/en-us/web/api/channel_messaging_api/index.md +++ b/files/en-us/web/api/channel_messaging_api/index.md @@ -8,12 +8,10 @@ browser-compat: spec-urls: https://html.spec.whatwg.org/multipage/web-messaging.html#channel-messaging --- -{{DefaultAPISidebar("Channel Messaging API")}} +{{DefaultAPISidebar("Channel Messaging API")}} {{AvailableInWorkers}} The **Channel Messaging API** allows two separate scripts running in different browsing contexts attached to the same document (e.g., two IFrames, or the main document and an IFrame, two documents via a {{domxref("SharedWorker")}}, or two workers) to communicate directly, passing messages between one another through two-way channels (or pipes) with a port at each end. -{{AvailableInWorkers}} - ## Concepts and usage A message channel is created using the {{domxref("MessageChannel.MessageChannel", "MessageChannel()")}} constructor. Once created, the two ports of the channel can be accessed through the {{domxref("MessageChannel.port1")}} and {{domxref("MessageChannel.port2")}} properties (which both return {{domxref("MessagePort")}} objects.) The app that created the channel uses `port1`, and the app at the other end of the port uses `port2` — you send a message to `port2`, and transfer the port over to the other browsing context using {{domxref("window.postMessage")}} along with two arguments (the message to send, and the object to transfer ownership of, in this case the port itself.) diff --git a/files/en-us/web/api/channel_messaging_api/using_channel_messaging/index.md b/files/en-us/web/api/channel_messaging_api/using_channel_messaging/index.md index adf19c4089e91dd..4a451796ca1ecd1 100644 --- a/files/en-us/web/api/channel_messaging_api/using_channel_messaging/index.md +++ b/files/en-us/web/api/channel_messaging_api/using_channel_messaging/index.md @@ -7,14 +7,12 @@ browser-compat: - api.MessagePort --- -{{DefaultAPISidebar("Channel Messaging API")}} +{{DefaultAPISidebar("Channel Messaging API")}} {{AvailableInWorkers}} The [Channel Messaging API](/en-US/docs/Web/API/Channel_Messaging_API) allows two separate scripts running in different browsing contexts attached to the same document (e.g., two {{HTMLElement("iframe")}} elements, the main document and a single {{HTMLElement("iframe")}}, or two documents via a {{domxref("SharedWorker")}}) to communicate directly, passing messages between each other through two-way channels (or pipes) with a port at each end. In this article we'll explore the basics of using this technology. -{{AvailableInWorkers}} - ## Use cases Channel messaging is mainly useful in cases where you've got a social site that embeds capabilities from other sites into its main interface via iframes, such as games, address books or an audio player with personalized music choices. When these act as standalone units, things are OK, but the difficulty comes when you want interaction between the main site and the {{HTMLElement("iframe")}} elements, or between different {{HTMLElement("iframe")}} elements. For example, what if you wanted to add a contact to the address book from the main site, add high scores from your game to your main profile, or add new background music choices from the audio player to the game? Such things are not so easy using conventional web technology, because of the security models the web uses. You have to think about whether the origins trust each other, and how the messages are passed. diff --git a/files/en-us/web/api/console/assert_static/index.md b/files/en-us/web/api/console/assert_static/index.md index f7c045e453299f5..0b0b5a1de36a7e1 100644 --- a/files/en-us/web/api/console/assert_static/index.md +++ b/files/en-us/web/api/console/assert_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.assert_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.assert()`** static method writes an error message to the console if the assertion is false. If the assertion is true, nothing happens. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/count_static/index.md b/files/en-us/web/api/console/count_static/index.md index 188f2234bb144cb..252a93e99a89713 100644 --- a/files/en-us/web/api/console/count_static/index.md +++ b/files/en-us/web/api/console/count_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.count_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/countreset_static/index.md b/files/en-us/web/api/console/countreset_static/index.md index 086f79f88676882..3aaa2135207e037 100644 --- a/files/en-us/web/api/console/countreset_static/index.md +++ b/files/en-us/web/api/console/countreset_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.countReset_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.countReset()`** static method resets counter used with {{domxref("console/count_static", "console.count()")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/debug_static/index.md b/files/en-us/web/api/console/debug_static/index.md index 4dd5e80f87b05b7..99709cfd4707b1c 100644 --- a/files/en-us/web/api/console/debug_static/index.md +++ b/files/en-us/web/api/console/debug_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.debug_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.debug()`** static method outputs a message to the console at the "debug" log level. The message is only displayed to the user if the console is configured to display debug output. In most cases, the log level is configured within the console UI. This log level might correspond to the `Debug` or `Verbose` log level. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/dir_static/index.md b/files/en-us/web/api/console/dir_static/index.md index 80ac93e59573c67..f7ceb21d08769ce 100644 --- a/files/en-us/web/api/console/dir_static/index.md +++ b/files/en-us/web/api/console/dir_static/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.console.dir_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.dir()`** static method displays an interactive list of the properties of the specified JavaScript object. The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects. In other words, `console.dir()` is the way to see all the properties of a specified JavaScript object in console by which the developer can easily get the properties of the object. -{{AvailableInWorkers}} - ![A screenshot of the Firefox console where console.dir(document.location) is run. We can see the URL of the page, followed by a block of properties. If the property is a function or an object, a disclosure triangle is prepended.](console-dir.png) ## Syntax diff --git a/files/en-us/web/api/console/error_static/index.md b/files/en-us/web/api/console/error_static/index.md index 174c600ea2e9bd6..be1fbab80ab609a 100644 --- a/files/en-us/web/api/console/error_static/index.md +++ b/files/en-us/web/api/console/error_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.error_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.error()`** static method outputs an error message to the console. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/group_static/index.md b/files/en-us/web/api/console/group_static/index.md index 47abad6d93bc80f..5f7f571dfa9c697 100644 --- a/files/en-us/web/api/console/group_static/index.md +++ b/files/en-us/web/api/console/group_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.group_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.group()`** static method creates a new inline group in the [Web console](https://firefox-source-docs.mozilla.org/devtools-user/web_console/index.html) log, causing any subsequent console messages to be indented by an additional level, until {{domxref("console/groupend_static", "console.groupEnd()")}} is called. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/groupcollapsed_static/index.md b/files/en-us/web/api/console/groupcollapsed_static/index.md index 646bda05cc89402..b99265d6143e725 100644 --- a/files/en-us/web/api/console/groupcollapsed_static/index.md +++ b/files/en-us/web/api/console/groupcollapsed_static/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.console.groupCollapsed_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.groupCollapsed()`** static method creates a new inline group in the console. Unlike {{domxref("console/group_static", "console.group()")}}, however, the new group is created collapsed. The user will need to use the disclosure button next to it to expand it, revealing the entries created in the group. @@ -14,8 +14,6 @@ Call {{domxref("console/groupEnd_static", "console.groupEnd()")}} to back out to See [Using groups in the console](/en-US/docs/Web/API/console#using_groups_in_the_console) in the {{domxref("console")}} documentation for details and examples. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/groupend_static/index.md b/files/en-us/web/api/console/groupend_static/index.md index 7962b66cd556c65..5d6e57f5ff0e91b 100644 --- a/files/en-us/web/api/console/groupend_static/index.md +++ b/files/en-us/web/api/console/groupend_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.groupEnd_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.groupEnd()`** static method exits the current inline group in the console. See [Using groups in the console](/en-US/docs/Web/API/console#using_groups_in_the_console) in the {{domxref("console")}} documentation for details and examples. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/index.md b/files/en-us/web/api/console/index.md index 178f8da4f330e13..8c61fe7178250f8 100644 --- a/files/en-us/web/api/console/index.md +++ b/files/en-us/web/api/console/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.console --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console`** object provides access to the debugging console (e.g., the [Web console](https://firefox-source-docs.mozilla.org/devtools-user/web_console/index.html) in Firefox). The specifics of how it works vary from browser to browser or server runtimes (Node.js, for example), but there is a _de facto_ set of features that are typically provided. @@ -17,8 +17,6 @@ console.log("Failed to open the specified link"); This page documents the [Methods](#methods) available on the `console` object and gives a few [Usage](#usage) examples. -{{AvailableInWorkers}} - > **Note:** Certain online IDEs and editors may implement the console API differently than the browsers. As a result, certain functionality of the console API, such as the timer methods, may not be outputted in the console of online IDEs or editors. Always open your browser's DevTools console to see the logs as shown in this documentation. ## Instance methods diff --git a/files/en-us/web/api/console/info_static/index.md b/files/en-us/web/api/console/info_static/index.md index 8ca269f96af4359..12fa56a625b227f 100644 --- a/files/en-us/web/api/console/info_static/index.md +++ b/files/en-us/web/api/console/info_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.info_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.info()`** static method outputs an informational message to the console. In Firefox, a small "i" icon is displayed next to these items in the console's log. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/log_static/index.md b/files/en-us/web/api/console/log_static/index.md index e8aff094f9a2c5c..13740f04b73c55b 100644 --- a/files/en-us/web/api/console/log_static/index.md +++ b/files/en-us/web/api/console/log_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.log_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.log()`** static method outputs a message to the console. The message may be a single string (with optional substitution values), or it may be any one or more JavaScript objects. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/profile_static/index.md b/files/en-us/web/api/console/profile_static/index.md index 76127c4fa2beddd..a76aab49a1a039d 100644 --- a/files/en-us/web/api/console/profile_static/index.md +++ b/files/en-us/web/api/console/profile_static/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.console.profile_static --- -{{APIRef("Console API")}}{{Non-standard_header}} +{{APIRef("Console API")}}{{Non-standard_header}} {{AvailableInWorkers}} The **`console.profile()`** static method starts recording a performance profile (for example, the [Firefox performance tool](https://firefox-source-docs.mozilla.org/devtools-user/performance/index.html)). @@ -16,8 +16,6 @@ You can optionally supply an argument to name the profile and this then enables To stop recording call {{domxref("console/profileEnd_static", "console.profileEnd()")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/profileend_static/index.md b/files/en-us/web/api/console/profileend_static/index.md index aedb0130cbebdf2..0f5c96d7b042b82 100644 --- a/files/en-us/web/api/console/profileend_static/index.md +++ b/files/en-us/web/api/console/profileend_static/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.console.profileEnd_static --- -{{APIRef("Console API")}}{{Non-standard_header}} +{{APIRef("Console API")}}{{Non-standard_header}} {{AvailableInWorkers}} The **`console.profileEnd()`** static method stops recording a profile previously started with {{domxref("console/profile_static", "console.profile()")}}. @@ -18,8 +18,6 @@ You can optionally supply an argument to name the profile. Doing so enables you - If `console.profileEnd()` is passed a profile name and it does not match the name of a profile being recorded, no changes will be made. - If `console.profileEnd()` is not passed a profile name, the most recently started profile is stopped. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/table_static/index.md b/files/en-us/web/api/console/table_static/index.md index 3bfa412beec1a60..3a81362cab907ad 100644 --- a/files/en-us/web/api/console/table_static/index.md +++ b/files/en-us/web/api/console/table_static/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.console.table_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.table()`** static method displays tabular data as a table. @@ -16,8 +16,6 @@ It logs `data` as a table. Each element in the array (or enumerable property if The first column in the table will be labeled `(index)`. If `data` is an array, then its values will be the array indices. If `data` is an object, then its values will be the property names. Note that (in Firefox) `console.table` is limited to displaying 1000 rows (first row is the labeled index). -{{AvailableInWorkers}} - ### Collections of primitive types The `data` argument may be an array or an object. diff --git a/files/en-us/web/api/console/time_static/index.md b/files/en-us/web/api/console/time_static/index.md index 864c04a18f8a992..dc2d54421b82232 100644 --- a/files/en-us/web/api/console/time_static/index.md +++ b/files/en-us/web/api/console/time_static/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.console.time_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.time()`** static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call {{domxref("console/timeEnd_static", "console.timeEnd()")}} with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started. See [Timers](/en-US/docs/Web/API/console#timers) in the {{domxref("console")}} documentation for details and examples. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/timeend_static/index.md b/files/en-us/web/api/console/timeend_static/index.md index c069d633972ba14..c635bc810082305 100644 --- a/files/en-us/web/api/console/timeend_static/index.md +++ b/files/en-us/web/api/console/timeend_static/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.console.timeEnd_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.timeEnd()`** static method stops a timer that was previously started by calling {{domxref("console/time_static", "console.time()")}}. See [Timers](/en-US/docs/Web/API/console#timers) in the documentation for details and examples. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/timestamp_static/index.md b/files/en-us/web/api/console/timestamp_static/index.md index 46fcf98d3a5e333..ee6a1b0f1c2ab3e 100644 --- a/files/en-us/web/api/console/timestamp_static/index.md +++ b/files/en-us/web/api/console/timestamp_static/index.md @@ -8,14 +8,12 @@ status: browser-compat: api.console.timeStamp_static --- -{{APIRef("Console API")}}{{Non-standard_header}} +{{APIRef("Console API")}}{{Non-standard_header}} {{AvailableInWorkers}} The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool ([Firefox](https://profiler.firefox.com/docs/#/), [Chrome](https://developer.chrome.com/docs/devtools/evaluate-performance/reference/)). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. You can optionally supply an argument to label the timestamp, and this label will then be shown alongside the marker. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/console/trace_static/index.md b/files/en-us/web/api/console/trace_static/index.md index 0c053aa074072e3..7aee585c1b2f614 100644 --- a/files/en-us/web/api/console/trace_static/index.md +++ b/files/en-us/web/api/console/trace_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.trace_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.trace()`** static method outputs a stack trace to the console. -{{AvailableInWorkers}} - > **Note:** In some browsers, `console.trace()` may also output the sequence of calls and asynchronous events leading to the current `console.trace()` which are not on the call stack — to help identify the origin of the current event evaluation loop. See [Stack traces](/en-US/docs/Web/API/console#stack_traces) in the {{domxref("console")}} documentation for details and examples. diff --git a/files/en-us/web/api/console/warn_static/index.md b/files/en-us/web/api/console/warn_static/index.md index a6b244dd8760639..b4f5fabe0f33e7e 100644 --- a/files/en-us/web/api/console/warn_static/index.md +++ b/files/en-us/web/api/console/warn_static/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.console.warn_static --- -{{APIRef("Console API")}} +{{APIRef("Console API")}} {{AvailableInWorkers}} The **`console.warn()`** static method outputs a warning message to the console. -{{AvailableInWorkers}} - > **Note:** In Chrome and Firefox, warnings have a small exclamation point icon next to them in the console log. ## Syntax diff --git a/files/en-us/web/api/console_api/index.md b/files/en-us/web/api/console_api/index.md index 1fc2d264371ea47..430949bda2e0e84 100644 --- a/files/en-us/web/api/console_api/index.md +++ b/files/en-us/web/api/console_api/index.md @@ -5,12 +5,10 @@ page-type: guide browser-compat: api.console --- -{{DefaultAPISidebar("Console API")}} +{{DefaultAPISidebar("Console API")}} {{AvailableInWorkers}} The Console API provides functionality to allow developers to perform debugging tasks, such as logging messages or the values of variables at set points in your code, or timing how long an operation takes to complete. -{{AvailableInWorkers}} - ## Concepts and usage The Console API started as a largely proprietary API, with different browsers implementing it, albeit in inconsistent ways. [The Console API spec](https://console.spec.whatwg.org/) was created to define consistent behavior, and all modern browsers eventually settled on implementing this behavior — although some implementations still have their own additional proprietary functions. Find out about these at: diff --git a/files/en-us/web/api/cookie_store_api/index.md b/files/en-us/web/api/cookie_store_api/index.md index fdc91057902617f..31335ea585c2727 100644 --- a/files/en-us/web/api/cookie_store_api/index.md +++ b/files/en-us/web/api/cookie_store_api/index.md @@ -8,12 +8,10 @@ browser-compat: spec-urls: https://wicg.github.io/cookie-store/ --- -{{securecontext_header}}{{DefaultAPISidebar("Cookie Store API")}} +{{securecontext_header}}{{DefaultAPISidebar("Cookie Store API")}} {{AvailableInWorkers}} The **Cookie Store API** is an asynchronous API for managing cookies, available in windows and also [service workers](/en-US/docs/Web/API/Service_Worker_API). -{{AvailableInWorkers}} - ## Concepts and Usage The existing method of getting and setting cookies involves working with {{domxref("document.cookie")}} as a string of key/value pairs. In addition to this being cumbersome and error prone, it also has a host of issues in the context of modern web development. diff --git a/files/en-us/web/api/cookiestore/delete/index.md b/files/en-us/web/api/cookiestore/delete/index.md index 39cae01620e7d01..0190e2bb759e8b8 100644 --- a/files/en-us/web/api/cookiestore/delete/index.md +++ b/files/en-us/web/api/cookiestore/delete/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.CookieStore.delete --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`delete()`** method of the {{domxref("CookieStore")}} interface deletes a cookie with the given name or options object. The `delete()` method expires the cookie by changing the date to one in the past. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/cookiestore/get/index.md b/files/en-us/web/api/cookiestore/get/index.md index 786232644904e6c..3dd354a92344068 100644 --- a/files/en-us/web/api/cookiestore/get/index.md +++ b/files/en-us/web/api/cookiestore/get/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.CookieStore.get --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`get()`** method of the {{domxref("CookieStore")}} interface returns a single cookie with the given name or options object. The method will return the first matching cookie for the passed parameters. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/cookiestore/getall/index.md b/files/en-us/web/api/cookiestore/getall/index.md index 2ac5b29716cba45..31f037ef64069fc 100644 --- a/files/en-us/web/api/cookiestore/getall/index.md +++ b/files/en-us/web/api/cookiestore/getall/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.CookieStore.getAll --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`getAll()`** method of the {{domxref("CookieStore")}} interface returns a list of cookies that match the name or options passed to it. Passing no parameters will return all cookies for the current context. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/cookiestore/index.md b/files/en-us/web/api/cookiestore/index.md index 9fccfc5b66f70bc..79b83e6a67de801 100644 --- a/files/en-us/web/api/cookiestore/index.md +++ b/files/en-us/web/api/cookiestore/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.CookieStore --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`CookieStore`** interface of the {{domxref("Cookie Store API", "", "", "nocode")}} provides methods for getting and setting cookies asynchronously from either a page or a service worker. @@ -13,8 +13,6 @@ The `CookieStore` is accessed via attributes in the global scope in a {{domxref( {{InheritanceDiagram}} -{{AvailableInWorkers}} - ## Instance methods - {{domxref("CookieStore.delete()")}} diff --git a/files/en-us/web/api/cookiestore/set/index.md b/files/en-us/web/api/cookiestore/set/index.md index 5b7a37db81c4cac..de47b832a055132 100644 --- a/files/en-us/web/api/cookiestore/set/index.md +++ b/files/en-us/web/api/cookiestore/set/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.CookieStore.set --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`set()`** method of the {{domxref("CookieStore")}} interface sets a cookie with the given name and value or options object. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/cookiestoremanager/getsubscriptions/index.md b/files/en-us/web/api/cookiestoremanager/getsubscriptions/index.md index 01fdf3b600bda4a..63a916c07bf0173 100644 --- a/files/en-us/web/api/cookiestoremanager/getsubscriptions/index.md +++ b/files/en-us/web/api/cookiestoremanager/getsubscriptions/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.CookieStoreManager.getSubscriptions --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`getSubscriptions()`** method of the {{domxref("CookieStoreManager")}} interface returns a list of all the cookie change subscriptions for this {{domxref("ServiceWorkerRegistration")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/cookiestoremanager/index.md b/files/en-us/web/api/cookiestoremanager/index.md index 3895fc0f10275ab..e31ecf22fa487cc 100644 --- a/files/en-us/web/api/cookiestoremanager/index.md +++ b/files/en-us/web/api/cookiestoremanager/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.CookieStoreManager --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`CookieStoreManager`** interface of the {{domxref("Cookie Store API", "", "", "nocode")}} allows service workers to subscribe to cookie change events. Call {{domxref("CookieStoreManager.subscribe()","subscribe()")}} on a particular service worker registration to receive change events. @@ -13,8 +13,6 @@ A `CookieStoreManager` has an associated {{domxref("ServiceWorkerRegistration")} To get a `CookieStoreManager`, call {{domxref("ServiceWorkerRegistration.cookies")}}. -{{AvailableInWorkers}} - ## Instance methods - {{domxref("CookieStoreManager.getSubscriptions()")}} diff --git a/files/en-us/web/api/cookiestoremanager/subscribe/index.md b/files/en-us/web/api/cookiestoremanager/subscribe/index.md index 6f45ea927c3bb5a..542b46e0ae2609a 100644 --- a/files/en-us/web/api/cookiestoremanager/subscribe/index.md +++ b/files/en-us/web/api/cookiestoremanager/subscribe/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.CookieStoreManager.subscribe --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`subscribe()`** method of the {{domxref("CookieStoreManager")}} interface subscribes a {{domxref("ServiceWorkerRegistration")}} to cookie change events. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/cookiestoremanager/unsubscribe/index.md b/files/en-us/web/api/cookiestoremanager/unsubscribe/index.md index 1d5b94f222f8009..a563546408cb9e0 100644 --- a/files/en-us/web/api/cookiestoremanager/unsubscribe/index.md +++ b/files/en-us/web/api/cookiestoremanager/unsubscribe/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.CookieStoreManager.unsubscribe --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`unsubscribe()`** method of the {{domxref("CookieStoreManager")}} interface stops the {{domxref("ServiceWorkerRegistration")}} from receiving previously subscribed events. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/crypto/index.md b/files/en-us/web/api/crypto/index.md index 3b0256203d6fd5d..f9ae06e0baeaf9b 100644 --- a/files/en-us/web/api/crypto/index.md +++ b/files/en-us/web/api/crypto/index.md @@ -5,13 +5,11 @@ page-type: web-api-interface browser-compat: api.Crypto --- -{{APIRef("Web Crypto API")}} +{{APIRef("Web Crypto API")}} {{AvailableInWorkers}} The **`Crypto`** interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. -{{AvailableInWorkers}} - The [Web Crypto API](/en-US/docs/Web/API/Web_Crypto_API) is accessed through the global {{domxref("crypto_property", "crypto")}} property, which is a `Crypto` object. ## Instance properties diff --git a/files/en-us/web/api/customevent/index.md b/files/en-us/web/api/customevent/index.md index 076905beed2a013..9a8fb6acd6467ff 100644 --- a/files/en-us/web/api/customevent/index.md +++ b/files/en-us/web/api/customevent/index.md @@ -5,14 +5,12 @@ page-type: web-api-interface browser-compat: api.CustomEvent --- -{{APIRef("DOM")}} +{{APIRef("DOM")}} {{AvailableInWorkers}} The **`CustomEvent`** interface represents events initialized by an application for any purpose. > **Note:** If used to attempt to communicate between a web extension content script and a web page script, a non-string `detail` property throws with "Permission denied to access property" in Firefox. To avoid this issue clone the object. See [Share objects with page scripts](/en-US/docs/Mozilla/Add-ons/WebExtensions/Sharing_objects_with_page_scripts) for more information. -{{AvailableInWorkers}} - {{InheritanceDiagram}} ## Constructor diff --git a/files/en-us/web/api/dedicatedworkerglobalscope/rtctransform_event/index.md b/files/en-us/web/api/dedicatedworkerglobalscope/rtctransform_event/index.md index 696b8da747cf13e..a319cc0ce62cb0a 100644 --- a/files/en-us/web/api/dedicatedworkerglobalscope/rtctransform_event/index.md +++ b/files/en-us/web/api/dedicatedworkerglobalscope/rtctransform_event/index.md @@ -6,7 +6,7 @@ page-type: web-api-event browser-compat: api.DedicatedWorkerGlobalScope.rtctransform_event --- -{{APIRef("WebRTC")}} +{{APIRef("WebRTC")}} {{AvailableInWorkers}} The **`rtctransform`** event is fired at a worker's {{domxref('DedicatedWorkerGlobalScope')}} object when an encoded video or audio frame has been queued for processing by a {{domxref("WebRTC API/Using Encoded Transforms", "WebRTC Encoded Transform", "", "nocode")}}. @@ -14,8 +14,6 @@ The event's {{domxref("RTCTransformEvent.transformer","transformer")}} property This event is not cancellable and does not bubble. -{{AvailableInWorkers}} - ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. diff --git a/files/en-us/web/api/dompointreadonly/index.md b/files/en-us/web/api/dompointreadonly/index.md index b1244c20ca9a754..3027ed046e847b7 100644 --- a/files/en-us/web/api/dompointreadonly/index.md +++ b/files/en-us/web/api/dompointreadonly/index.md @@ -5,12 +5,10 @@ page-type: web-api-interface browser-compat: api.DOMPointReadOnly --- -{{APIRef("Geometry Interfaces")}} +{{APIRef("Geometry Interfaces")}} {{AvailableInWorkers}} The **`DOMPointReadOnly`** interface specifies the coordinate and perspective fields used by {{domxref("DOMPoint")}} to define a 2D or 3D point in a coordinate system. -{{AvailableInWorkers}} - There are two ways to create a new `DOMPointReadOnly` instance. First, you can use its constructor, passing in the values of the parameters for each dimension and, optionally, the perspective: ```js diff --git a/files/en-us/web/api/encoding_api/index.md b/files/en-us/web/api/encoding_api/index.md index fb85641085b47e5..c68d9b2f4b9c756 100644 --- a/files/en-us/web/api/encoding_api/index.md +++ b/files/en-us/web/api/encoding_api/index.md @@ -9,14 +9,12 @@ browser-compat: - api.TextDecoderStream --- -{{DefaultAPISidebar("Encoding API")}} +{{DefaultAPISidebar("Encoding API")}} {{AvailableInWorkers}} The **Encoding API** provides a mechanism for handling text in various {{Glossary("character encoding", "character encodings")}}, including legacy non-{{Glossary("UTF-8")}} encodings. The API provides four interfaces: {{domxref("TextDecoder")}}, {{domxref("TextEncoder")}}, {{domxref("TextDecoderStream")}} and {{domxref("TextEncoderStream")}}. -{{AvailableInWorkers}} - ## Interfaces - {{DOMxRef("TextDecoder")}} diff --git a/files/en-us/web/api/extendablecookiechangeevent/changed/index.md b/files/en-us/web/api/extendablecookiechangeevent/changed/index.md index 665ab6ce4f5f4b8..c187f0f0c6df796 100644 --- a/files/en-us/web/api/extendablecookiechangeevent/changed/index.md +++ b/files/en-us/web/api/extendablecookiechangeevent/changed/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-property browser-compat: api.ExtendableCookieChangeEvent.changed --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`changed`** read-only property of the {{domxref("ExtendableCookieChangeEvent")}} interface returns any cookies that have been changed by the given `ExtendableCookieChangeEvent` instance. -{{AvailableInWorkers}} - ## Value An array of objects containing the changed cookie(s). Each object contains the following properties: diff --git a/files/en-us/web/api/extendablecookiechangeevent/deleted/index.md b/files/en-us/web/api/extendablecookiechangeevent/deleted/index.md index 04f98a96308f865..25c5748c6e923b5 100644 --- a/files/en-us/web/api/extendablecookiechangeevent/deleted/index.md +++ b/files/en-us/web/api/extendablecookiechangeevent/deleted/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-property browser-compat: api.ExtendableCookieChangeEvent.deleted --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`deleted`** read-only property of the {{domxref("ExtendableCookieChangeEvent")}} interface returns any cookies that have been deleted by the given `ExtendableCookieChangeEvent` instance. -{{AvailableInWorkers}} - ## Value An array of objects containing the deleted cookie(s). Each object contains the following properties: diff --git a/files/en-us/web/api/extendablecookiechangeevent/extendablecookiechangeevent/index.md b/files/en-us/web/api/extendablecookiechangeevent/extendablecookiechangeevent/index.md index 22a948b308fba57..ab9d8808697af2d 100644 --- a/files/en-us/web/api/extendablecookiechangeevent/extendablecookiechangeevent/index.md +++ b/files/en-us/web/api/extendablecookiechangeevent/extendablecookiechangeevent/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.ExtendableCookieChangeEvent.ExtendableCookieChangeEvent --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`ExtendableCookieChangeEvent()`** constructor creates a new {{domxref("ExtendableCookieChangeEvent")}} object which is the event type passed to {{domxref("ServiceWorkerGlobalScope/cookiechange_event", "cookiechange")}} event fired at the {{domxref("ServiceWorkerGlobalScope")}} when any cookie changes occur which match the service worker's cookie change subscription list. @@ -14,8 +14,6 @@ This constructor is called by the browser when a change event occurs. > **Note:** This event constructor is generally not needed for production websites. It's primary use is for tests that require an instance of this event. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/extendablecookiechangeevent/index.md b/files/en-us/web/api/extendablecookiechangeevent/index.md index 723daaba69e99b8..7d9d7166e1b1e3d 100644 --- a/files/en-us/web/api/extendablecookiechangeevent/index.md +++ b/files/en-us/web/api/extendablecookiechangeevent/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.ExtendableCookieChangeEvent --- -{{securecontext_header}}{{APIRef("Cookie Store API")}} +{{securecontext_header}}{{APIRef("Cookie Store API")}} {{AvailableInWorkers}} The **`ExtendableCookieChangeEvent`** interface of the {{domxref("Cookie Store API", "", "", "nocode")}} is the event type passed to {{domxref("ServiceWorkerGlobalScope/cookiechange_event", "cookiechange")}} event fired at the {{domxref("ServiceWorkerGlobalScope")}} when any cookie changes occur which match the service worker's cookie change subscription list. A cookie change event consists of a cookie and a type. (either "changed" or "deleted") @@ -17,8 +17,6 @@ Cookie changes that cause the `ExtendableCookieChangeEvent` to be dispatched are > **Note:** A cookie that is replaced due to the insertion of another cookie with the same name, domain, and path, is ignored and does not trigger a change event. -{{AvailableInWorkers}} - {{InheritanceDiagram}} ## Constructor diff --git a/files/en-us/web/api/fetch_api/index.md b/files/en-us/web/api/fetch_api/index.md index 1e42a7e8a7b1be5..bb50f0b790cf2b7 100644 --- a/files/en-us/web/api/fetch_api/index.md +++ b/files/en-us/web/api/fetch_api/index.md @@ -5,12 +5,10 @@ page-type: web-api-overview browser-compat: api.fetch --- -{{DefaultAPISidebar("Fetch API")}} +{{DefaultAPISidebar("Fetch API")}} {{AvailableInWorkers}} The Fetch API provides an interface for fetching resources (including across the network). It is a more powerful and flexible replacement for {{DOMxRef("XMLHttpRequest")}}. -{{AvailableInWorkers}} - ## Concepts and usage The Fetch API uses {{DOMxRef("Request")}} and {{DOMxRef("Response")}} objects (and other things involved with network requests), as well as related concepts such as CORS and the HTTP Origin header semantics. diff --git a/files/en-us/web/api/filereadersync/filereadersync/index.md b/files/en-us/web/api/filereadersync/filereadersync/index.md index 4040fe93a0db887..14f701903467c60 100644 --- a/files/en-us/web/api/filereadersync/filereadersync/index.md +++ b/files/en-us/web/api/filereadersync/filereadersync/index.md @@ -6,12 +6,10 @@ page-type: web-api-constructor browser-compat: api.FileReaderSync.FileReaderSync --- -{{APIRef("File API")}} +{{APIRef("File API")}} {{AvailableInWorkers}} The **`FileReaderSync()`** constructor creates a new {{domxref("FileReaderSync")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/filereadersync/index.md b/files/en-us/web/api/filereadersync/index.md index 6eba87736f29417..95b9351b22e3d0a 100644 --- a/files/en-us/web/api/filereadersync/index.md +++ b/files/en-us/web/api/filereadersync/index.md @@ -5,12 +5,10 @@ page-type: web-api-interface browser-compat: api.FileReaderSync --- -{{APIRef("File API")}} +{{APIRef("File API")}} {{AvailableInWorkers}} The **`FileReaderSync`** interface allows to read {{DOMxRef("File")}} or {{DOMxRef("Blob")}} objects synchronously. This interface is [only available](/en-US/docs/Web/API/Web_Workers_API/Functions_and_classes_available_to_workers) in [workers](/en-US/docs/Web/API/Worker) as it enables synchronous I/O that could potentially block. -{{AvailableInWorkers}} - ## Constructor - {{domxref("FileReaderSync.FileReaderSync", "FileReaderSync()")}} diff --git a/files/en-us/web/api/filereadersync/readasarraybuffer/index.md b/files/en-us/web/api/filereadersync/readasarraybuffer/index.md index 79712d56cd74c45..885da781ee6c405 100644 --- a/files/en-us/web/api/filereadersync/readasarraybuffer/index.md +++ b/files/en-us/web/api/filereadersync/readasarraybuffer/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FileReaderSync.readAsArrayBuffer --- -{{APIRef("File API")}} +{{APIRef("File API")}} {{AvailableInWorkers}} The **`readAsArrayBuffer()`** method of the {{DOMxRef("FileReaderSync")}} interface allows to read {{DOMxRef("File")}} or {{DOMxRef("Blob")}} objects in a synchronous way into an {{jsxref("ArrayBuffer")}}. This interface is [only available](/en-US/docs/Web/API/Web_Workers_API/Functions_and_classes_available_to_workers) in [workers](/en-US/docs/Web/API/Worker) as it enables synchronous I/O that could potentially block. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/filereadersync/readasbinarystring/index.md b/files/en-us/web/api/filereadersync/readasbinarystring/index.md index 952cfd8681f6f91..887317f18b54691 100644 --- a/files/en-us/web/api/filereadersync/readasbinarystring/index.md +++ b/files/en-us/web/api/filereadersync/readasbinarystring/index.md @@ -8,14 +8,12 @@ status: browser-compat: api.FileReaderSync.readAsBinaryString --- -{{APIRef("File API")}}{{deprecated_header}} +{{APIRef("File API")}}{{deprecated_header}} {{AvailableInWorkers}} > **Note:** This method is deprecated in favor of {{DOMxRef("FileReaderSync.readAsArrayBuffer","readAsArrayBuffer()")}}. The **`readAsBinaryString()`** method of the {{DOMxRef("FileReaderSync")}} interface allows to read {{DOMxRef("File")}} or {{DOMxRef("Blob")}} objects in a synchronous way into a string. This interface is [only available](/en-US/docs/Web/API/Web_Workers_API/Functions_and_classes_available_to_workers) in [workers](/en-US/docs/Web/API/Worker) as it enables synchronous I/O that could potentially block. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/filereadersync/readasdataurl/index.md b/files/en-us/web/api/filereadersync/readasdataurl/index.md index 708b01eac6f1817..7482567f3f6082d 100644 --- a/files/en-us/web/api/filereadersync/readasdataurl/index.md +++ b/files/en-us/web/api/filereadersync/readasdataurl/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FileReaderSync.readAsDataURL --- -{{APIRef("File API")}} +{{APIRef("File API")}} {{AvailableInWorkers}} The **`readAsDataURL()`** method of the {{DOMxRef("FileReaderSync")}} interface allows to read {{DOMxRef("File")}} or {{DOMxRef("Blob")}} objects in a synchronous way into a string representing a data URL. This interface is [only available](/en-US/docs/Web/API/Web_Workers_API/Functions_and_classes_available_to_workers) in [workers](/en-US/docs/Web/API/Worker) as it enables synchronous I/O that could potentially block. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/filereadersync/readastext/index.md b/files/en-us/web/api/filereadersync/readastext/index.md index ab51a5806e710da..c568a33604acaab 100644 --- a/files/en-us/web/api/filereadersync/readastext/index.md +++ b/files/en-us/web/api/filereadersync/readastext/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FileReaderSync.readAsText --- -{{APIRef("File API")}} +{{APIRef("File API")}} {{AvailableInWorkers}} The **`readAsText()`** method of the {{DOMxRef("FileReaderSync")}} interface allows to read {{DOMxRef("File")}} or {{DOMxRef("Blob")}} objects in a synchronous way into a string. This interface is [only available](/en-US/docs/Web/API/Web_Workers_API/Functions_and_classes_available_to_workers) in [workers](/en-US/docs/Web/API/Worker) as it enables synchronous I/O that could potentially block. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/append/index.md b/files/en-us/web/api/formdata/append/index.md index e00b03385a2a960..c4e4e8a787d9817 100644 --- a/files/en-us/web/api/formdata/append/index.md +++ b/files/en-us/web/api/formdata/append/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.FormData.append --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`append()`** method of the {{domxref("FormData")}} interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist. The difference between {{domxref("FormData.set", "set()")}} and `append()` is that if the specified key already exists, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/delete/index.md b/files/en-us/web/api/formdata/delete/index.md index a0b1d75f1997c12..bb851a7ac799f38 100644 --- a/files/en-us/web/api/formdata/delete/index.md +++ b/files/en-us/web/api/formdata/delete/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FormData.delete --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`delete()`** method of the {{domxref("FormData")}} interface deletes a key and its value(s) from a `FormData` object. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/entries/index.md b/files/en-us/web/api/formdata/entries/index.md index 6b74b4e62f89ced..372265f7b720fcb 100644 --- a/files/en-us/web/api/formdata/entries/index.md +++ b/files/en-us/web/api/formdata/entries/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FormData.entries --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`FormData.entries()`** method returns an [iterator](/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) which iterates through all key/value pairs contained in the {{domxref("FormData")}}. The key of each pair is a string object, and the value is either a string or a {{domxref("Blob")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/formdata/index.md b/files/en-us/web/api/formdata/formdata/index.md index d01dbeebe089c5e..93d72aca149271b 100644 --- a/files/en-us/web/api/formdata/formdata/index.md +++ b/files/en-us/web/api/formdata/formdata/index.md @@ -6,12 +6,10 @@ page-type: web-api-constructor browser-compat: api.FormData.FormData --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`FormData()`** constructor creates a new {{domxref("FormData")}} object. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/get/index.md b/files/en-us/web/api/formdata/get/index.md index 5ec74cb381bf952..5a552b0577dda9a 100644 --- a/files/en-us/web/api/formdata/get/index.md +++ b/files/en-us/web/api/formdata/get/index.md @@ -6,15 +6,13 @@ page-type: web-api-instance-method browser-compat: api.FormData.get --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`get()`** method of the {{domxref("FormData")}} interface returns the first value associated with a given key from within a `FormData` object. If you expect multiple values and want all of them, use the {{domxref("FormData.getAll()","getAll()")}} method instead. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/getall/index.md b/files/en-us/web/api/formdata/getall/index.md index ef2afb9520750b0..06795c44adc8eda 100644 --- a/files/en-us/web/api/formdata/getall/index.md +++ b/files/en-us/web/api/formdata/getall/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FormData.getAll --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`getAll()`** method of the {{domxref("FormData")}} interface returns all the values associated with a given key from within a `FormData` object. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/has/index.md b/files/en-us/web/api/formdata/has/index.md index abc1f0a63f471d9..a8e7cf574cddcd1 100644 --- a/files/en-us/web/api/formdata/has/index.md +++ b/files/en-us/web/api/formdata/has/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FormData.has --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`has()`** method of the {{domxref("FormData")}} interface returns whether a `FormData` object contains a certain key. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/index.md b/files/en-us/web/api/formdata/index.md index b8cb4a97abf604c..17b4ea3d3232337 100644 --- a/files/en-us/web/api/formdata/index.md +++ b/files/en-us/web/api/formdata/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.FormData --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the {{domxref("fetch()")}}, {{domxref("XMLHttpRequest.send()")}} or {{domxref("navigator.sendBeacon()")}} methods. It uses the same format a form would use if the encoding type were set to `"multipart/form-data"`. @@ -13,8 +13,6 @@ You can also pass it directly to the {{domxref("URLSearchParams")}} constructor An object implementing `FormData` can directly be used in a {{jsxref("Statements/for...of", "for...of")}} structure, instead of {{domxref('FormData.entries()', 'entries()')}}: `for (const p of myFormData)` is equivalent to `for (const p of myFormData.entries())`. -{{AvailableInWorkers}} - ## Constructor - {{domxref("FormData.FormData","FormData()")}} diff --git a/files/en-us/web/api/formdata/keys/index.md b/files/en-us/web/api/formdata/keys/index.md index 7ebdf4aa722a198..09a273885fe9ebf 100644 --- a/files/en-us/web/api/formdata/keys/index.md +++ b/files/en-us/web/api/formdata/keys/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FormData.keys --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`FormData.keys()`** method returns an [iterator](/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) which iterates through all keys contained in the {{domxref("FormData")}}. The keys are strings. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/set/index.md b/files/en-us/web/api/formdata/set/index.md index 763a7fae52d5281..d15d3a6751e06ce 100644 --- a/files/en-us/web/api/formdata/set/index.md +++ b/files/en-us/web/api/formdata/set/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.FormData.set --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`set()`** method of the {{domxref("FormData")}} interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist. The difference between `set()` and {{domxref("FormData.append", "append()")}} is that if the specified key does already exist, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/formdata/values/index.md b/files/en-us/web/api/formdata/values/index.md index 48c262de9835916..a422cd53c0f9c4f 100644 --- a/files/en-us/web/api/formdata/values/index.md +++ b/files/en-us/web/api/formdata/values/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.FormData.values --- -{{APIRef("XMLHttpRequest API")}} +{{APIRef("XMLHttpRequest API")}} {{AvailableInWorkers}} The **`FormData.values()`** method returns an [iterator](/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) which iterates through all values contained in the {{domxref("FormData")}}. The values are strings or {{domxref("Blob")}} objects. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/append/index.md b/files/en-us/web/api/headers/append/index.md index 0389cf26cbe52a4..f68132d315fcf5f 100644 --- a/files/en-us/web/api/headers/append/index.md +++ b/files/en-us/web/api/headers/append/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Headers.append --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`append()`** method of the {{domxref("Headers")}} interface appends a new value onto an existing header inside a `Headers` @@ -21,8 +21,6 @@ For security reasons, some headers can only be controlled by the user agent. The headers include the {{Glossary("Forbidden_header_name", "forbidden header names")}} and {{Glossary("Forbidden_response_header_name", "forbidden response header names")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/delete/index.md b/files/en-us/web/api/headers/delete/index.md index 91ddff9fedd7d3f..44bbc291b1046f3 100644 --- a/files/en-us/web/api/headers/delete/index.md +++ b/files/en-us/web/api/headers/delete/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Headers.delete --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`delete()`** method of the {{domxref("Headers")}} interface deletes a header from the current `Headers` object. @@ -20,8 +20,6 @@ For security reasons, some headers can only be controlled by the user agent. The headers include the {{Glossary("Forbidden_header_name", "forbidden header names")}} and {{Glossary("Forbidden_response_header_name", "forbidden response header names")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/entries/index.md b/files/en-us/web/api/headers/entries/index.md index dd31379a6d20403..e33bf41a21ad332 100644 --- a/files/en-us/web/api/headers/entries/index.md +++ b/files/en-us/web/api/headers/entries/index.md @@ -6,15 +6,13 @@ page-type: web-api-instance-method browser-compat: api.Headers.entries --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`Headers.entries()`** method returns an {{jsxref("Iteration_protocols",'iterator')}} allowing to go through all key/value pairs contained in this object. Both the key and value of each pair are {{jsxref("String")}} objects. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/foreach/index.md b/files/en-us/web/api/headers/foreach/index.md index f730cf68a033e8d..1863a05f46e00c2 100644 --- a/files/en-us/web/api/headers/foreach/index.md +++ b/files/en-us/web/api/headers/foreach/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.Headers.forEach --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`Headers.forEach()`** method executes a callback function once per each key/value pair in the [`Headers`](/en-US/docs/Web/API/Headers) object. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/get/index.md b/files/en-us/web/api/headers/get/index.md index d93705a611d3b6a..72d69f461dc34f3 100644 --- a/files/en-us/web/api/headers/get/index.md +++ b/files/en-us/web/api/headers/get/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Headers.get --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`get()`** method of the {{domxref("Headers")}} interface returns a byte string of all the values of a header within a `Headers` object @@ -17,8 +17,6 @@ For security reasons, some headers can only be controlled by the user agent. The headers include the {{Glossary("Forbidden_header_name", "forbidden header names")}} and {{Glossary("Forbidden_response_header_name", "forbidden response header names")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/getsetcookie/index.md b/files/en-us/web/api/headers/getsetcookie/index.md index 5fa23ba6ddd43e4..e432fb65ac88c64 100644 --- a/files/en-us/web/api/headers/getsetcookie/index.md +++ b/files/en-us/web/api/headers/getsetcookie/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.Headers.getSetCookie --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`getSetCookie()`** method of the {{domxref("Headers")}} interface returns an array containing the values of all {{httpheader("Set-Cookie")}} headers associated with a response. This allows {{domxref("Headers")}} objects to handle having multiple `Set-Cookie` headers, which wasn't possible prior to its implementation. This method is intended for use on server environments (for example Node.js). Browsers block frontend JavaScript code from accessing the {{httpheader("Set-Cookie")}} header, as required by the Fetch spec, which defines `Set-Cookie` as a [forbidden response-header name](https://fetch.spec.whatwg.org/#forbidden-response-header-name) that [must be filtered out](https://fetch.spec.whatwg.org/#ref-for-forbidden-response-header-name%E2%91%A0) from any response exposed to frontend code. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/has/index.md b/files/en-us/web/api/headers/has/index.md index f2ca49cc98118c6..df68bdda66d434d 100644 --- a/files/en-us/web/api/headers/has/index.md +++ b/files/en-us/web/api/headers/has/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Headers.has --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`has()`** method of the {{domxref("Headers")}} interface returns a boolean stating whether a `Headers` object contains a certain @@ -16,8 +16,6 @@ For security reasons, some headers can only be controlled by the user agent. The headers include the {{Glossary("Forbidden_header_name", "forbidden header names")}} and {{Glossary("Forbidden_response_header_name", "forbidden response header names")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/headers/index.md b/files/en-us/web/api/headers/headers/index.md index ce15319cab379e1..ea5404c647495fd 100644 --- a/files/en-us/web/api/headers/headers/index.md +++ b/files/en-us/web/api/headers/headers/index.md @@ -6,13 +6,11 @@ page-type: web-api-constructor browser-compat: api.Headers.Headers --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`Headers()`** constructor creates a new {{domxref("Headers")}} object. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/index.md b/files/en-us/web/api/headers/index.md index ebb60c834284a47..229c5addd95722e 100644 --- a/files/en-us/web/api/headers/index.md +++ b/files/en-us/web/api/headers/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.Headers --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`Headers`** interface of the [Fetch API](/en-US/docs/Web/API/Fetch_API) allows you to perform various actions on [HTTP request and response headers](/en-US/docs/Web/HTTP/Headers). These actions include retrieving, setting, adding to, and removing headers from the list of the request's headers. @@ -21,8 +21,6 @@ An object implementing `Headers` can directly be used in a {{jsxref("Statements/ > **Note:** you can find out more about the available headers by reading our [HTTP headers](/en-US/docs/Web/HTTP/Headers) reference. -{{AvailableInWorkers}} - ## Constructor - {{domxref("Headers.Headers()", "Headers()")}} diff --git a/files/en-us/web/api/headers/keys/index.md b/files/en-us/web/api/headers/keys/index.md index 86671e3ee5e0545..eae2284360d34e8 100644 --- a/files/en-us/web/api/headers/keys/index.md +++ b/files/en-us/web/api/headers/keys/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.Headers.keys --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`Headers.keys()`** method returns an {{jsxref("Iteration_protocols",'iterator')}} allowing to go through all keys contained in this object. The keys are {{jsxref("String")}} objects. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/set/index.md b/files/en-us/web/api/headers/set/index.md index 3cdf017f0d0a40d..09d089cc9d1fa89 100644 --- a/files/en-us/web/api/headers/set/index.md +++ b/files/en-us/web/api/headers/set/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Headers.set --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`set()`** method of the {{domxref("Headers")}} interface sets a new value for an existing header inside a `Headers` object, or adds @@ -21,8 +21,6 @@ For security reasons, some headers can only be controlled by the user agent. The headers include the {{Glossary("Forbidden_header_name", "forbidden header names")}} and {{Glossary("Forbidden_response_header_name", "forbidden response header names")}}. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/headers/values/index.md b/files/en-us/web/api/headers/values/index.md index ea8f19176cdb3bc..323dde7462fb0c8 100644 --- a/files/en-us/web/api/headers/values/index.md +++ b/files/en-us/web/api/headers/values/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.Headers.values --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}} {{AvailableInWorkers}} The **`Headers.values()`** method returns an {{jsxref("Iteration_protocols",'iterator')}} allowing to go through all values contained in this object. The values are {{jsxref("String")}} objects. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbcursor/advance/index.md b/files/en-us/web/api/idbcursor/advance/index.md index ad7415f00b89d87..5c53736f46a2895 100644 --- a/files/en-us/web/api/idbcursor/advance/index.md +++ b/files/en-us/web/api/idbcursor/advance/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.IDBCursor.advance --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`advance()`** method of the {{domxref("IDBCursor")}} interface sets the number of times a cursor should move its position forward. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbcursor/continue/index.md b/files/en-us/web/api/idbcursor/continue/index.md index 2f8f3d30ef1f992..e52652bda06a976 100644 --- a/files/en-us/web/api/idbcursor/continue/index.md +++ b/files/en-us/web/api/idbcursor/continue/index.md @@ -6,15 +6,13 @@ page-type: web-api-instance-method browser-compat: api.IDBCursor.continue --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`continue()`** method of the {{domxref("IDBCursor")}} interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter. If no key is specified, the cursor advances to the immediate next position, based on its direction. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbcursor/continueprimarykey/index.md b/files/en-us/web/api/idbcursor/continueprimarykey/index.md index 2f098c023caca0c..68f9b0bffecde09 100644 --- a/files/en-us/web/api/idbcursor/continueprimarykey/index.md +++ b/files/en-us/web/api/idbcursor/continueprimarykey/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBCursor.continuePrimaryKey --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`continuePrimaryKey()`** method of the {{domxref("IDBCursor")}} interface advances the cursor to the item whose key @@ -24,8 +24,6 @@ the cursor's got value flag has been unset. This method is only valid for cursors coming from an index. Using it for cursors coming from an object store will throw an error. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbcursor/delete/index.md b/files/en-us/web/api/idbcursor/delete/index.md index 76cee3b0061a671..e70ced77c8f84c8 100644 --- a/files/en-us/web/api/idbcursor/delete/index.md +++ b/files/en-us/web/api/idbcursor/delete/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBCursor.delete --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`delete()`** method of the {{domxref("IDBCursor")}} interface returns an {{domxref("IDBRequest")}} object, and, in a separate thread, @@ -18,8 +18,6 @@ Be aware that you can't call `delete()` (or {{domxref("IDBIndex.openKeyCursor()")}}. For such needs, you have to use {{domxref("IDBIndex.openCursor()")}} instead. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbcursor/direction/index.md b/files/en-us/web/api/idbcursor/direction/index.md index bf74892939e0f8f..38e36b874c31abe 100644 --- a/files/en-us/web/api/idbcursor/direction/index.md +++ b/files/en-us/web/api/idbcursor/direction/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.IDBCursor.direction --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`direction`** read-only property of the {{domxref("IDBCursor")}} interface is a string that returns the @@ -14,8 +14,6 @@ direction of traversal of the cursor (set using {{domxref("IDBObjectStore.openCursor")}} for example). See the [Values](#values) section below for possible values. -{{AvailableInWorkers}} - ## Value A string indicating the direction in which the cursor is traversing the data. diff --git a/files/en-us/web/api/idbcursor/index.md b/files/en-us/web/api/idbcursor/index.md index cd6f48fffdc36cd..8fbcff1ff156181 100644 --- a/files/en-us/web/api/idbcursor/index.md +++ b/files/en-us/web/api/idbcursor/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.IDBCursor --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} > **Note:** Not to be confused with {{domxref("IDBCursorWithValue")}} which is just an **`IDBCursor`** interface with an additional **`value`** property. @@ -15,8 +15,6 @@ The cursor has a source that indicates which index or object store it is iterati You can have an unlimited number of cursors at the same time. You always get the same `IDBCursor` object representing a given cursor. Operations are performed on the underlying index or object store. -{{AvailableInWorkers}} - ## Instance properties > **Note:** {{domxref("IDBCursorWithValue")}} is an **`IDBCursor`** interface with an additional **`value`** property. diff --git a/files/en-us/web/api/idbcursor/key/index.md b/files/en-us/web/api/idbcursor/key/index.md index 08cc8586b07a2e5..3ea0605567250e8 100644 --- a/files/en-us/web/api/idbcursor/key/index.md +++ b/files/en-us/web/api/idbcursor/key/index.md @@ -6,15 +6,13 @@ page-type: web-api-instance-property browser-compat: api.IDBCursor.key --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`key`** read-only property of the {{domxref("IDBCursor")}} interface returns the key for the record at the cursor's position. If the cursor is outside its range, this is set to undefined. The cursor's key can be any data type. -{{AvailableInWorkers}} - ## Value A value of any type. diff --git a/files/en-us/web/api/idbcursor/primarykey/index.md b/files/en-us/web/api/idbcursor/primarykey/index.md index 6ae678b0dfcd7de..be134e4294d2e2c 100644 --- a/files/en-us/web/api/idbcursor/primarykey/index.md +++ b/files/en-us/web/api/idbcursor/primarykey/index.md @@ -6,15 +6,13 @@ page-type: web-api-instance-property browser-compat: api.IDBCursor.primaryKey --- -{{APIRef("IDBCursor")}} +{{APIRef("IDBCursor")}} {{AvailableInWorkers}} The **`primaryKey`** read-only property of the {{domxref("IDBCursor")}} interface returns the cursor's current effective key. If the cursor is currently being iterated or has iterated outside its range, this is set to undefined. The cursor's primary key can be any data type. -{{AvailableInWorkers}} - ## Value A value of any data type. diff --git a/files/en-us/web/api/idbcursor/request/index.md b/files/en-us/web/api/idbcursor/request/index.md index f9d555ddcd07551..9527caeec4a36b8 100644 --- a/files/en-us/web/api/idbcursor/request/index.md +++ b/files/en-us/web/api/idbcursor/request/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-property browser-compat: api.IDBCursor.request --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`request`** read-only property of the {{domxref("IDBCursor")}} interface returns the {{domxref("IDBRequest")}} used to obtain the cursor. -{{AvailableInWorkers}} - ## Value An {{domxref("IDBRequest")}} object instance. diff --git a/files/en-us/web/api/idbcursor/source/index.md b/files/en-us/web/api/idbcursor/source/index.md index 76877a49794c560..38372e3e3850422 100644 --- a/files/en-us/web/api/idbcursor/source/index.md +++ b/files/en-us/web/api/idbcursor/source/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.IDBCursor.source --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`source`** read-only property of the {{domxref("IDBCursor")}} interface returns the {{domxref("IDBObjectStore")}} or @@ -14,8 +14,6 @@ The **`source`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active. -{{AvailableInWorkers}} - ## Value The {{domxref("IDBObjectStore")}} or {{domxref("IDBIndex")}} that the cursor is diff --git a/files/en-us/web/api/idbcursor/update/index.md b/files/en-us/web/api/idbcursor/update/index.md index bf7180187e12fae..fb7996027fd5911 100644 --- a/files/en-us/web/api/idbcursor/update/index.md +++ b/files/en-us/web/api/idbcursor/update/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBCursor.update --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`update()`** method of the {{domxref("IDBCursor")}} interface returns an {{domxref("IDBRequest")}} object, and, in a separate thread, @@ -18,8 +18,6 @@ Be aware that you can't call `update()` (or {{domxref("IDBIndex.openKeyCursor()")}}. For such needs, you have to use {{domxref("IDBIndex.openCursor()")}} instead. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbcursorwithvalue/index.md b/files/en-us/web/api/idbcursorwithvalue/index.md index 3ef817709004d8b..79502c3e5d560a5 100644 --- a/files/en-us/web/api/idbcursorwithvalue/index.md +++ b/files/en-us/web/api/idbcursorwithvalue/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.IDBCursorWithValue --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`IDBCursorWithValue`** interface of the [IndexedDB API](/en-US/docs/Web/API/IndexedDB_API) represents a [cursor](/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#cursor) for traversing or iterating over multiple records in a database. It is the same as the {{domxref("IDBCursor")}}, except that it includes the `value` property. @@ -13,8 +13,6 @@ The cursor has a source that indicates which index or object store it is iterati You can have an unlimited number of cursors at the same time. You always get the same `IDBCursorWithValue` object representing a given cursor. Operations are performed on the underlying index or object store. -{{AvailableInWorkers}} - {{InheritanceDiagram}} ## Instance methods diff --git a/files/en-us/web/api/idbcursorwithvalue/value/index.md b/files/en-us/web/api/idbcursorwithvalue/value/index.md index 7968b68ea1ae364..e8a7999e8b31d95 100644 --- a/files/en-us/web/api/idbcursorwithvalue/value/index.md +++ b/files/en-us/web/api/idbcursorwithvalue/value/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-property browser-compat: api.IDBCursorWithValue.value --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`value`** read-only property of the {{domxref("IDBCursorWithValue")}} interface returns the value of the current cursor, whatever that is. -{{AvailableInWorkers}} - ## Value The value of the current cursor. diff --git a/files/en-us/web/api/idbdatabase/close/index.md b/files/en-us/web/api/idbdatabase/close/index.md index fcf2c0d010648cc..a1cff14200b36d1 100644 --- a/files/en-us/web/api/idbdatabase/close/index.md +++ b/files/en-us/web/api/idbdatabase/close/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBDatabase.close --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`close()`** method of the {{domxref("IDBDatabase")}} interface returns immediately and closes the connection in a separate thread. @@ -16,8 +16,6 @@ connection are complete. No new transactions can be created for this connection this method is called. Methods that create transactions throw an exception if a closing operation is pending. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbdatabase/createobjectstore/index.md b/files/en-us/web/api/idbdatabase/createobjectstore/index.md index 9a725d3600b8c6d..76d16795c30dcd8 100644 --- a/files/en-us/web/api/idbdatabase/createobjectstore/index.md +++ b/files/en-us/web/api/idbdatabase/createobjectstore/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBDatabase.createObjectStore --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`createObjectStore()`** method of the {{domxref("IDBDatabase")}} interface creates and returns a new {{domxref("IDBObjectStore")}}. @@ -19,8 +19,6 @@ to every object, and every object should have that property. This method can be called _only_ within a [`versionchange`](/en-US/docs/Web/API/IDBTransaction#version_change) transaction. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbdatabase/deleteobjectstore/index.md b/files/en-us/web/api/idbdatabase/deleteobjectstore/index.md index aa6a771a6298e14..5b927551083dfb0 100644 --- a/files/en-us/web/api/idbdatabase/deleteobjectstore/index.md +++ b/files/en-us/web/api/idbdatabase/deleteobjectstore/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBDatabase.deleteObjectStore --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`deleteObjectStore()`** method of the {{domxref("IDBDatabase")}} interface destroys the object store with the given name in @@ -16,8 +16,6 @@ As with {{ domxref("IDBDatabase.createObjectStore") }}, this method can be calle _only_ within a [`versionchange`](/en-US/docs/Web/API/IDBTransaction#version_change) transaction. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbdatabase/index.md b/files/en-us/web/api/idbdatabase/index.md index 6e861d9acb03901..dcd30550dd7e6b4 100644 --- a/files/en-us/web/api/idbdatabase/index.md +++ b/files/en-us/web/api/idbdatabase/index.md @@ -5,12 +5,10 @@ page-type: web-api-interface browser-compat: api.IDBDatabase --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`IDBDatabase`** interface of the IndexedDB API provides a [connection to a database](/en-US/docs/Web/API/IndexedDB_API#database_connection); you can use an `IDBDatabase` object to open a [transaction](/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#transaction) on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. -{{AvailableInWorkers}} - > **Note:** Everything you do in IndexedDB always happens in the context of a [transaction](/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#transaction), representing interactions with data in the database. All objects in IndexedDB — including object stores, indexes, and cursors — are tied to a particular transaction. Thus, you cannot execute commands, access data, or open anything outside of a transaction. {{InheritanceDiagram}} diff --git a/files/en-us/web/api/idbdatabase/name/index.md b/files/en-us/web/api/idbdatabase/name/index.md index fb5a7501f8411e1..01ee4325047a086 100644 --- a/files/en-us/web/api/idbdatabase/name/index.md +++ b/files/en-us/web/api/idbdatabase/name/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-property browser-compat: api.IDBDatabase.name --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`name`** read-only property of the `IDBDatabase` interface is a string that contains the name of the connected database. -{{AvailableInWorkers}} - ## Value A string containing the name of the connected database. diff --git a/files/en-us/web/api/idbdatabase/objectstorenames/index.md b/files/en-us/web/api/idbdatabase/objectstorenames/index.md index 2c0ded570d6bef5..ac9a657f42078b5 100644 --- a/files/en-us/web/api/idbdatabase/objectstorenames/index.md +++ b/files/en-us/web/api/idbdatabase/objectstorenames/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-property browser-compat: api.IDBDatabase.objectStoreNames --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`objectStoreNames`** read-only property of the {{domxref("IDBDatabase")}} interface is a {{ domxref("DOMStringList") }} containing a list of the names of the [object stores](/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#object_store) currently in the connected database. -{{AvailableInWorkers}} - ## Value A {{ domxref("DOMStringList") }} containing a list of diff --git a/files/en-us/web/api/idbdatabase/transaction/index.md b/files/en-us/web/api/idbdatabase/transaction/index.md index ad0a29119c727f4..d297b7cd68f596f 100644 --- a/files/en-us/web/api/idbdatabase/transaction/index.md +++ b/files/en-us/web/api/idbdatabase/transaction/index.md @@ -6,15 +6,13 @@ page-type: web-api-instance-method browser-compat: api.IDBDatabase.transaction --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`transaction`** method of the {{domxref("IDBDatabase")}} interface immediately returns a transaction object ({{domxref("IDBTransaction")}}) containing the {{domxref("IDBTransaction.objectStore")}} method, which you can use to access your object store. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbdatabase/version/index.md b/files/en-us/web/api/idbdatabase/version/index.md index 876d3e1b097ad15..624a0b1b82e3b12 100644 --- a/files/en-us/web/api/idbdatabase/version/index.md +++ b/files/en-us/web/api/idbdatabase/version/index.md @@ -6,15 +6,13 @@ page-type: web-api-instance-property browser-compat: api.IDBDatabase.version --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`version`** property of the {{domxref("IDBDatabase")}} interface is a [64-bit integer](/en-US/docs/NSPR_API_Reference/Long_Long_%2864-bit%29_Integers) that contains the version of the connected database. When a database is first created, this attribute is an empty string. -{{AvailableInWorkers}} - ## Value An integer containing the version of the connected database. diff --git a/files/en-us/web/api/idbfactory/cmp/index.md b/files/en-us/web/api/idbfactory/cmp/index.md index e19c9fd2c0543a3..686626b7dfc8607 100644 --- a/files/en-us/web/api/idbfactory/cmp/index.md +++ b/files/en-us/web/api/idbfactory/cmp/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.IDBFactory.cmp --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`cmp()`** method of the {{domxref("IDBFactory")}} interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating. -{{AvailableInWorkers}} - > **Note:** Do not use this method for comparing arbitrary JavaScript > values, because many JavaScript values are either not valid IndexedDB keys (booleans > and objects, for example) or are treated as equivalent IndexedDB keys (for example, diff --git a/files/en-us/web/api/idbfactory/databases/index.md b/files/en-us/web/api/idbfactory/databases/index.md index 45b553b2f0a7e91..123cf46e8cddca7 100644 --- a/files/en-us/web/api/idbfactory/databases/index.md +++ b/files/en-us/web/api/idbfactory/databases/index.md @@ -6,12 +6,10 @@ page-type: web-api-instance-method browser-compat: api.IDBFactory.databases --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`databases`** method of the {{domxref("IDBFactory")}} interface returns a list representing all the available databases, including their names and versions. -{{AvailableInWorkers}} - > **Note:** This method is introduced in a draft of a specifications and browser compatibility is limited. ## Syntax diff --git a/files/en-us/web/api/idbfactory/deletedatabase/index.md b/files/en-us/web/api/idbfactory/deletedatabase/index.md index 944225d7d60d151..5bf243a572f46eb 100644 --- a/files/en-us/web/api/idbfactory/deletedatabase/index.md +++ b/files/en-us/web/api/idbfactory/deletedatabase/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBFactory.deleteDatabase --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`deleteDatabase()`** method of the {{DOMxRef("IDBFactory")}} interface requests the deletion of a database. The method @@ -22,8 +22,6 @@ method. When `deleteDatabase()` is called, any other open connections to this particular database will get a [versionchange](/en-US/docs/Web/API/IDBDatabase/versionchange_event) event. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbfactory/index.md b/files/en-us/web/api/idbfactory/index.md index 28bd06424f086bd..bfcb12d7bc59931 100644 --- a/files/en-us/web/api/idbfactory/index.md +++ b/files/en-us/web/api/idbfactory/index.md @@ -5,12 +5,10 @@ page-type: web-api-interface browser-compat: api.IDBFactory --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`IDBFactory`** interface of the [IndexedDB API](/en-US/docs/Web/API/IndexedDB_API) lets applications asynchronously access the indexed databases. The object that implements the interface is `window.indexedDB`. You open — that is, create and access — and delete a database with this object, and not directly with `IDBFactory`. -{{AvailableInWorkers}} - ## Instance methods - {{domxref("IDBFactory.open")}} diff --git a/files/en-us/web/api/idbfactory/open/index.md b/files/en-us/web/api/idbfactory/open/index.md index 33e06e64e586f93..817e3a538d9e82a 100644 --- a/files/en-us/web/api/idbfactory/open/index.md +++ b/files/en-us/web/api/idbfactory/open/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBFactory.open --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} The **`open()`** method of the {{domxref("IDBFactory")}} interface requests opening a [connection to a database](/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#database_connection). @@ -15,8 +15,6 @@ If the operation is successful, a `success` event is fired on the request object May trigger `upgradeneeded`, `blocked` or `versionchange` events. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbindex/count/index.md b/files/en-us/web/api/idbindex/count/index.md index 2107de2a13b5605..ad381d613b8a5a1 100644 --- a/files/en-us/web/api/idbindex/count/index.md +++ b/files/en-us/web/api/idbindex/count/index.md @@ -6,14 +6,12 @@ page-type: web-api-instance-method browser-compat: api.IDBIndex.count --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`count()`** method of the {{domxref("IDBIndex")}} interface returns an {{domxref("IDBRequest")}} object, and in a separate thread, returns the number of records within a key range. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbindex/get/index.md b/files/en-us/web/api/idbindex/get/index.md index 5f1818f7fd0ac82..31864ee2d17d9c1 100644 --- a/files/en-us/web/api/idbindex/get/index.md +++ b/files/en-us/web/api/idbindex/get/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBIndex.get --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`get()`** method of the {{domxref("IDBIndex")}} interface returns an {{domxref("IDBRequest")}} object, and, in a separate thread, @@ -18,8 +18,6 @@ If a value is found, then a structured clone of it is created and set as the `result` of the request object: this returns the record the key is associated with. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbindex/getkey/index.md b/files/en-us/web/api/idbindex/getkey/index.md index 4c433b5aaafbd84..93f157be3c8e012 100644 --- a/files/en-us/web/api/idbindex/getkey/index.md +++ b/files/en-us/web/api/idbindex/getkey/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBIndex.getKey --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`getKey()`** method of the {{domxref("IDBIndex")}} interface returns an {{domxref("IDBRequest")}} object, and, in a separate thread, @@ -17,8 +17,6 @@ first corresponding primary key, if `key` is set to an If a primary key is found, it is set as the `result` of the request object. Note that this doesn't return the whole record as {{domxref("IDBIndex.get")}} does. -{{AvailableInWorkers}} - ## Syntax ```js-nolint diff --git a/files/en-us/web/api/idbindex/index.md b/files/en-us/web/api/idbindex/index.md index 6e65ca3ebc5c877..351e7caf94d7483 100644 --- a/files/en-us/web/api/idbindex/index.md +++ b/files/en-us/web/api/idbindex/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.IDBIndex --- -{{APIRef("IndexedDB")}} +{{APIRef("IndexedDB")}} {{AvailableInWorkers}} `IDBIndex` interface of the [IndexedDB API](/en-US/docs/Web/API/IndexedDB_API) provides asynchronous access to an [index](/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#index) in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. @@ -15,8 +15,6 @@ The index is a persistent key-value storage where the value part of its records You can grab a set of keys within a range. To learn more, see {{domxref("IDBKeyRange")}}. -{{AvailableInWorkers}} - ## Instance properties - {{domxref("IDBIndex.isAutoLocale")}} {{ReadOnlyInline}} {{ non-standard_inline }} {{deprecated_inline}} diff --git a/files/en-us/web/api/idbindex/keypath/index.md b/files/en-us/web/api/idbindex/keypath/index.md index 66df528d77e4362..500c84f2a2b89e3 100644 --- a/files/en-us/web/api/idbindex/keypath/index.md +++ b/files/en-us/web/api/idbindex/keypath/index.md @@ -6,13 +6,11 @@ page-type: web-api-instance-property browser-compat: api.IDBIndex.keyPath --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`keyPath`** property of the {{domxref("IDBIndex")}} interface returns the [key path](/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#key_path) of the current index. If null, this index is not auto-populated. -{{AvailableInWorkers}} - ## Value Any data type that can be used as a key path. diff --git a/files/en-us/web/api/idbindex/multientry/index.md b/files/en-us/web/api/idbindex/multientry/index.md index dece1e523da6f71..6eeb907d7db8e2d 100644 --- a/files/en-us/web/api/idbindex/multientry/index.md +++ b/files/en-us/web/api/idbindex/multientry/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.IDBIndex.multiEntry --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`multiEntry`** read-only property of the {{domxref("IDBIndex")}} interface returns a boolean value that affects how the index @@ -16,8 +16,6 @@ This is decided when the index is created, using the {{domxref("IDBObjectStore.createIndex")}} method. This method takes an optional `options` parameter whose `multiEntry` property is set to `true`/`false`. -{{AvailableInWorkers}} - ## Value A boolean value: diff --git a/files/en-us/web/api/idbindex/name/index.md b/files/en-us/web/api/idbindex/name/index.md index 733b911fc452979..4e6b6ee85146868 100644 --- a/files/en-us/web/api/idbindex/name/index.md +++ b/files/en-us/web/api/idbindex/name/index.md @@ -6,13 +6,11 @@ page-type: web-api-instance-property browser-compat: api.IDBIndex.name --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`name`** property of the {{domxref("IDBIndex")}} interface contains a string which names the index. -{{AvailableInWorkers}} - ## Value A string specifying a name for the index. diff --git a/files/en-us/web/api/idbindex/objectstore/index.md b/files/en-us/web/api/idbindex/objectstore/index.md index 498a47b02aea145..666337e391678a2 100644 --- a/files/en-us/web/api/idbindex/objectstore/index.md +++ b/files/en-us/web/api/idbindex/objectstore/index.md @@ -6,13 +6,11 @@ page-type: web-api-instance-property browser-compat: api.IDBIndex.objectStore --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`objectStore`** property of the {{domxref("IDBIndex")}} interface returns the object store referenced by the current index. -{{AvailableInWorkers}} - ## Value An {{ domxref("IDBObjectStore") }}. diff --git a/files/en-us/web/api/idbindex/opencursor/index.md b/files/en-us/web/api/idbindex/opencursor/index.md index 4ed2518d46351c3..d875a612eecc7de 100644 --- a/files/en-us/web/api/idbindex/opencursor/index.md +++ b/files/en-us/web/api/idbindex/opencursor/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.IDBIndex.openCursor --- -{{ APIRef("IndexedDB") }} +{{ APIRef("IndexedDB") }} {{AvailableInWorkers}} The **`openCursor()`** method of the {{domxref("IDBIndex")}} interface returns an {{domxref("IDBRequest")}} object, and, in a separate thread, @@ -18,8 +18,6 @@ specified direction. If the key range is not specified or is null, then the range includes all the records. -{{AvailableInWorkers}} - ## Syntax ```js-nolint