From b339e110c7feb1846182691315a6834f88ea2d71 Mon Sep 17 00:00:00 2001 From: SDP190 Date: Thu, 29 Apr 2021 14:26:02 -0400 Subject: [PATCH 1/2] Fix information for fullscreenchange event Fixing wrong statement stating that the that "fullscreenchange" event is sent to the Document object when entire document is entered/exited fullscreen mode. But in real, this event never gets sent directly to document, instead when any Element in the document raises fullscreenchange event, it gets bubbled up to the Document object. --- files/en-us/web/api/fullscreen_api/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/en-us/web/api/fullscreen_api/index.html b/files/en-us/web/api/fullscreen_api/index.html index c5041e98da2f9f6..03ac06c412ed732 100644 --- a/files/en-us/web/api/fullscreen_api/index.html +++ b/files/en-us/web/api/fullscreen_api/index.html @@ -72,9 +72,9 @@

Event handlers on documents

{{DOMxRef("Document.onfullscreenchange")}}
-
An event handler for the {{Event("fullscreenchange")}} event that's sent to a {{DOMxRef("Document")}} when that document is placed into full-screen mode, or when that document exits full-screen mode. This handler is called only when the entire document is presented in full-screen mode.
+
An event handler for the {{Event("fullscreenchange")}} event that's bubbled up to the {{DOMxRef("Document")}} when any {{DOMxRef("Element")}} in that document is placed into full-screen mode, or exits full-screen mode.
{{DOMxRef("Document.onfullscreenerror")}}
-
An event handler for the {{Event("fullscreenerror")}} event that gets sent to a {{DOMxRef("Document")}} when an error occurs while trying to enable or disable full-screen mode for the entire document.
+
An event handler for the {{Event("fullscreenerror")}} event that gets bubbled up to the {{DOMxRef("Document")}} when an error occurs while trying to enable or disable full-screen mode for any {{DOMxRef("Element")}} in that document.

Event handlers on elements

@@ -101,9 +101,9 @@

Events

{{Event("fullscreenchange")}}
-
Sent to a {{DOMxRef("Document")}} or {{DOMxRef("Element")}} when it transitions into or out of full-screen mode.
+
Sent to a {{DOMxRef("Element")}} when it transitions into or out of full-screen mode.
{{Event("fullscreenerror")}}
-
Sent to a Document or Element if an error occurs while attempting to switch it into or out of full-screen mode.
+
Sent to a Element if an error occurs while attempting to switch it into or out of full-screen mode.

Dictionaries

From d1c04dd9996c8826ac1d3d8f84077eb67ed0c8f4 Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Fri, 30 Apr 2021 08:27:21 +0100 Subject: [PATCH 2/2] small copy edit --- files/en-us/web/api/fullscreen_api/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/api/fullscreen_api/index.html b/files/en-us/web/api/fullscreen_api/index.html index 03ac06c412ed732..bc269fe40eeac48 100644 --- a/files/en-us/web/api/fullscreen_api/index.html +++ b/files/en-us/web/api/fullscreen_api/index.html @@ -101,9 +101,9 @@

Events

{{Event("fullscreenchange")}}
-
Sent to a {{DOMxRef("Element")}} when it transitions into or out of full-screen mode.
+
Sent to an {{DOMxRef("Element")}} when it transitions into or out of full-screen mode.
{{Event("fullscreenerror")}}
-
Sent to a Element if an error occurs while attempting to switch it into or out of full-screen mode.
+
Sent to an Element if an error occurs while attempting to switch it into or out of full-screen mode.

Dictionaries