Skip to content

Commit

Permalink
Clarify when PiP element can be null (mdn#34656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Jul 6, 2024
1 parent 4702911 commit 20e15ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/api/document/pictureinpictureelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ strict mode); the setter is a no-operation and will be ignored.

## Value

A reference to the {{domxref("Element")}} object that's currently in
picture-in-picture mode; if picture-in-picture mode isn't currently in use by the
`document`, the returned value is `null`.
A reference to the {{domxref("Element")}} object that's currently in picture-in-picture mode.

Returns `null` if the document has no associated element in picture-in-picture mode. For example, there's no picture-in-picture element, or the element is from an iframe.

## Examples

Expand Down

0 comments on commit 20e15ad

Please sign in to comment.