Name
Document — an HTML or XML document
Availability
DOM Level 1 Core
Inherits from/Overrides
Node → Document
Subinterfaces
HTMLDocument
Also Implements
- DocumentCSS
If the implementation supports the CSS module, the object that implements this Document interface also implements the DocumentCSS interface and its
getOverrideStyle( )
method.- DocumentEvent
If the implementation supports the Events module, the object that implements this Document interface also implements the DocumentEvent interface and its
createEvent( )
method.- DocumentRange
If the implementation supports the Range module, the object that implements this Document interface also implements the DocumentRange interface and its
createRange( )
method.- DocumentStyle
If the implementation supports the StyleSheets module, the object that implements this Document interface also implements the DocumentStyle interface and its
styleSheets
property.- DocumentTraversal
If the implementation supports the Traversal module, the object that implements this Document interface also implements the DocumentTraversal interface and its
createNodeIterator( )
andcreateTreeWalker( )
methods.- DocumentView
If the implementation supports the Views module, the object that implements this Document interface also implements the DocumentView interface and its
defaultView
property.
Because these interfaces define commonly implemented additions to the Document interface, their properties and methods are listed and documented here, as if they were directly part of ...
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.