diff --git a/files/en-us/web/api/console_api/index.md b/files/en-us/web/api/console_api/index.md index 9106cd18bc12ce9..77c503d3a0e4c8e 100644 --- a/files/en-us/web/api/console_api/index.md +++ b/files/en-us/web/api/console_api/index.md @@ -18,7 +18,7 @@ The Console API started as a largely proprietary API, with different browsers im - [Google Chrome DevTools implementation](https://developer.chrome.com/docs/devtools/console/api/) - [Safari DevTools implementation](https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html) -Usage is very simple — the {{domxref("console")}} object — available via {{domxref("window.console")}}, or {{domxref("WorkerGlobalScope.console")}} in workers; accessible using just `console` — contains many methods that you can call to perform rudimentary debugging tasks, generally focused around logging various values to the browser's [Web Console](https://firefox-source-docs.mozilla.org/devtools-user/web_console/index.html). +Usage is very simple — the {{domxref("console")}} object contains many methods that you can call to perform rudimentary debugging tasks, generally focused around logging various values to the browser's [Web Console](https://firefox-source-docs.mozilla.org/devtools-user/web_console/index.html). By far the most commonly-used method is {{domxref("console.log")}}, which is used to log the current value contained inside a specific variable. diff --git a/files/en-us/web/api/dedicatedworkerglobalscope/index.md b/files/en-us/web/api/dedicatedworkerglobalscope/index.md index cd39c3e2e87cc4b..fc4c289fb34e885 100644 --- a/files/en-us/web/api/dedicatedworkerglobalscope/index.md +++ b/files/en-us/web/api/dedicatedworkerglobalscope/index.md @@ -22,7 +22,7 @@ _This interface inherits properties from the {{domxref("WorkerGlobalScope")}} in - {{domxref("caches", "DedicatedWorkerGlobalScope.caches")}} {{ReadOnlyInline}} - : Returns the {{domxref("CacheStorage")}} object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests. -- {{domxref("WorkerGlobalScope.console", "DedicatedWorkerGlobalScope.console")}} {{ReadOnlyInline}} {{Non-standard_inline}} +- {{domxref("console", "DedicatedWorkerGlobalScope.console")}} {{ReadOnlyInline}} {{Non-standard_inline}} - : Returns the {{domxref("console")}} associated with the worker. - {{domxref("WorkerGlobalScope.fonts", "DedicatedWorkerGlobalScope.fonts")}} {{ReadOnlyInline}} - : Returns the {{domxref("FontFaceSet")}} associated with the worker. diff --git a/files/en-us/web/api/document/index.md b/files/en-us/web/api/document/index.md index 1dadac54dec9907..38f99d07d1a8b79 100644 --- a/files/en-us/web/api/document/index.md +++ b/files/en-us/web/api/document/index.md @@ -141,8 +141,6 @@ _The `Document` interface for HTML documents inherits from the {{DOMxRef("HTMLDo - : Gets/sets the foreground color, or text color, of the current document. - {{DOMxRef("Document.fullscreen")}} {{Deprecated_Inline}} - : `true` when the document is in [fullscreen mode](/en-US/docs/Web/API/Fullscreen_API). -- {{DOMxRef("Document.height")}} {{Non-standard_Inline}} {{Deprecated_Inline}} - - : Gets/sets the height of the current document. - {{DOMxRef("Document.characterSet", "Document.inputEncoding")}} {{Deprecated_Inline}} {{ReadOnlyInline}} - : Alias of {{DOMxRef("Document.characterSet")}}. Use this property instead. - {{DOMxRef("Document.lastStyleSheetSet")}} {{Deprecated_Inline}} {{ReadOnlyInline}} {{Non-standard_Inline}} @@ -159,8 +157,6 @@ _The `Document` interface for HTML documents inherits from the {{DOMxRef("HTMLDo - : Returns a list of the style sheet sets available on the document. - {{DOMxRef("Document.vlinkColor")}} {{Deprecated_Inline}} - : Gets/sets the color of visited hyperlinks. -- {{DOMxRef("Document.width")}} {{Non-standard_Inline}} {{Deprecated_Inline}} - - : Returns the width of the current document. - {{DOMxRef("Document.xmlEncoding")}} {{Deprecated_Inline}} - : Returns the encoding as determined by the XML declaration. - {{DOMxRef("Document.xmlStandalone")}} {{Deprecated_Inline}} @@ -196,8 +192,6 @@ _This interface also inherits from the {{DOMxRef("Node")}} and {{DOMxRef("EventT - : Creates a new element with the given tag name. - {{DOMxRef("Document.createElementNS()")}} - : Creates a new element with the given tag name and namespace URI. -- {{DOMxRef("Document.createEntityReference()")}} {{Deprecated_Inline}} - - : Creates a new entity reference object and returns it. - {{DOMxRef("Document.createEvent()")}} - : Creates an event object. - {{DOMxRef("Document.createNodeIterator()")}} diff --git a/files/en-us/web/api/document_object_model/index.md b/files/en-us/web/api/document_object_model/index.md index a2189b571463533..a667d12c798f1ec 100644 --- a/files/en-us/web/api/document_object_model/index.md +++ b/files/en-us/web/api/document_object_model/index.md @@ -44,7 +44,6 @@ To learn more about what the DOM is and how it represents documents, see our art - {{DOMxRef("MutationRecord")}} - {{DOMxRef("NamedNodeMap")}} - {{DOMxRef("Node")}} -- {{DOMxRef("NodeFilter")}} - {{DOMxRef("NodeIterator")}} - {{DOMxRef("NodeList")}} - {{DOMxRef("ProcessingInstruction")}} @@ -234,7 +233,6 @@ Here are the DOM APIs for data types used in the definitions of SVG properties a - {{DOMxRef("SVGAnimatedNumber")}} - {{DOMxRef("SVGAnimatedNumberList")}} - {{DOMxRef("SVGAnimatedPathData")}} {{Deprecated_Inline}} -- {{DOMxRef("SVGAnimatedPoints")}} - {{DOMxRef("SVGAnimatedPreserveAspectRatio")}} - {{DOMxRef("SVGAnimatedRect")}} - {{DOMxRef("SVGAnimatedString")}} diff --git a/files/en-us/web/api/domstringmap/index.md b/files/en-us/web/api/domstringmap/index.md index e95e08608b99df8..9507c6656ba1e2d 100644 --- a/files/en-us/web/api/domstringmap/index.md +++ b/files/en-us/web/api/domstringmap/index.md @@ -7,7 +7,7 @@ browser-compat: api.DOMStringMap {{ APIRef("HTML DOM") }} -The **`DOMStringMap`** interface is used for the {{domxref("HTMLElement.dataset")}}/{{domxref("SVGElement.dataset")}} attribute, to represent data for custom attributes added to elements. +The **`DOMStringMap`** interface is used for the {{domxref("HTMLElement.dataset")}} attribute, to represent data for custom attributes added to elements. ## Specifications @@ -19,5 +19,5 @@ The **`DOMStringMap`** interface is used for the {{domxref("HTMLElement.dataset" ## See also -- {{domxref("HTMLElement.dataset")}} / {{domxref("SVGElement.dataset")}} +- {{domxref("HTMLElement.dataset")}} - [Global attributes - `data-*`](/en-US/docs/Web/HTML/Global_attributes/data-*) diff --git a/files/en-us/web/api/element/dommousescroll_event/index.md b/files/en-us/web/api/element/dommousescroll_event/index.md index baca4e9980ab172..c796c753d4c5e98 100644 --- a/files/en-us/web/api/element/dommousescroll_event/index.md +++ b/files/en-us/web/api/element/dommousescroll_event/index.md @@ -31,9 +31,9 @@ onDOMMouseScroll = (event) => {}; ## Event type -A {{domxref("MouseWheelEvent")}}. Inherits from {{domxref("Event")}}. +A {{domxref("WheelEvent")}}. Inherits from {{domxref("Event")}}. -{{InheritanceDiagram("MouseWheelEvent")}} +{{InheritanceDiagram("WheelEvent")}} ## Event properties diff --git a/files/en-us/web/api/element/index.md b/files/en-us/web/api/element/index.md index dc16bfdae29a036..73c8bfec634d3e6 100644 --- a/files/en-us/web/api/element/index.md +++ b/files/en-us/web/api/element/index.md @@ -292,14 +292,10 @@ Listen to these events using `addEventListener()` or by assigning an event liste - : Fires on a {{HTMLElement("dialog")}} when the user instructs the browser that they wish to dismiss the currently open modal dialog. The browser fires this event when the user presses the Esc key to close the modal dialog. - {{domxref("Element/contentvisibilityautostatechange_event", "contentvisibilityautostatechange")}} {{Experimental_Inline}} - : Fires on any element with {{cssxref("content-visibility", "content-visibility: auto")}} set on it when it starts or stops being [relevant to the user](/en-US/docs/Web/CSS/CSS_containment#relevant_to_the_user) and [skipping its contents](/en-US/docs/Web/CSS/CSS_containment#skips_its_contents). -- {{domxref("Element/error_event", "error")}} - - : Fired when a resource failed to load, or can't be used. For example, if a script has an execution error or an image can't be found or is invalid. - {{domxref("Element/scroll_event", "scroll")}} - : Fired when the document view or an element has been scrolled. - {{domxref("Element/securitypolicyviolation_event","securitypolicyviolation")}} - : Fired when a [Content Security Policy](/en-US/docs/Web/HTTP/CSP) is violated. -- {{domxref("Element/select_event", "select")}} - - : Fired when some text has been selected. - {{domxref("Element/wheel_event","wheel")}} - : Fired when the user rotates a wheel button on a pointing device (typically a mouse). @@ -307,13 +303,10 @@ Listen to these events using `addEventListener()` or by assigning an event liste - {{domxref("Element/copy_event", "copy")}} - : Fired when the user initiates a copy action through the browser's user interface. - Also available via the {{domxref("HTMLElement/oncopy", "oncopy")}} property. - {{domxref("Element/cut_event", "cut")}} - : Fired when the user initiates a cut action through the browser's user interface. - Also available via the {{domxref("HTMLElement/oncut", "oncut")}} property. - {{domxref("Element/paste_event", "paste")}} - : Fired when the user initiates a paste action through the browser's user interface. - Also available via the {{domxref("HTMLElement/onpaste", "onpaste")}} property. ### Composition events diff --git a/files/en-us/web/api/element/mozmousepixelscroll_event/index.md b/files/en-us/web/api/element/mozmousepixelscroll_event/index.md index 863a06a1dc52b11..1a6298048be8f5a 100644 --- a/files/en-us/web/api/element/mozmousepixelscroll_event/index.md +++ b/files/en-us/web/api/element/mozmousepixelscroll_event/index.md @@ -27,9 +27,9 @@ onMozMousePixelScroll = (event) => {}; ## Event type -A {{domxref("MouseWheelEvent")}}. Inherits from {{domxref("Event")}}. +A {{domxref("WheelEvent")}}. Inherits from {{domxref("Event")}}. -{{InheritanceDiagram("MouseWheelEvent")}} +{{InheritanceDiagram("WheelEvent")}} ## Getting the distance scrolled diff --git a/files/en-us/web/api/eventtarget/dispatchevent/index.md b/files/en-us/web/api/eventtarget/dispatchevent/index.md index edd0428d5b81b9e..ad809583552da0a 100644 --- a/files/en-us/web/api/eventtarget/dispatchevent/index.md +++ b/files/en-us/web/api/eventtarget/dispatchevent/index.md @@ -9,7 +9,7 @@ browser-compat: api.EventTarget.dispatchEvent {{APIRef("DOM")}} The **`dispatchEvent()`** method of the {{domxref("EventTarget")}} sends an {{domxref("Event")}} to the object, (synchronously) invoking the affected -{{domxref("EventListener")}}s in the appropriate order. The normal event processing +event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with `dispatchEvent()`. diff --git a/files/en-us/web/api/ext_disjoint_timer_query/index.md b/files/en-us/web/api/ext_disjoint_timer_query/index.md index c3ce091bf929931..b62e037e07e816a 100644 --- a/files/en-us/web/api/ext_disjoint_timer_query/index.md +++ b/files/en-us/web/api/ext_disjoint_timer_query/index.md @@ -48,11 +48,11 @@ This extension exposes seven new constants. This extension exposes eight new methods. - {{domxref("EXT_disjoint_timer_query.createQueryEXT()", "ext.createQueryEXT()")}} - - : Creates a new {{domxref("WebGLTimerQueryEXT")}}. + - : Creates a new {{domxref("WebGLQuery")}}. - {{domxref("EXT_disjoint_timer_query.deleteQueryEXT()", "ext.deleteQueryEXT()")}} - - : Deletes a given {{domxref("WebGLTimerQueryEXT")}}. + - : Deletes a given {{domxref("WebGLQuery")}}. - {{domxref("EXT_disjoint_timer_query.isQueryEXT()", "ext.isQueryEXT()")}} - - : Returns `true` if a given object is a valid {{domxref("WebGLTimerQueryEXT")}}. + - : Returns `true` if a given object is a valid {{domxref("WebGLQuery")}}. - {{domxref("EXT_disjoint_timer_query.beginQueryEXT()", "ext.beginQueryEXT()")}} - : The timer starts when all commands prior to `beginQueryEXT` have been fully executed. - {{domxref("EXT_disjoint_timer_query.endQueryEXT()", "ext.endQueryEXT()")}} diff --git a/files/en-us/web/api/file/index.md b/files/en-us/web/api/file/index.md index 3d62efe6c11d990..93840a0f9d68092 100644 --- a/files/en-us/web/api/file/index.md +++ b/files/en-us/web/api/file/index.md @@ -35,7 +35,7 @@ See [Using files from web applications](/en-US/docs/Web/API/File_API/Using_files `File` implements {{DOMxRef("Blob")}}, so it also has the following properties available to it: -- {{DOMxRef("File.prototype.size")}} {{ReadOnlyInline}} +- {{DOMxRef("Blob.size")}} {{ReadOnlyInline}} - : Returns the size of the file in bytes. - {{DOMxRef("File.prototype.type")}} {{ReadOnlyInline}} - : Returns the [MIME](/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) type of the file. diff --git a/files/en-us/web/api/hidconnectionevent/index.md b/files/en-us/web/api/hidconnectionevent/index.md index 1ec3f3fba8ba5ae..aa116c588edc885 100644 --- a/files/en-us/web/api/hidconnectionevent/index.md +++ b/files/en-us/web/api/hidconnectionevent/index.md @@ -9,7 +9,7 @@ browser-compat: api.HIDConnectionEvent {{securecontext_header}}{{APIRef("WebHID API")}}{{SeeCompatTable}} -The **`HIDConnectionEvent`** interface of the {{domxref('WebHID API')}} represents HID connection events, and is the event type passed to {{domxref("HID.onconnect")}} and {{domxref("HID.ondisconnect")}} when an input report is received. +The **`HIDConnectionEvent`** interface of the {{domxref('WebHID API')}} represents HID connection events, and is the event type passed to {{domxref("HID/connect_event", "connect")}} and {{domxref("HID/disconnect_event", "disconnect")}} event handlers when an input report is received. {{InheritanceDiagram}} diff --git a/files/en-us/web/api/hmdvrdevice/setfieldofview/index.md b/files/en-us/web/api/hmdvrdevice/setfieldofview/index.md index ed2e82f52db1191..2aed705a5de7f6e 100644 --- a/files/en-us/web/api/hmdvrdevice/setfieldofview/index.md +++ b/files/en-us/web/api/hmdvrdevice/setfieldofview/index.md @@ -36,7 +36,7 @@ None ({{jsxref("undefined")}}). ## Examples -The following simple example shows a function that can be used to set a custom field of view with four specified degree values for up, right, down and left. The {{domxref("VRFieldOfView.VRFieldOfView","VRFieldOfView()")}} constructor is used to create a {{domxref("VRFieldOfView")}} object from the supplied values, which is then fed into the `setFieldOfView()` method (the default `zNear` and `zFar` values are always used, in this case.) +The following simple example shows a function that can be used to set a custom field of view with four specified degree values for up, right, down and left. The `VRFieldOfView()` constructor is used to create a {{domxref("VRFieldOfView")}} object from the supplied values, which is then fed into the `setFieldOfView()` method (the default `zNear` and `zFar` values are always used, in this case.) ```js function setCustomFOV(up, right, down, left) { diff --git a/files/en-us/web/api/html_dom_api/microtask_guide/in_depth/index.md b/files/en-us/web/api/html_dom_api/microtask_guide/in_depth/index.md index 670aa51f01d7ced..34fab26f536226e 100644 --- a/files/en-us/web/api/html_dom_api/microtask_guide/in_depth/index.md +++ b/files/en-us/web/api/html_dom_api/microtask_guide/in_depth/index.md @@ -104,7 +104,7 @@ There are three types of event loop: - Worker event loop - : A worker event loop is one which drives a worker; this includes all forms of workers, including basic [web workers](/en-US/docs/Web/API/Web_Workers_API), [shared workers](/en-US/docs/Web/API/SharedWorker), and [service workers](/en-US/docs/Web/API/Service_Worker_API). Workers are kept in one or more agents that are separate from the "main" code; the browser may use a single event loop for all of the workers of a given type or may use multiple event loops to handle them. - Worklet event loop - - : A [worklet](/en-US/docs/Web/API/Worklet) event loop is the event loop used to drive agents which run the code for the worklets for a given agent. This includes worklets of type {{domxref("Worklet")}}, {{domxref("AudioWorklet")}}, and {{domxref("PaintWorklet")}}. + - : A [worklet](/en-US/docs/Web/API/Worklet) event loop is the event loop used to drive agents which run the code for the worklets for a given agent. This includes worklets of type {{domxref("Worklet")}} and {{domxref("AudioWorklet")}}. Several windows loaded from the same {{Glossary("origin")}} may be running on the same event loop, each queueing tasks onto the event loop so that their tasks take turns with the processor, one after another. Keep in mind that in web parlance, the word "window" actually means "browser-level container that web content runs within," including an actual window, a tab, or a frame. diff --git a/files/en-us/web/api/htmlmediaelement/index.md b/files/en-us/web/api/htmlmediaelement/index.md index 222229fe87d9c6e..86b40e11056fa6c 100644 --- a/files/en-us/web/api/htmlmediaelement/index.md +++ b/files/en-us/web/api/htmlmediaelement/index.md @@ -86,13 +86,6 @@ _This interface also inherits properties from its ancestors {{domxref("HTMLEleme - {{domxref("HTMLMediaElement.volume")}} - : A `double` indicating the audio volume, from 0.0 (silent) to 1.0 (loudest). -### Event handlers - -- {{domxref("HTMLMediaElement.onencrypted")}} - - : Sets the event handler called when the media is encrypted. -- {{domxref("HTMLMediaElement.onwaitingforkey")}} - - : Sets the event handler called when playback is blocked while waiting for an encryption key. - ## Obsolete properties These properties are obsolete and should not be used, even if a browser still supports them. diff --git a/files/en-us/web/api/htmlscriptelement/index.md b/files/en-us/web/api/htmlscriptelement/index.md index 6586728338654b8..0bf3cbdac60cdd3 100644 --- a/files/en-us/web/api/htmlscriptelement/index.md +++ b/files/en-us/web/api/htmlscriptelement/index.md @@ -9,7 +9,7 @@ browser-compat: api.HTMLScriptElement HTML {{HTMLElement("script")}} elements expose the **`HTMLScriptElement`** interface, which provides special properties and methods for manipulating the behavior and execution of `