Scribe's
diff --git a/files/en-us/web/api/document/exitpointerlock/index.html b/files/en-us/web/api/document/exitpointerlock/index.html
index 791f0b4280ca87d..d0c97ce983910db 100644
--- a/files/en-us/web/api/document/exitpointerlock/index.html
+++ b/files/en-us/web/api/document/exitpointerlock/index.html
@@ -2,11 +2,11 @@
title: Document.exitPointerLock()
slug: Web/API/Document/exitPointerLock
tags:
-- API
-- Experimental
-- Method
-- Reference
-- mouse lock
+ - API
+ - Experimental
+ - Method
+ - Reference
+ - mouse lock
---
{{APIRef("DOM")}} {{SeeCompatTable}}
diff --git a/files/en-us/web/api/document/forms/index.html b/files/en-us/web/api/document/forms/index.html
index ff9a0465e9971fc..e8c88e2b7339ef6 100644
--- a/files/en-us/web/api/document/forms/index.html
+++ b/files/en-us/web/api/document/forms/index.html
@@ -2,14 +2,14 @@
title: Document.forms
slug: Web/API/Document/forms
tags:
-- API
-- DOM
-- Document
-- Forms
-- HTML DOM
-- HTML forms
-- Property
-- Reference
+ - API
+ - DOM
+ - Document
+ - Forms
+ - HTML DOM
+ - HTML forms
+ - Property
+ - Reference
---
The forms
read-only property of
the {{domxref("Document")}} interface returns an {{domxref("HTMLCollection")}} listing
@@ -125,7 +125,7 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/document/getelementbyid/index.html b/files/en-us/web/api/document/getelementbyid/index.html
index 07d46ab835ebfb8..de6fbd348b99e5f 100644
--- a/files/en-us/web/api/document/getelementbyid/index.html
+++ b/files/en-us/web/api/document/getelementbyid/index.html
@@ -99,7 +99,7 @@ Example
var el = document.getElementById('testqq'); // el will be null!
-Non-HTML documents. The DOM implementation must have information that says which attributes are of type ID. Attributes with the name "id" are not of type ID unless so defined in the document's DTD. The id
attribute is defined to be of ID type in the common cases of XHTML, XUL, and other. Implementations that do not know whether attributes are of type ID or not are expected to return null
.
+Non-HTML documents. The DOM implementation must have information that says which attributes are of type ID. Attributes with the name "id" are not of type ID unless so defined in the document's DTD. The id
attribute is defined to be of ID type in the common cases of XHTML, XUL, and other. Implementations that do not know whether attributes are of type ID or not are expected to return null
.
Specifications
diff --git a/files/en-us/web/api/document/getelementsbytagnamens/index.html b/files/en-us/web/api/document/getelementsbytagnamens/index.html
index 89744ede6e6e475..cdee3697b1c8d24 100644
--- a/files/en-us/web/api/document/getelementsbytagnamens/index.html
+++ b/files/en-us/web/api/document/getelementsbytagnamens/index.html
@@ -2,13 +2,13 @@
title: Document.getElementsByTagNameNS()
slug: Web/API/Document/getElementsByTagNameNS
tags:
-- API
-- DOM
-- Method
-- NeedsMarkupWork
-- NeedsSpecTable
-- Reference
-- getElementsByTagNameNS
+ - API
+ - DOM
+ - Method
+ - NeedsMarkupWork
+ - NeedsSpecTable
+ - Reference
+ - getElementsByTagNameNS
---
{{APIRef("DOM")}}
@@ -41,7 +41,7 @@ Syntax
Note: Currently parameters in this method are
case-sensitive, but they were case-insensitive in Firefox 3.5 and before. See the developer release note for Firefox
+ href="/en-US/docs/Mozilla/Firefox/Releases/3.6#dom">developer release note for Firefox
3.6 and a note in Browser compatibility section in
{{domxref("Element.getElementsByTagNameNS")}} for details.
diff --git a/files/en-us/web/api/document/hasfocus/index.html b/files/en-us/web/api/document/hasfocus/index.html
index 71c776c7b113544..b5b87879a87ff4a 100644
--- a/files/en-us/web/api/document/hasfocus/index.html
+++ b/files/en-us/web/api/document/hasfocus/index.html
@@ -2,11 +2,11 @@
title: Document.hasFocus()
slug: Web/API/Document/hasFocus
tags:
-- API
-- DOM
-- Focus
-- Method
-- Reference
+ - API
+ - DOM
+ - Focus
+ - Method
+ - Reference
---
{{APIRef}}
@@ -17,7 +17,7 @@
When viewing a document, an element with focus is always the active element in
+ href="/en-US/docs/Web/API/Document/activeElement">active element in
the document, but an active element does not necessarily have focus. For example, an
active element within a popup window that is not the foreground doesn't have focus.
@@ -98,6 +98,6 @@
Browser compatibility
See also
diff --git a/files/en-us/web/api/document/images/index.html b/files/en-us/web/api/document/images/index.html
index eab0500f5a8ad33..87dd40e48570804 100644
--- a/files/en-us/web/api/document/images/index.html
+++ b/files/en-us/web/api/document/images/index.html
@@ -2,19 +2,19 @@
title: Document.images
slug: Web/API/Document/images
tags:
-- API
-- Document
-- HTML DOM
-- Images
-- Property
-- Reference
+ - API
+ - Document
+ - HTML DOM
+ - Images
+ - Property
+ - Reference
---
{{APIRef("DOM")}}
The images
read-only property of
the {{domxref("Document")}} interface returns a collection of the images in the current HTML document.
+ href="/en-US/docs/Web/API/HTMLImageElement/Image">images in the current HTML document.
Syntax
diff --git a/files/en-us/web/api/document/index.html b/files/en-us/web/api/document/index.html
index ab0d22c112fc1b8..23438fe4c17b8bd 100644
--- a/files/en-us/web/api/document/index.html
+++ b/files/en-us/web/api/document/index.html
@@ -10,11 +10,11 @@
---
{{APIRef("DOM")}}
-
The Document
interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. The DOM tree includes elements such as {{HTMLElement("body")}} and {{HTMLElement("table")}}, among many others. It provides functionality globally to the document, like how to obtain the page's URL and create new elements in the document.
+
The Document
interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. The DOM tree includes elements such as {{HTMLElement("body")}} and {{HTMLElement("table")}}, among many others. It provides functionality globally to the document, like how to obtain the page's URL and create new elements in the document.
{{InheritanceDiagram}}
-
The Document
interface describes the common properties and methods for any kind of document. Depending on the document's type (e.g. HTML, XML, SVG, …), a larger API is available: HTML documents, served with the "text/html"
content type, also implement the {{DOMxRef("HTMLDocument")}} interface, whereas XML and SVG documents implement the {{DOMxRef("XMLDocument")}} interface.
+
The Document
interface describes the common properties and methods for any kind of document. Depending on the document's type (e.g. HTML, XML, SVG, …), a larger API is available: HTML documents, served with the "text/html"
content type, also implement the {{DOMxRef("HTMLDocument")}} interface, whereas XML and SVG documents implement the {{DOMxRef("XMLDocument")}} interface.
Constructor
@@ -140,7 +140,7 @@
Event handlers
Represents the event handling code for the {{event("paste")}} event.
{{DOMxRef("Document.onreadystatechange")}}
Represents the event handling code for the {{event("readystatechange")}} event.
-
{{DOMxRef("Document.onselectionchange")}} {{Experimental_Inline}}
+
{{DOMxRef("GlobalEventHandlers.onselectionchange")}} {{Experimental_Inline}}
Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.
{{DOMxRef("Document.onvisibilitychange")}}
Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.
@@ -260,7 +260,7 @@
Methods
Returns a clone of a node from an external document.
{{DOMxRef("Document.normalizeDocument()")}} {{Obsolete_Inline}}
Replaces entities, normalizes text nodes, etc.
-
{{DOMxRef("Document.releaseCapture()")}} {{Non-standard_Inline}} {{gecko_minversion_inline("2.0")}}
+
{{DOMxRef("Document.releaseCapture()")}} {{Non-standard_Inline}}
Releases the current mouse capture if it's on an element in this document.
{{DOMxRef("Document.releaseEvents()")}} {{Non-standard_Inline}} {{Deprecated_Inline}}
See {{DOMxRef("Window.releaseEvents()")}}.
@@ -287,7 +287,7 @@
Methods
- {{DOMxRef("Document.createExpression()")}}
- - Compiles an
XPathExpression
which can then be used for (repeated) evaluations.
+ - Compiles an
XPathExpression
which can then be used for (repeated) evaluations.
- {{DOMxRef("Document.createNSResolver()")}}
- Creates an {{DOMxRef("XPathNSResolver")}} object.
- {{DOMxRef("Document.evaluate()")}}
@@ -423,7 +423,7 @@ Fullscreen events
- {{DOMxRef("Document/fullscreenchange_event", "fullscreenchange")}}
- Fired when the
Document
transitions into or out of full-screen mode.
Also available via the {{DOMxRef("Document.onfullscreenchange", "onfullscreenchange")}} property.
- fullscreenerror
+ fullscreenerror
- Fired if an error occurs while attempting to switch into or out of full-screen mode.
Also available via the {{DOMxRef("Document.onfullscreenerror", "onfullscreenerror")}} property.
@@ -459,7 +459,7 @@
Pointer events
Fired when an element captures a pointer using setPointerCapture()
.
Also available via the {{DOMxRef("GlobalEventHandlers/ongotpointercapture", "ongotpointercapture")}} property.
{{DOMxRef("Document/lostpointercapture_event", "lostpointercapture")}}
-
Fired when a captured pointer is released.
+ Fired when a captured pointer is released.
Also available via the {{DOMxRef("GlobalEventHandlers/onlostpointercapture", "onlostpointercapture")}} property.
{{DOMxRef("Document/pointercancel_event", "pointercancel")}}
Fired when a pointer event is canceled.
@@ -525,16 +525,16 @@ Transition events
- {{DOMxRef("Document/transitioncancel_event", "transitioncancel")}}
- - Fired when a CSS transition is canceled.
+ - Fired when a CSS transition is canceled.
Also available via the {{DOMxRef("GlobalEventHandlers/ontransitioncancel", "ontransitioncancel")}} property.
- {{DOMxRef("Document/transitionend_event", "transitionend")}}
- - Fired when a CSS transition has completed.
+ - Fired when a CSS transition has completed.
Also available via the {{DOMxRef("GlobalEventHandlers/ontransitionend", "ontransitionend")}} property.
- {{DOMxRef("Document/transitionrun_event", "transitionrun")}}
- - Fired when a CSS transition is first created.
+ - Fired when a CSS transition is first created.
Also available via the {{DOMxRef("GlobalEventHandlers/ontransitionrun", "ontransitionrun")}} property.
- {{DOMxRef("Document/transitionstart_event", "transitionstart")}}
- - Fired when a CSS transition has actually started.
+ - Fired when a CSS transition has actually started.
Also available via the {{DOMxRef("GlobalEventHandlers/ontransitionstart", "ontransitionstart")}} property.
diff --git a/files/en-us/web/api/document/keypress_event/index.html b/files/en-us/web/api/document/keypress_event/index.html
index a565050c86305d5..e299cf7c0a13b58 100644
--- a/files/en-us/web/api/document/keypress_event/index.html
+++ b/files/en-us/web/api/document/keypress_event/index.html
@@ -13,7 +13,7 @@
The keypress
event is fired when a key that produces a character value is pressed down. Examples of keys that produce a character value are alphabetic, numeric, and punctuation keys. Examples of keys that don't produce a character value are modifier keys such as Alt, Shift, Ctrl, or Meta.
-
Since this event has been deprecated, you should look to use beforeinput
or keydown
instead.
+
Since this event has been deprecated, you should look to use beforeinput
or keydown
instead.
diff --git a/files/en-us/web/api/document/lastmodified/index.html b/files/en-us/web/api/document/lastmodified/index.html
index 09a4f1b2a5ea17b..bf211b7fee3f3a8 100644
--- a/files/en-us/web/api/document/lastmodified/index.html
+++ b/files/en-us/web/api/document/lastmodified/index.html
@@ -2,12 +2,12 @@
title: Document.lastModified
slug: Web/API/Document/lastModified
tags:
-- API
-- Document
-- HTML DOM
-- NeedsSpecTable
-- Property
-- Reference
+ - API
+ - Document
+ - HTML DOM
+ - NeedsSpecTable
+ - Property
+ - Reference
---
{{APIRef("DOM")}}
@@ -52,7 +52,7 @@ Notes
Note that as a string, lastModified
cannot easily be used for
comparing the modification dates of documents. Here is a possible example of how to show
an alert message when the page changes (see also: JavaScript cookies API):
+ href="/en-US/docs/Web/API/Document/cookie">JavaScript cookies API):
if (Date.parse(document.lastModified) > parseFloat(document.cookie.replace(/(?:(?:^|.*;)\s*last_modif\s*\=\s*([^;]*).*$)|^.*$/, "$1") || "0")) {
document.cookie = "last_modif=" + Date.now() + "; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=" + location.pathname;
@@ -80,7 +80,7 @@ Notes
If you want to know whether an external page has changed,
please read this
+ href="/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#get_last_modified_date">this
paragraph about the XMLHttpRequest()
API.
Specifications
diff --git a/files/en-us/web/api/document/laststylesheetset/index.html b/files/en-us/web/api/document/laststylesheetset/index.html
index dfa5198369accca..e01a884fc8b5c0a 100644
--- a/files/en-us/web/api/document/laststylesheetset/index.html
+++ b/files/en-us/web/api/document/laststylesheetset/index.html
@@ -2,16 +2,16 @@
title: Document.lastStyleSheetSet
slug: Web/API/Document/lastStyleSheetSet
tags:
-- API
-- CSSOM
-- DOM
-- Document
-- Property
-- Reference
-- Stylesheets
-- lastStyleSheetSet
+ - API
+ - CSSOM
+ - DOM
+ - Document
+ - Property
+ - Reference
+ - Stylesheets
+ - lastStyleSheetSet
---
-{{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
+{{APIRef("DOM")}}{{deprecated_header}}
The Document.lastStyleSheetSet
property returns the last enabled style sheet set. This property's
diff --git a/files/en-us/web/api/document/lostpointercapture_event/index.html b/files/en-us/web/api/document/lostpointercapture_event/index.html
index c59267fbbc6405b..c3524c97550a3eb 100644
--- a/files/en-us/web/api/document/lostpointercapture_event/index.html
+++ b/files/en-us/web/api/document/lostpointercapture_event/index.html
@@ -11,7 +11,7 @@
---
{{APIRef}}
-The lostpointercapture
event is fired when a captured pointer is released.
+The lostpointercapture
event is fired when a captured pointer is released.
diff --git a/files/en-us/web/api/document/mozsetimageelement/index.html b/files/en-us/web/api/document/mozsetimageelement/index.html
index 0a74a5f262de5b3..f506691b5f8d7c6 100644
--- a/files/en-us/web/api/document/mozsetimageelement/index.html
+++ b/files/en-us/web/api/document/mozsetimageelement/index.html
@@ -2,14 +2,14 @@
title: Document.mozSetImageElement()
slug: Web/API/Document/mozSetImageElement
tags:
-- API
-- DOM
-- DOM Reference
-- Method
-- Non-standard
-- Reference
+ - API
+ - DOM
+ - DOM Reference
+ - Method
+ - Non-standard
+ - Reference
---
-{{ ApiRef("DOM") }}{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}
+{{ ApiRef("DOM") }}{{ non-standard_header() }}
The Document.mozSetImageElement()
method changes the
element being used as the CSS background for a background with a given background
@@ -36,7 +36,7 @@
Example
This example changes the background of a {{ HTMLElement("div") }} block each time the
block is clicked by the user.
-View this example live.
+View this example live.
<style type="text/css">
#mybox {
diff --git a/files/en-us/web/api/document/onafterscriptexecute/index.html b/files/en-us/web/api/document/onafterscriptexecute/index.html
index b2c4202dc69a378..7f3669855a0426a 100644
--- a/files/en-us/web/api/document/onafterscriptexecute/index.html
+++ b/files/en-us/web/api/document/onafterscriptexecute/index.html
@@ -2,11 +2,11 @@
title: Document.onafterscriptexecute
slug: Web/API/Document/onafterscriptexecute
tags:
-- API
-- DOM
-- Non-standard
-- Property
-- Reference
+ - API
+ - DOM
+ - Non-standard
+ - Property
+ - Reference
---
{{ApiRef("DOM")}}{{non-standard_header}}
@@ -33,7 +33,7 @@ Example
document.addEventListener('afterscriptexecute', finished, true);
-View Live Example
+View Live Example
Specifications
diff --git a/files/en-us/web/api/document/onbeforescriptexecute/index.html b/files/en-us/web/api/document/onbeforescriptexecute/index.html
index 16d3f5a8b17a44e..6700bc819b4c724 100644
--- a/files/en-us/web/api/document/onbeforescriptexecute/index.html
+++ b/files/en-us/web/api/document/onbeforescriptexecute/index.html
@@ -2,12 +2,12 @@
title: Document.onbeforescriptexecute
slug: Web/API/Document/onbeforescriptexecute
tags:
-- API
-- DOM
-- Non-standard
-- Property
-- Reference
-- element.onbeforescriptexecute
+ - API
+ - DOM
+ - Non-standard
+ - Property
+ - Reference
+ - element.onbeforescriptexecute
---
{{ApiRef("DOM")}} {{non-standard_header }}
@@ -33,7 +33,7 @@ Example
document.addEventListener("beforescriptexecute", starting, true);
-View Live Examples
+View Live Examples
Specifications
diff --git a/files/en-us/web/api/document/onoffline/index.html b/files/en-us/web/api/document/onoffline/index.html
index 0c39819c498dfd6..e77e91a10cdfae8 100644
--- a/files/en-us/web/api/document/onoffline/index.html
+++ b/files/en-us/web/api/document/onoffline/index.html
@@ -10,4 +10,4 @@
---
{{APIRef("DOM")}}
-The Document.onoffline
event handler is called when an {{event("offline")}} is fired on the {{HtmlElement("body")}} element and bubbles up, when {{domxref("navigator.onLine")}} property changes and becomes false
.
+The Document.onoffline
event handler is called when an {{event("offline")}} is fired on the {{HtmlElement("body")}} element and bubbles up, when {{domxref("NavigatorOnLine.onLine")}} property changes and becomes false
.
diff --git a/files/en-us/web/api/document/ononline/index.html b/files/en-us/web/api/document/ononline/index.html
index 63b95e1e11b233b..b9ccee2c22dbc5f 100644
--- a/files/en-us/web/api/document/ononline/index.html
+++ b/files/en-us/web/api/document/ononline/index.html
@@ -33,6 +33,6 @@ Example
References
diff --git a/files/en-us/web/api/document/pointerlockchange_event/index.html b/files/en-us/web/api/document/pointerlockchange_event/index.html
index 5cd9f189bdbb005..a764e344e1cc232 100644
--- a/files/en-us/web/api/document/pointerlockchange_event/index.html
+++ b/files/en-us/web/api/document/pointerlockchange_event/index.html
@@ -71,5 +71,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/document/pointerlockerror_event/index.html b/files/en-us/web/api/document/pointerlockerror_event/index.html
index 87da3a2f24b4dae..0214a8e9774ff0f 100644
--- a/files/en-us/web/api/document/pointerlockerror_event/index.html
+++ b/files/en-us/web/api/document/pointerlockerror_event/index.html
@@ -73,5 +73,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/document/pointermove_event/index.html b/files/en-us/web/api/document/pointermove_event/index.html
index 66890beaabcfeef..7f5b2303598c03b 100644
--- a/files/en-us/web/api/document/pointermove_event/index.html
+++ b/files/en-us/web/api/document/pointermove_event/index.html
@@ -12,7 +12,7 @@
---
{{APIRef}}
-The pointermove
event is fired when a pointer changes coordinates, and the pointer has not been canceled by a browser touch-action.
+The pointermove
event is fired when a pointer changes coordinates, and the pointer has not been canceled by a browser touch-action.
diff --git a/files/en-us/web/api/document/preferredstylesheetset/index.html b/files/en-us/web/api/document/preferredstylesheetset/index.html
index 0c56f01666eb786..f7d35f3b4dd4f19 100644
--- a/files/en-us/web/api/document/preferredstylesheetset/index.html
+++ b/files/en-us/web/api/document/preferredstylesheetset/index.html
@@ -2,15 +2,15 @@
title: Document.preferredStyleSheetSet
slug: Web/API/Document/preferredStyleSheetSet
tags:
-- API
-- CSSOM
-- DOM
-- Document
-- Property
-- Reference
-- Stylesheets
+ - API
+ - CSSOM
+ - DOM
+ - Document
+ - Property
+ - Reference
+ - Stylesheets
---
-{{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
+{{APIRef("DOM")}}{{deprecated_header}}
The preferredStyleSheetSet
property returns the preferred style sheet set as set by the page
diff --git a/files/en-us/web/api/document/querycommandstate/index.html b/files/en-us/web/api/document/querycommandstate/index.html
index ae4ec0f7c51511e..fb5b33430d9e874 100644
--- a/files/en-us/web/api/document/querycommandstate/index.html
+++ b/files/en-us/web/api/document/querycommandstate/index.html
@@ -81,6 +81,6 @@ See also
diff --git a/files/en-us/web/api/document/queryselectorall/index.html b/files/en-us/web/api/document/queryselectorall/index.html
index 56cb4b2138cfc76..65ddd4fb65d37d0 100644
--- a/files/en-us/web/api/document/queryselectorall/index.html
+++ b/files/en-us/web/api/document/queryselectorall/index.html
@@ -2,18 +2,18 @@
title: Document.querySelectorAll()
slug: Web/API/Document/querySelectorAll
tags:
-- API
-- CSS Selectors
-- DOM
-- Document
-- Finding Elements
-- Locating Elements
-- Method
-- Reference
-- Searching Elements
-- Selecting Elements
-- Selectors
-- querySelectorAll
+ - API
+ - CSS Selectors
+ - DOM
+ - Document
+ - Finding Elements
+ - Locating Elements
+ - Method
+ - Reference
+ - Searching Elements
+ - Selecting Elements
+ - Selectors
+ - querySelectorAll
---
{{APIRef("DOM")}}
@@ -49,7 +49,7 @@ Parameters
Note: Characters which are not part of standard CSS syntax must be
escaped using a backslash character. Since JavaScript also uses backslash escaping,
special care must be taken when writing string literals using these characters. See Escaping
+ href="/en-US/docs/Web/API/Document/querySelector#escaping_special_characters">Escaping
special characters for more information.
@@ -211,7 +211,7 @@ See also
DOM elements using selectors
Attribute selectors in the CSS
Guide
- Attribute
+ Attribute
selectors in the MDN Learning Area
{{domxref("Element.querySelector()")}} and {{domxref("Element.querySelectorAll()")}}
diff --git a/files/en-us/web/api/document/readystate/index.html b/files/en-us/web/api/document/readystate/index.html
index 54f87a7ce05010b..bea8130eb510625 100644
--- a/files/en-us/web/api/document/readystate/index.html
+++ b/files/en-us/web/api/document/readystate/index.html
@@ -2,12 +2,12 @@
title: Document.readyState
slug: Web/API/Document/readyState
tags:
-- API
-- HTML DOM
-- Property
-- Reference
+ - API
+ - HTML DOM
+ - Property
+ - Reference
---
-{{APIRef("DOM")}}{{gecko_minversion_header("1.9.2")}}
+{{APIRef("DOM")}}
The Document.readyState
property describes the loading
state of the {{domxref("document")}}.
diff --git a/files/en-us/web/api/document/referrer/index.html b/files/en-us/web/api/document/referrer/index.html
index 62d790ad5f5f8ae..94eae6c6ab0b864 100644
--- a/files/en-us/web/api/document/referrer/index.html
+++ b/files/en-us/web/api/document/referrer/index.html
@@ -2,12 +2,12 @@
title: Document.referrer
slug: Web/API/Document/referrer
tags:
-- API
-- Document
-- HTML DOM
-- NeedsSpecTable
-- Property
-- Reference
+ - API
+ - Document
+ - HTML DOM
+ - NeedsSpecTable
+ - Property
+ - Reference
---
{{APIRef("DOM")}}
@@ -28,7 +28,7 @@ Value
Inside an {{HTMLElement("iframe")}}, the Document.referrer
will initially
- be set to the same value as the {{domxref("HTMLHyperlinkElementUtils/href", "href")}} of
+ be set to the same value as the {{domxref("HTMLAnchorElement/href", "href")}} of
the parent window's {{domxref("Window/location", "Window.location")}}.
Specifications
diff --git a/files/en-us/web/api/document/registerelement/index.html b/files/en-us/web/api/document/registerelement/index.html
index 087082e4152cb8d..5afc8a65cd24e55 100644
--- a/files/en-us/web/api/document/registerelement/index.html
+++ b/files/en-us/web/api/document/registerelement/index.html
@@ -2,12 +2,12 @@
title: Document.registerElement()
slug: Web/API/Document/registerElement
tags:
-- API
-- DOM
-- Deprecated
-- Method
-- Reference
-- Web Components
+ - API
+ - DOM
+ - Deprecated
+ - Method
+ - Reference
+ - Web Components
---
{{APIRef("DOM")}}{{Deprecated_header}}
@@ -20,13 +20,13 @@
{{draft}}
The document.registerElement()
method registers a new custom element in the
+ href="/en-US/docs/Web/Web_Components/Using_custom_elements">custom element in the
browser and returns a constructor for the new element.
@@ -78,5 +78,5 @@
Browser compatibility
See also
diff --git a/files/en-us/web/api/document/releasecapture/index.html b/files/en-us/web/api/document/releasecapture/index.html
index 0fe5e9d3590dd13..5fca41741141560 100644
--- a/files/en-us/web/api/document/releasecapture/index.html
+++ b/files/en-us/web/api/document/releasecapture/index.html
@@ -2,12 +2,12 @@
title: Document.releaseCapture()
slug: Web/API/Document/releaseCapture
tags:
-- API
-- DOM
-- Method
-- Reference
+ - API
+ - DOM
+ - Method
+ - Reference
---
-
{{ApiRef("DOM")}}{{gecko_minversion_header("2.0")}}
+
{{ApiRef("DOM")}}
The releaseCapture()
method releases mouse capture if
it's currently enabled on an element within this document. Enabling mouse capture on an
@@ -23,7 +23,7 @@
Syntax
Example
-
See the example for
+
See the example for
{{domxref("element.setCapture()")}}.
Specifications
diff --git a/files/en-us/web/api/document/requeststorageaccess/index.html b/files/en-us/web/api/document/requeststorageaccess/index.html
index 675afdc6e3135e5..2662039bcd7f4cb 100644
--- a/files/en-us/web/api/document/requeststorageaccess/index.html
+++ b/files/en-us/web/api/document/requeststorageaccess/index.html
@@ -2,13 +2,13 @@
title: Document.requestStorageAccess()
slug: Web/API/Document/requestStorageAccess
tags:
-- API
-- DOM
-- Document
-- Method
-- Reference
-- Storage Access API
-- requestStorageAccess
+ - API
+ - DOM
+ - Document
+ - Method
+ - Reference
+ - Storage Access API
+ - requestStorageAccess
---
{{APIRef}}
@@ -67,7 +67,7 @@
Conditions for granting storage
@@ -104,7 +104,7 @@ Conditions for granting storage
Note: If the requesting origin is not classified
+ href="/en-US/docs/Mozilla/Firefox/Privacy/Storage_access_policy#tracking_protection_explained">classified
as a tracking origin, the access request is automatically given an ephemeral
storage access grant, which will go away when the page is reloaded. The user is never
shown a prompt in this case, and calling requestStorageAccess()
won’t
diff --git a/files/en-us/web/api/document/scroll_event/index.html b/files/en-us/web/api/document/scroll_event/index.html
index 7949e01c72d06ec..45c841cf45a5faf 100644
--- a/files/en-us/web/api/document/scroll_event/index.html
+++ b/files/en-us/web/api/document/scroll_event/index.html
@@ -69,7 +69,7 @@
}
});
-
See more, similar examples on the resize
event page.
+
See more, similar examples on the resize
event page.
Specifications
diff --git a/files/en-us/web/api/document/selectedstylesheetset/index.html b/files/en-us/web/api/document/selectedstylesheetset/index.html
index dea8d3f5ee52f38..753662d642f806b 100644
--- a/files/en-us/web/api/document/selectedstylesheetset/index.html
+++ b/files/en-us/web/api/document/selectedstylesheetset/index.html
@@ -2,14 +2,14 @@
title: Document.selectedStyleSheetSet
slug: Web/API/Document/selectedStyleSheetSet
tags:
-- API
-- CSSOM
-- DOM
-- Property
-- Reference
-- Stylesheets
+ - API
+ - CSSOM
+ - DOM
+ - Property
+ - Reference
+ - Stylesheets
---
-
{{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
+
{{APIRef("DOM")}}{{deprecated_header}}
The selectedStyleSheetSet
property indicates the name of the style sheet set that's currently in
diff --git a/files/en-us/web/api/document/selectionchange_event/index.html b/files/en-us/web/api/document/selectionchange_event/index.html
index afb9056d97d5d5d..4b4ce8107d3aa75 100644
--- a/files/en-us/web/api/document/selectionchange_event/index.html
+++ b/files/en-us/web/api/document/selectionchange_event/index.html
@@ -11,7 +11,7 @@
---
{{APIRef}}
-The selectionchange
event of the Selection API is fired when the current text selection on a document is changed.
+The selectionchange
event of the Selection API is fired when the current text selection on a document is changed.
@@ -74,6 +74,6 @@ See also
- {{domxref("Document/selectstart_event", "selectstart")}}
- - {{domxref("Document/getSelection", "Document.getSelection")}}
+ - {{domxref("DocumentOrShadowRoot/getSelection", "Document.getSelection")}}
- {{domxref("Selection", "Selection")}}
diff --git a/files/en-us/web/api/document/stylesheetsets/index.html b/files/en-us/web/api/document/stylesheetsets/index.html
index 4b1de4456131b8d..2a7cde6a533b1fd 100644
--- a/files/en-us/web/api/document/stylesheetsets/index.html
+++ b/files/en-us/web/api/document/stylesheetsets/index.html
@@ -2,14 +2,14 @@
title: Document.styleSheetSets
slug: Web/API/Document/styleSheetSets
tags:
-- API
-- CSSOM
-- DOM
-- Property
-- Reference
-- Stylesheets
+ - API
+ - CSSOM
+ - DOM
+ - Property
+ - Reference
+ - Stylesheets
---
-{{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
+{{APIRef("DOM")}}{{deprecated_header}}
The styleSheetSets
read-only property returns a live list of all of the currently-available style sheet
@@ -43,7 +43,7 @@ Notes
The list of available style sheet sets is constructed by enumerating all the style
sheets available for the document, in the order in which they're listed in the
- {{domxref("document.styleSheets")}} attribute, adding the title
of each
+ {{domxref("Document.styleSheets")}} attribute, adding the title
of each
style sheet that has a title to the list. Duplicates are dropped from the list (using a
case-sensitive comparison).
@@ -55,7 +55,7 @@ See also
- {{domxref("Stylesheet")}}
- - {{domxref("document.styleSheets")}}
+ - {{domxref("Document.styleSheets")}}
- {{domxref("document.lastStyleSheetSet")}}
- {{domxref("document.preferredStyleSheetSet")}}
- {{domxref("document.selectedStyleSheetSet")}}
diff --git a/files/en-us/web/api/document/touchcancel_event/index.html b/files/en-us/web/api/document/touchcancel_event/index.html
index fc12aab3189e185..2057786addba53e 100644
--- a/files/en-us/web/api/document/touchcancel_event/index.html
+++ b/files/en-us/web/api/document/touchcancel_event/index.html
@@ -36,7 +36,7 @@
Examples
-Code samples for those events are available on the dedicated page: Touch events.
+Code samples for those events are available on the dedicated page: Touch events.
Specifications
diff --git a/files/en-us/web/api/document/transitioncancel_event/index.html b/files/en-us/web/api/document/transitioncancel_event/index.html
index 37b94e3f8f918de..b5a8fb856b14238 100644
--- a/files/en-us/web/api/document/transitioncancel_event/index.html
+++ b/files/en-us/web/api/document/transitioncancel_event/index.html
@@ -54,7 +54,7 @@ Examples
console.log('Transition canceled');
};
-See a live example of this event.
+See a live example of this event.
Specifications
diff --git a/files/en-us/web/api/document/transitionend_event/index.html b/files/en-us/web/api/document/transitionend_event/index.html
index 73d5e0a716fa962..a226ba1083c0722 100644
--- a/files/en-us/web/api/document/transitionend_event/index.html
+++ b/files/en-us/web/api/document/transitionend_event/index.html
@@ -11,7 +11,7 @@
---
{{APIRef}}
-The transitionend
event is fired when a CSS transition has completed. In the case where a transition is removed before completion, such as if the {{cssxref("transition-property")}} is removed or {{cssxref("display")}} is set to none
, then the event will not be generated.
+The transitionend
event is fired when a CSS transition has completed. In the case where a transition is removed before completion, such as if the {{cssxref("transition-property")}} is removed or {{cssxref("display")}} is set to none
, then the event will not be generated.
@@ -52,7 +52,7 @@ Examples
console.log('Transition ended');
};
-See a live example of this event.
+See a live example of this event.
Specifications
diff --git a/files/en-us/web/api/document/transitionrun_event/index.html b/files/en-us/web/api/document/transitionrun_event/index.html
index 77aa3542fc4690d..ec56b1e833d4b30 100644
--- a/files/en-us/web/api/document/transitionrun_event/index.html
+++ b/files/en-us/web/api/document/transitionrun_event/index.html
@@ -11,7 +11,7 @@
---
{{APIRef}}{{SeeCompatTable}}
-The transitionrun
event is fired when a CSS transition is first created, i.e. before any {{cssxref("transition-delay")}} has begun.
+The transitionrun
event is fired when a CSS transition is first created, i.e. before any {{cssxref("transition-delay")}} has begun.
@@ -50,7 +50,7 @@ Examples
console.log('Transition started running');
};
-See a live example of this event.
+See a live example of this event.
Specifications
diff --git a/files/en-us/web/api/document/transitionstart_event/index.html b/files/en-us/web/api/document/transitionstart_event/index.html
index e7cce9a816d4988..faa9a6822dae47b 100644
--- a/files/en-us/web/api/document/transitionstart_event/index.html
+++ b/files/en-us/web/api/document/transitionstart_event/index.html
@@ -11,7 +11,7 @@
---
{{APIRef}}{{SeeCompatTable}}
-The transitionstart
event is fired when a CSS transition has actually started, i.e., after any {{cssxref("transition-delay")}} has ended.
+The transitionstart
event is fired when a CSS transition has actually started, i.e., after any {{cssxref("transition-delay")}} has ended.
The difference is transitionstart
and transitionrun
is that transitionrun
fires when the transition is created (i.e. at the start of any delay) and transitionstart
fires when the actual animation has begun (i.e. at the end of any delay).
@@ -52,7 +52,7 @@ Examples
console.log('Started transitioning');
};
-See a live example of this event.
+See a live example of this event.
Specifications
diff --git a/files/en-us/web/api/document/visibilitychange_event/index.html b/files/en-us/web/api/document/visibilitychange_event/index.html
index a6fdbf6cd90dd7f..e0575bb83262e51 100644
--- a/files/en-us/web/api/document/visibilitychange_event/index.html
+++ b/files/en-us/web/api/document/visibilitychange_event/index.html
@@ -39,7 +39,7 @@ Usage notes
The event doesn't include the document's updated visibility status, but you can get that information from the document's {{domxref("Document.visibilityState", "visibilityState")}} property.
-This event fires with a visibilityState
of hidden
when a user navigates to a new page, switches tabs, closes the tab, minimizes or closes the browser, or, on mobile, switches from the browser to a different app. Transitioning to hidden
is the last event that's reliably observable by the page, so developers should treat it as the likely end of the user's session (for example, for sending analytics data).
+This event fires with a visibilityState
of hidden
when a user navigates to a new page, switches tabs, closes the tab, minimizes or closes the browser, or, on mobile, switches from the browser to a different app. Transitioning to hidden
is the last event that's reliably observable by the page, so developers should treat it as the likely end of the user's session (for example, for sending analytics data).
The transition to hidden
is also a good point at which pages can stop making UI updates and stop any tasks that the user doesn't want to have running in the background.
diff --git a/files/en-us/web/api/document/write/index.html b/files/en-us/web/api/document/write/index.html
index 04c02b22789354f..d8b18ee0f698b91 100644
--- a/files/en-us/web/api/document/write/index.html
+++ b/files/en-us/web/api/document/write/index.html
@@ -13,7 +13,7 @@
The Document.write()
method writes a string of text to a document stream opened by {{domxref("document.open()")}}.
-Note: Because
document.write()
writes to the document
stream, calling
document.write()
on a closed (loaded) document automatically calls
document.open()
,
which will clear the document.
+Note: Because
document.write()
writes to the document
stream, calling
document.write()
on a closed (loaded) document automatically calls
document.open()
,
which will clear the document.
Syntax
diff --git a/files/en-us/web/api/document_object_model/events/index.html b/files/en-us/web/api/document_object_model/events/index.html
index d4a5cce8a592fa4..7666b5337723ff9 100644
--- a/files/en-us/web/api/document_object_model/events/index.html
+++ b/files/en-us/web/api/document_object_model/events/index.html
@@ -13,7 +13,7 @@ Introduction
There is an excellent diagram that clearly explains the three phases of event flow through the DOM in the DOM Level 3 Events draft.
-Also see Example 5: Event Propagation in the Examples chapter for a more detailed example of how events move through the DOM.
+Also see Example 5: Event Propagation in the Examples chapter for a more detailed example of how events move through the DOM.
Registering event listeners
@@ -34,12 +34,12 @@ {{domxref("EventTarget.addEventListener")}
This is the method you should use in modern web pages.
-
Note: Internet Explorer 6–8 didn't support this method, offering a similar {{domxref("EventTarget.attachEvent")}} API instead. For cross-browser compatibility, use one of the many JavaScript libraries available.
+
Note: Internet Explorer 6–8 didn't support this method, offering a similar {{domxref("EventTarget.addEventListener")}} API instead. For cross-browser compatibility, use one of the many JavaScript libraries available.
More details can be found on the {{domxref("EventTarget.addEventListener")}} reference page.
-
+
<button onclick="alert('Hello world!')">
diff --git a/files/en-us/web/api/document_object_model/examples/index.html b/files/en-us/web/api/document_object_model/examples/index.html
index 735165d41dafc4e..a8df13a6459b43a 100644
--- a/files/en-us/web/api/document_object_model/examples/index.html
+++ b/files/en-us/web/api/document_object_model/examples/index.html
@@ -261,7 +261,7 @@ Example 6: getComputedStyle
Example 7: Displaying Event Object Properties
-This example uses DOM methods to display all the properties of the {{domxref("window.onload")}} {{domxref("event")}} object and their values in a table. It also shows a useful technique of using a for..in loop to iterate over the properties of an object to get their values.
+This example uses DOM methods to display all the properties of the {{domxref("GlobalEventHandlers.onload")}} {{domxref("event")}} object and their values in a table. It also shows a useful technique of using a for..in loop to iterate over the properties of an object to get their values.
The properties of event objects differs greatly between browsers, the WHATWG DOM Standard lists the standard properties, however many browsers have extended these greatly.
@@ -362,7 +362,7 @@ Notes
- A table's {{domxref("element.innerHTML","innerHTML")}} property should never be used to modify a table, although you can use it to write an entire table or the content of a cell.
- If DOM Core methods {{domxref("document.createElement")}} and {{domxref("Node.appendChild")}} are used to create rows and cells, IE requires that they are appended to a tbody element, whereas other browsers will allow appending to a table element (the rows will be added to the last tbody element).
- - There are a number of other convenience methods belonging to the table interface that can be used for creating and modifying tables.
+ - There are a number of other convenience methods belonging to the table interface that can be used for creating and modifying tables.
Subnav
diff --git a/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html b/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html
index 76bbe55f5002856..158bdb0fdc16696 100644
--- a/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html
+++ b/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html
@@ -134,17 +134,17 @@ Dynamically creating a DOM tree
So what?
-DOM trees can be queried using XPath expressions, converted to strings or written to a local or remote files using XMLSerializer (without having to first convert to a string), POSTed to a web server (via XMLHttpRequest
), transformed using XSLT, XLink, converted to a JavaScript object through a JXON algorithm, etc.
+DOM trees can be queried using XPath expressions, converted to strings or written to a local or remote files using XMLSerializer (without having to first convert to a string), POSTed to a web server (via XMLHttpRequest
), transformed using XSLT, XLink, converted to a JavaScript object through a JXON algorithm, etc.
You can use DOM trees to model data which isn't well-suited for RDF (or perhaps you just don't like RDF). Another application is that, since XUL is XML, the UI of your application can be dynamically manipulated, downloaded, uploaded, saved, loaded, converted, or transformed quite easily.
See also
diff --git a/files/en-us/web/api/document_object_model/index.html b/files/en-us/web/api/document_object_model/index.html
index 703e30ad18a2519..c6a137e29f6c217 100644
--- a/files/en-us/web/api/document_object_model/index.html
+++ b/files/en-us/web/api/document_object_model/index.html
@@ -100,7 +100,7 @@ HTML DOM
A document containing HTML is described using the {{DOMxRef("Document")}} interface, which is extended by the HTML specification to include various HTML-specific features. In particular, the {{domxref("Element")}} interface is enhanced to become {{domxref("HTMLElement")}} and various subclasses, each representing one of (or a family of closely related) elements.
-The HTML DOM API provides access to various browser features such as tabs and windows, CSS styles and stylesheets, browser history, and so forth. These interfaces are discussed further in the HTML DOM API documentation.
+The HTML DOM API provides access to various browser features such as tabs and windows, CSS styles and stylesheets, browser history, and so forth. These interfaces are discussed further in the HTML DOM API documentation.
SVG interfaces
diff --git a/files/en-us/web/api/documentfragment/documentfragment/index.html b/files/en-us/web/api/documentfragment/documentfragment/index.html
index 1bff11608a86565..7b68db2ab54c9d8 100644
--- a/files/en-us/web/api/documentfragment/documentfragment/index.html
+++ b/files/en-us/web/api/documentfragment/documentfragment/index.html
@@ -2,11 +2,11 @@
title: DocumentFragment()
slug: Web/API/DocumentFragment/DocumentFragment
tags:
-- API
-- Constructor
-- DOM
-- DocumentFragment
-- Experimental
+ - API
+ - Constructor
+ - DOM
+ - DocumentFragment
+ - Experimental
---
{{ApiRef("DOM")}}{{SeeCompatTable}}
@@ -21,7 +21,7 @@ Syntax
Example
let fragment = new DocumentFragment();
+ class="brush: js language-js">let fragment = new DocumentFragment();
Specifications
@@ -48,5 +48,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html b/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html
index f3addb6d14f4ee9..bb4f2258063564a 100644
--- a/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html
+++ b/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html
@@ -2,19 +2,19 @@
title: DocumentOrShadowRoot.elementFromPoint()
slug: Web/API/DocumentOrShadowRoot/elementFromPoint
tags:
-- API
-- Coordinates
-- Document
-- DocumentOrShadowRoot
-- Find Element
-- Method
-- Point
-- Reference
-- ShadowRoot
-- elementFromPoint
-- elementFromPoint()
-- find
-- shadow dom
+ - API
+ - Coordinates
+ - Document
+ - DocumentOrShadowRoot
+ - Find Element
+ - Method
+ - Point
+ - Reference
+ - ShadowRoot
+ - elementFromPoint
+ - elementFromPoint()
+ - find
+ - shadow dom
---
{{APIRef("DOM")}}
@@ -40,7 +40,7 @@
coordinate is negative, the result is null
.
If you need to find the specific position inside the element, use
- {{domxref("Document.caretPositionFromPoint()")}}.
+ {{domxref("DocumentOrShadowRoot.caretPositionFromPoint")}}.
Syntax
diff --git a/files/en-us/web/api/documentorshadowroot/index.html b/files/en-us/web/api/documentorshadowroot/index.html
index a0bf9ce980a4c40..3dc19ecd365076d 100644
--- a/files/en-us/web/api/documentorshadowroot/index.html
+++ b/files/en-us/web/api/documentorshadowroot/index.html
@@ -17,15 +17,15 @@
Properties
- - {{DOMxRef("DocumentOrShadowRoot.activeElement")}}{{ReadOnlyInline}}
+ - {{DOMxRef("Document.activeElement")}}{{ReadOnlyInline}}
- Returns the {{DOMxRef('Element')}} within the shadow tree that has focus.
- - {{DOMxRef("DocumentOrShadowRoot.fullscreenElement")}}{{ReadOnlyInline}}
+ - {{DOMxRef("Document.fullscreenElement")}}{{ReadOnlyInline}}
- Returns the {{DOMxRef('Element')}} that's currently in full screen mode for this document.
- - {{DOMxRef("DocumentOrShadowRoot.pictureInPictureElement")}}{{ReadOnlyInline}}
+ - {{DOMxRef("Document.pictureInPictureElement")}}{{ReadOnlyInline}}
- Returns the {{DOMxRef('HTMLVideoElement')}} that's currently in picture-in-picture mode for this document.
- - {{DOMxRef("DocumentOrShadowRoot.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}
+ - {{DOMxRef("Document.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}
- Returns the element set as the target for mouse events while the pointer is locked. It returns
null
if lock is pending, the pointer is unlocked, or if the target is in another document.
- - {{DOMxRef("DocumentOrShadowRoot.styleSheets")}}{{ReadOnlyInline}}
+ - {{DOMxRef("Document.styleSheets")}}{{ReadOnlyInline}}
- Returns a {{DOMxRef('StyleSheetList')}} of {{DOMxRef('CSSStyleSheet')}} objects for stylesheets explicitly linked into, or embedded in a document.
diff --git a/files/en-us/web/api/documenttouch/index.html b/files/en-us/web/api/documenttouch/index.html
index ffc50667488df4d..c577de89b16aad3 100644
--- a/files/en-us/web/api/documenttouch/index.html
+++ b/files/en-us/web/api/documenttouch/index.html
@@ -17,16 +17,16 @@
Methods
- - {{DOMxRef("DocumentTouch.createTouch()")}}
+ - {{DOMxRef("Document.createTouch")}}
- Creates a new {{DOMxRef("Touch")}} object.
- - {{DOMxRef("DocumentTouch.createTouchList()")}}
+ - {{DOMxRef("Document.createTouchList")}}
- Creates a new {{DOMxRef("TouchList")}} object.
See also
- - Touch events
+ - Touch events
- {{DOMxRef("Touch")}}
- {{DOMxRef("TouchList")}}
- {{DOMxRef("TouchEvent")}}
diff --git a/files/en-us/web/api/documenttype/index.html b/files/en-us/web/api/documenttype/index.html
index c4fb12a298c55b7..b340716163c7b5c 100644
--- a/files/en-us/web/api/documenttype/index.html
+++ b/files/en-us/web/api/documenttype/index.html
@@ -81,7 +81,7 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/domexception/code/index.html b/files/en-us/web/api/domexception/code/index.html
index bd21bdd5141905c..fc07309bf60f04d 100644
--- a/files/en-us/web/api/domexception/code/index.html
+++ b/files/en-us/web/api/domexception/code/index.html
@@ -2,17 +2,17 @@
title: DOMException.code
slug: Web/API/DOMException/code
tags:
-- API
-- Code
-- DOMException
-- Property
-- Reference
+ - API
+ - Code
+ - DOMException
+ - Property
+ - Reference
---
{{ APIRef("DOM") }}
The code
read-only property of the
{{domxref("DOMException")}} interface returns a short
that contains one of
- the error code constants, or
+ the error code constants, or
0
if none match. This field is used for historical reasons. New DOM
exceptions don't use this anymore: they put this info in the
{{domxref("DOMException.name")}} attribute.
diff --git a/files/en-us/web/api/domexception/index.html b/files/en-us/web/api/domexception/index.html
index f2bfed0e8d7310f..e0e3c8042a08581 100644
--- a/files/en-us/web/api/domexception/index.html
+++ b/files/en-us/web/api/domexception/index.html
@@ -29,7 +29,7 @@ Properties
- {{domxref("DOMException.code")}} {{deprecated_inline}} {{readOnlyInline}}
- Returns a
short
that contains one of the error code constants, or 0
if none match. This field is used for historical reasons. New DOM exceptions don't use this anymore: they put this info in the {{domxref("DOMException.name")}} attribute.
- {{domxref("DOMException.message")}} {{readOnlyInline}}
- - Returns a {{ domxref("DOMString") }} representing a message or description associated with the given error name.
+ - Returns a {{ domxref("DOMString") }} representing a message or description associated with the given error name.
- {{domxref("DOMException.name")}} {{readOnlyInline}}
- Returns a {{domxref("DOMString")}} that contains one of the strings associated with an error name.
diff --git a/files/en-us/web/api/domexception/message/index.html b/files/en-us/web/api/domexception/message/index.html
index 03d5ee4cceafa18..f1eb5be9fdb00aa 100644
--- a/files/en-us/web/api/domexception/message/index.html
+++ b/files/en-us/web/api/domexception/message/index.html
@@ -2,18 +2,18 @@
title: DOMException.message
slug: Web/API/DOMException/message
tags:
-- API
-- DOMException
-- Property
-- Reference
-- message
+ - API
+ - DOMException
+ - Property
+ - Reference
+ - message
---
{{ APIRef("DOM") }}
The message
read-only property of the
{{domxref("DOMException")}} interface returns a {{ domxref("DOMString") }} representing
a message or description associated with the given error name.
+ href="/en-US/docs/Web/API/DOMException#error_names">error name.
Syntax
diff --git a/files/en-us/web/api/domexception/name/index.html b/files/en-us/web/api/domexception/name/index.html
index 83b66695e03408a..3c84b5bd4517a10 100644
--- a/files/en-us/web/api/domexception/name/index.html
+++ b/files/en-us/web/api/domexception/name/index.html
@@ -2,19 +2,19 @@
title: DOMException.name
slug: Web/API/DOMException/name
tags:
-- API
-- DOM
-- DOMException
-- Property
-- Reference
-- name
+ - API
+ - DOM
+ - DOMException
+ - Property
+ - Reference
+ - name
---
{{ APIRef("DOM") }}
The name
read-only property of the
{{domxref("DOMException")}} interface returns a {{domxref("DOMString")}} that contains
one of the strings associated with an error name.
+ href="/en-US/docs/Web/API/DOMException#error_names">error name.
Syntax
diff --git a/files/en-us/web/api/domhighrestimestamp/index.html b/files/en-us/web/api/domhighrestimestamp/index.html
index 0a071f41c6262ad..0a72022b76c1389 100644
--- a/files/en-us/web/api/domhighrestimestamp/index.html
+++ b/files/en-us/web/api/domhighrestimestamp/index.html
@@ -118,7 +118,7 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/domimplementation/createhtmldocument/index.html b/files/en-us/web/api/domimplementation/createhtmldocument/index.html
index 3f4cb764c6bdc3f..66ffd3d93f6b9fc 100644
--- a/files/en-us/web/api/domimplementation/createhtmldocument/index.html
+++ b/files/en-us/web/api/domimplementation/createhtmldocument/index.html
@@ -2,12 +2,12 @@
title: DOMImplementation.createHTMLDocument()
slug: Web/API/DOMImplementation/createHTMLDocument
tags:
-- API
-- DOM
-- DOM Reference
-- DOMImplementation
-- Method
-- Reference
+ - API
+ - DOM
+ - DOM Reference
+ - DOMImplementation
+ - Method
+ - Reference
---
{{ApiRef("DOM")}}
@@ -76,7 +76,7 @@ Example
contents of our new document into the new document's context. Finally, line 20 actually
replaces the contents of the frame with the new document's contents.
-View Live Examples
+View Live Examples
The returned document is pre-constructed with the following HTML:
diff --git a/files/en-us/web/api/domimplementation/index.html b/files/en-us/web/api/domimplementation/index.html
index 0586415a210335b..6416ebc03be278a 100644
--- a/files/en-us/web/api/domimplementation/index.html
+++ b/files/en-us/web/api/domimplementation/index.html
@@ -71,5 +71,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/dompointinit/w/index.html b/files/en-us/web/api/dompointinit/w/index.html
index 84b5d04ea3c7ded..94ab3eef75c1b99 100644
--- a/files/en-us/web/api/dompointinit/w/index.html
+++ b/files/en-us/web/api/dompointinit/w/index.html
@@ -2,16 +2,16 @@
title: DOMPointInit.w
slug: Web/API/DOMPointInit/w
tags:
-- API
-- DOM
-- DOMPointInit
-- Geometry
-- Geometry Interfaces
-- Point
-- Property
-- Reference
-- W
-- perspective
+ - API
+ - DOM
+ - DOMPointInit
+ - Geometry
+ - Geometry Interfaces
+ - Point
+ - Property
+ - Reference
+ - W
+ - perspective
---
{{APIRef("DOM")}}
@@ -46,7 +46,7 @@ Value
inheritance, also available as {{domxref("DOMPoint.fromPoint()")}}.
- The {{domxref("DOMPointReadOnly.toJSON()")}} method returns a
DOMPointInit
object that describes the same point as the original point.
- By inheritance, this method is also available as {{domxref("DOMPoint.toJSON()")}}.
+ By inheritance, this method is also available as {{domxref("DOMPointReadOnly.toJSON")}}.
diff --git a/files/en-us/web/api/dompointinit/x/index.html b/files/en-us/web/api/dompointinit/x/index.html
index f485b7010970697..bbb32299ed528cd 100644
--- a/files/en-us/web/api/dompointinit/x/index.html
+++ b/files/en-us/web/api/dompointinit/x/index.html
@@ -2,16 +2,16 @@
title: DOMPointInit.x
slug: Web/API/DOMPointInit/x
tags:
-- API
-- Coordinates
-- DOM
-- DOMPointInit
-- Geometry
-- Geometry Interfaces
-- Point
-- Property
-- Reference
-- x
+ - API
+ - Coordinates
+ - DOM
+ - DOMPointInit
+ - Geometry
+ - Geometry Interfaces
+ - Point
+ - Property
+ - Reference
+ - x
---
{{APIRef("DOM")}}
@@ -47,7 +47,7 @@ Value
DOMPointInit
is used as an input when calling either
{{domxref("DOMPointReadOnly.fromPoint()")}} or {{domxref("DOMPoint.fromPoint()")}}, and
is returned by the {{domxref("DOMPointReadOnly.toJSON()")}} and
- {{domxref("DOMPoint.toJSON()")}} methods.
+ {{domxref("DOMPointReadOnly.toJSON")}} methods.
Specifications
diff --git a/files/en-us/web/api/dompointinit/y/index.html b/files/en-us/web/api/dompointinit/y/index.html
index 28f498d405d8c18..2d4a772bfa38cf0 100644
--- a/files/en-us/web/api/dompointinit/y/index.html
+++ b/files/en-us/web/api/dompointinit/y/index.html
@@ -2,16 +2,16 @@
title: DOMPointInit.y
slug: Web/API/DOMPointInit/y
tags:
-- API
-- Coordinates
-- DOM
-- DOMPointInit
-- Geometry
-- Geometry Interfaces
-- Point
-- Property
-- Reference
-- 'y'
+ - API
+ - Coordinates
+ - DOM
+ - DOMPointInit
+ - Geometry
+ - Geometry Interfaces
+ - Point
+ - Property
+ - Reference
+ - 'y'
---
{{APIRef("DOM")}}
@@ -53,7 +53,7 @@ Value
inheritance, also available as {{domxref("DOMPoint.fromPoint()")}}.
- The {{domxref("DOMPointReadOnly.toJSON()")}} method returns a
DOMPointInit
object that describes the same point as the original point.
- By inheritance, this method is also available as {{domxref("DOMPoint.toJSON()")}}.
+ By inheritance, this method is also available as {{domxref("DOMPointReadOnly.toJSON")}}.
diff --git a/files/en-us/web/api/dompointinit/z/index.html b/files/en-us/web/api/dompointinit/z/index.html
index bb5e9ff29e44c6b..b67d5e898eadd7f 100644
--- a/files/en-us/web/api/dompointinit/z/index.html
+++ b/files/en-us/web/api/dompointinit/z/index.html
@@ -2,16 +2,16 @@
title: DOMPointInit.z
slug: Web/API/DOMPointInit/z
tags:
-- API
-- Coordinates
-- DOM
-- DOMPointInit
-- Geometry
-- Geometry Interfaces
-- Point
-- Property
-- Reference
-- z
+ - API
+ - Coordinates
+ - DOM
+ - DOMPointInit
+ - Geometry
+ - Geometry Interfaces
+ - Point
+ - Property
+ - Reference
+ - z
---
{{APIRef("DOM")}}
@@ -54,7 +54,7 @@ Value
inheritance, also available as {{domxref("DOMPoint.fromPoint()")}}.
- The {{domxref("DOMPointReadOnly.toJSON()")}} method returns a
DOMPointInit
object that describes the same point as the original point.
- By inheritance, this method is also available as {{domxref("DOMPoint.toJSON()")}}.
+ By inheritance, this method is also available as {{domxref("DOMPointReadOnly.toJSON")}}.
diff --git a/files/en-us/web/api/domstring/binary/index.html b/files/en-us/web/api/domstring/binary/index.html
index 395f251ce411c41..0e963cd343ee446 100644
--- a/files/en-us/web/api/domstring/binary/index.html
+++ b/files/en-us/web/api/domstring/binary/index.html
@@ -10,11 +10,11 @@
---
{{jsxref("String", "JavaScript strings")}} are UTF-16 encoded strings. This means that each code unit requires two bytes of memory and is able to represent 65535
different code points. A subset of these strings is represented by UTF-16 strings containing only ASCII characters (i.e., characters whose code point does not exceed 127
). For instance, the string "Hello world!"
belongs to the ASCII subset, while the string "ÀÈÌÒÙ"
does not. A binary string is a concept similar to the ASCII subset, but instead of limiting the range to 127
, it allows code points until 255
. Its purpose however is not to represent characters, but binary data. The size of the data so represented is twice as big as it would be in normal binary format, however this will not be visible to the final user, since the length of JavaScript strings is calculated using two bytes as the unit.
-Binary strings are not part of the JavaScript language design. However at least one native function requires binary strings as its input, {{domxref("WindowBase64.btoa","btoa()")}}: invoking it on a string that contains codepoints greater than 255
will cause a Character Out Of Range
error.
+Binary strings are not part of the JavaScript language design. However at least one native function requires binary strings as its input, {{domxref("WindowOrWorkerGlobalScope/btoa","btoa()")}}: invoking it on a string that contains codepoints greater than 255
will cause a Character Out Of Range
error.
The reason that brought to use UTF-16 code units as placeholders for uint8
numbers is that as web applications become more and more powerful (adding features such as audio and video manipulation, access to raw data using WebSockets, and so forth) it has become clear that there are times when it would be helpful for JavaScript code to be able to quickly and easily manipulate raw binary data.
-In the past, this had to be simulated by treating the raw data as a string and using the charCodeAt()
method to read the bytes from the data buffer (i.e., using binary strings). However, this is slow and error-prone, due to the need for multiple conversions (especially if the binary data is not actually byte-format data, but, for example, 32-bit integers or floats).
+In the past, this had to be simulated by treating the raw data as a string and using the charCodeAt()
method to read the bytes from the data buffer (i.e., using binary strings). However, this is slow and error-prone, due to the need for multiple conversions (especially if the binary data is not actually byte-format data, but, for example, 32-bit integers or floats).
JavaScript typed arrays provide a mechanism for accessing raw binary data much more efficiently.
diff --git a/files/en-us/web/api/domstringlist/index.html b/files/en-us/web/api/domstringlist/index.html
index bd56ff1c60e383e..bbe104ebd49d140 100644
--- a/files/en-us/web/api/domstringlist/index.html
+++ b/files/en-us/web/api/domstringlist/index.html
@@ -9,7 +9,7 @@
---
{{ APIRef("DOM") }}
-A type returned by some APIs which contains a list of DOMString (strings).
+A type returned by some APIs which contains a list of DOMString (strings).
Properties
diff --git a/files/en-us/web/api/domstringmap/index.html b/files/en-us/web/api/domstringmap/index.html
index 654d6aa4b21ffbb..cd5a7ec267b19e3 100644
--- a/files/en-us/web/api/domstringmap/index.html
+++ b/files/en-us/web/api/domstringmap/index.html
@@ -12,7 +12,7 @@
---
{{ APIRef("HTML DOM") }}
-The DOMStringMap
interface is used for the {{ domxref("HTMLElement.dataset") }} attribute, to represent data for custom attributes added to elements.
+The DOMStringMap
interface is used for the {{ domxref("HTMLOrForeignElement.dataset") }} attribute, to represent data for custom attributes added to elements.
Specifications
@@ -40,6 +40,6 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/domtokenlist/supports/index.html b/files/en-us/web/api/domtokenlist/supports/index.html
index 3f5c9dc856cca5a..993a98834904622 100644
--- a/files/en-us/web/api/domtokenlist/supports/index.html
+++ b/files/en-us/web/api/domtokenlist/supports/index.html
@@ -2,10 +2,10 @@
title: DOMTokenList.supports()
slug: Web/API/DOMTokenList/supports
tags:
-- API
-- DOM
-- Method
-- Reference
+ - API
+ - DOM
+ - Method
+ - Reference
---
{{APIRef("DOM")}}{{SeeCompatTable}}
@@ -32,7 +32,7 @@ Returns
Example
-let iframe = document.getElementById('display');
+let iframe = document.getElementById('display');
if (iframe.sandbox.supports('an-upcoming-feature')) {
// support code for mystery future feature
@@ -45,7 +45,7 @@ Example
//
// (NOTE: This feature is well-supported; this is just an example!)
//
-}
+}
Specifications
diff --git a/files/en-us/web/api/domuserdata/index.html b/files/en-us/web/api/domuserdata/index.html
index ae76fd898306bdd..42f5c8e84187509 100644
--- a/files/en-us/web/api/domuserdata/index.html
+++ b/files/en-us/web/api/domuserdata/index.html
@@ -11,9 +11,9 @@
---
{{ ApiRef("DOM") }}{{deprecated_header}}
-DOMUserData
refers to application data. In JavaScript, it maps directly to Object
. It is returned or used as an argument by Node.setUserData()
, Node.getUserData()
, used as the third argument to handle()
on UserDataHandler
, and is used or returned by various DOMConfiguration
methods.
+DOMUserData
refers to application data. In JavaScript, it maps directly to Object
. It is returned or used as an argument by Node.setUserData()
, Node.getUserData()
, used as the third argument to handle()
on UserDataHandler
, and is used or returned by various DOMConfiguration
methods.
-Note that although it can be an object, in Mozilla, it may be returned as a string or other type, if it was set as such a type (e.g., Node.setUserData()
and Node.getUserData()
).
+Note that although it can be an object, in Mozilla, it may be returned as a string or other type, if it was set as such a type (e.g., Node.setUserData()
and Node.getUserData()
).
DOMUserData
is not persisted nor serialized and will not be present after the application has restarted or after a crash. If you are interested in persisting data you might rather need to use {{ interface("nsISessionStore") }}.
@@ -39,7 +39,7 @@ Specifications
See also
diff --git a/files/en-us/web/api/dragevent/dragevent/index.html b/files/en-us/web/api/dragevent/dragevent/index.html
index 4be47e5b880fc41..10028a5bced4356 100644
--- a/files/en-us/web/api/dragevent/dragevent/index.html
+++ b/files/en-us/web/api/dragevent/dragevent/index.html
@@ -2,11 +2,11 @@
title: DragEvent()
slug: Web/API/DragEvent/DragEvent
tags:
-- API
-- Constructor
-- DOM
-- Reference
-- drag and drop
+ - API
+ - Constructor
+ - DOM
+ - Reference
+ - drag and drop
---
{{APIRef("HTML Drag and Drop API")}}
@@ -30,7 +30,7 @@ Arguments
- type
- Is a
{{domxref("DOMString")}}
representing the name of the event (see
- DragEvent event types).
+ DragEvent event types).
- DragEventInit{{optional_inline}}
- Is a
DragEventInit
dictionary, having the following fields:
diff --git a/files/en-us/web/api/dynamicscompressornode/attack/index.html b/files/en-us/web/api/dynamicscompressornode/attack/index.html
index 389bdec48e42066..c52a01ad763510d 100644
--- a/files/en-us/web/api/dynamicscompressornode/attack/index.html
+++ b/files/en-us/web/api/dynamicscompressornode/attack/index.html
@@ -12,7 +12,7 @@
{{ APIRef("Web Audio API") }}
-
The attack
property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB. It defines how quickly the signal is adapted when its volume is increased.
+
The attack
property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB. It defines how quickly the signal is adapted when its volume is increased.
The attack
property's default value is 0.003
and it can be set between 0
and 1
.
@@ -60,5 +60,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/dynamicscompressornode/index.html b/files/en-us/web/api/dynamicscompressornode/index.html
index b71c80b114d14bf..a5f96f734d3e93f 100644
--- a/files/en-us/web/api/dynamicscompressornode/index.html
+++ b/files/en-us/web/api/dynamicscompressornode/index.html
@@ -13,7 +13,7 @@
{{ APIRef("Web Audio API") }}
-
The DynamicsCompressorNode
interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. This is often used in musical production and game audio. DynamicsCompressorNode
is an {{domxref("AudioNode")}} that has exactly one input and one output; it is created using the {{domxref("AudioContext.createDynamicsCompressor()")}} method.
+
The DynamicsCompressorNode
interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. This is often used in musical production and game audio. DynamicsCompressorNode
is an {{domxref("AudioNode")}} that has exactly one input and one output; it is created using the {{domxref("BaseAudioContext.createDynamicsCompressor")}} method.
@@ -54,17 +54,17 @@ Properties
- {{domxref("DynamicsCompressorNode.threshold")}} {{readonlyInline}}
- - Is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.
+ - Is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.
- {{domxref("DynamicsCompressorNode.knee")}} {{readonlyInline}}
- - Is a k-rate {{domxref("AudioParam")}} containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.
+ - Is a k-rate {{domxref("AudioParam")}} containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.
- {{domxref("DynamicsCompressorNode.ratio")}} {{readonlyInline}}
- - Is a k-rate {{domxref("AudioParam")}} representing the amount of change, in dB, needed in the input for a 1 dB change in the output.
+ - Is a k-rate {{domxref("AudioParam")}} representing the amount of change, in dB, needed in the input for a 1 dB change in the output.
- {{domxref("DynamicsCompressorNode.reduction")}} {{readonlyInline}}
- Is a
float
representing the amount of gain reduction currently applied by the compressor to the signal.
- {{domxref("DynamicsCompressorNode.attack")}} {{readonlyInline}}
- - Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB.
+ - Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB.
- {{domxref("DynamicsCompressorNode.release")}} {{readonlyInline}}
- - Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB.
+ - Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB.
Methods
@@ -99,5 +99,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/dynamicscompressornode/reduction/index.html b/files/en-us/web/api/dynamicscompressornode/reduction/index.html
index 625091b3303dd43..9fcfdb435619fa3 100644
--- a/files/en-us/web/api/dynamicscompressornode/reduction/index.html
+++ b/files/en-us/web/api/dynamicscompressornode/reduction/index.html
@@ -55,5 +55,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/dynamicscompressornode/release/index.html b/files/en-us/web/api/dynamicscompressornode/release/index.html
index e23cce514f6251e..6422523eb7497b1 100644
--- a/files/en-us/web/api/dynamicscompressornode/release/index.html
+++ b/files/en-us/web/api/dynamicscompressornode/release/index.html
@@ -12,7 +12,7 @@
{{ APIRef("Web Audio API") }}
-
The release
property of the {{ domxref("DynamicsCompressorNode") }} interface Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB. It defines how quick the signal is adapted when its volume is reduced.
+
The release
property of the {{ domxref("DynamicsCompressorNode") }} interface Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB. It defines how quick the signal is adapted when its volume is reduced.
The release
property's default value is 0.25
and it can be set between 0
and 1
.
@@ -60,5 +60,5 @@ Browser compatibility
See also
diff --git a/files/en-us/web/api/dynamicscompressornode/threshold/index.html b/files/en-us/web/api/dynamicscompressornode/threshold/index.html
index 5098229f6ccbef4..35c27baca8031ad 100644
--- a/files/en-us/web/api/dynamicscompressornode/threshold/index.html
+++ b/files/en-us/web/api/dynamicscompressornode/threshold/index.html
@@ -12,11 +12,11 @@
{{ APIRef("Web Audio API") }}
-
The threshold
property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.
+
The threshold
property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.
The threshold
property's default value is -24
and it can be set between -100
and 0
.
-
+
Syntax
@@ -62,5 +62,5 @@ Browser compatibility
See also