Skip to content

Commit

Permalink
Fix information for fullscreenchange event (#4603)
Browse files Browse the repository at this point in the history
* 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.

* small copy edit

Co-authored-by: Chris Mills <[email protected]>
  • Loading branch information
SDP190 and chrisdavidmills authored Apr 30, 2021
1 parent 170b0b7 commit 202f8fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/en-us/web/api/fullscreen_api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ <h4 id="Event_handlers_on_documents">Event handlers on documents</h4>

<dl>
<dt>{{DOMxRef("Document.onfullscreenchange")}}</dt>
<dd>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.</dd>
<dd>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.</dd>
<dt>{{DOMxRef("Document.onfullscreenerror")}}</dt>
<dd>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.</dd>
<dd>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.</dd>
</dl>

<h4 id="Event_handlers_on_elements">Event handlers on elements</h4>
Expand All @@ -101,9 +101,9 @@ <h2 id="Events">Events</h2>

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

<h2 id="Dictionaries">Dictionaries</h2>
Expand Down

0 comments on commit 202f8fa

Please sign in to comment.