Document.mozSyntheticDocument
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The Document.mozSyntheticDocument
property indicates
whether or not the document is a synthetic one; that is, a document representing a
standalone image, video, audio, or the like.
Value
A boolean value that is true
if the document is synthetic, or false
otherwise.
Examples
This can be useful if you have a contextual menu item you only want to display for synthetic documents (or, conversely, for documents that aren't synthetic).
var isSynthetic = document.mozSyntheticDocument;
if (isSynthetic) {
/* insert your menu item here */
}
Specifications
Not part of any specification.
Browser compatibility
BCD tables only load in the browser