Document
abstract class Document : Node, IDocument, INode, IEventTarget, IMarkupFormattable, IParentNode, IGlobalEventHandlers, IDocumentStyle, INonElementParentNode, IDisposable
Represents a document node.
Gets the currently focused element, that is, the element that will
get keystroke events if the user types any.
Gets a list of all elements in the document.
Gets a list of all of the anchors in the document.
Gets the body element.
Gets the character encoding of the current document.
Gets the number of child elements.
Gets the child elements.
Gets a list of the commands (menu item, button, and link elements)
within the current document.
Gets a value to indicate whether the document is rendered in Quirks
mode (BackComp) or Strict mode (CSS1Compat).
Gets the Content-Type from the MIME Header of the current document.
Gets the browsing context to use.
Gets or sets the document cookie.
Gets the script which is currently being processed.
Gets the window object associated with the document or null if none
available.
Gets or sets if the whole document is editable.
Gets or sets the value of the dir attribute.
Gets the document type.
Gets the root element of the document.
Gets the URI of the current document.
Gets the url of the current document.
Gets the domain portion of the origin of the current document.
Gets the first child element of this element.
Gets the forms in the document.
Gets or sets the head element.
Gets the images in the document.
Gets the DOMImplementation object that handles this document.
Gets an indicator if loading the document should be asynchronous or
synchronous.
Gets the last child element of this element.
Gets a string containing the date and time on which the current
document was last modified.
Gets the last enabled style sheet set; this property's value
changes whenever the SelectedStyleSheetSet property is changed.
Gets a collection of all AREA elements and anchor elements in a
document with a value for the href attribute.
Gets or sets the URI of the current document.
Gets the origin of the document.
Gets a list of the plugin elements within the current document.
Gets the preferred style sheet set as set by the page author.
Gets or sets the ready state of the document.
Gets the URI of the page that linked to this page.
Gets the scripts in the document.
Gets or sets the selected stylesheet set.
Gets a list of stylesheet objects for stylesheets explicitly linked
into or embedded in a document.
Gets a live list of all of the currently-available style sheet
sets.
Gets or sets the title of the document.
Gets a string containing the URL of the current document.
Copies all (Document) properties of the source to the target.
Removes the node from its original document and places it in this
document.
Appends nodes to current document.
Returns a duplicate of the node on which this method was called.
Creates a new comment node, and returns it.
Creates an empty DocumentFragment object.
Creates a new element with the given tag name.
Creates a new element with the given tag name and namespace URI.
Creates an event of the type specified.
public INodeIterator CreateNodeIterator(INode root, FilterSettings settings = 4294967295, NodeFilter filter = null)
Creates a new NodeIterator object.
Creates a ProcessingInstruction node given the specified name and
data strings.
Returns a new Range object.
Creates a new Text node.
public ITreeWalker CreateTreeWalker(INode root, FilterSettings settings = 4294967295, NodeFilter filter = null)
Creates a new TreeWalker object.
Destroys the current document.
Enables the stylesheets matching the specified name in the current
stylesheet set, and disables all other stylesheets (except those
without a title, which are always enabled).
Returns the Element whose ID is given by elementId. If no such
element exists, returns null. The behavior is not defined if more
than one element have this ID.
Returns a set of elements which have all the given class names.
Returns a list of elements with a given name in the HTML document.
Returns a NodeList of elements with the given tag name. The
complete document is searched, including the root node.
Returns a list of elements with the given tag name belonging to the
given namespace. The complete document is searched, including the
root node.
Checks if the document has focus.
Creates a copy of a node from an external document that can be
inserted into the current document.
Loads the document content from the given url.
Opens a document stream for writing. For information see:
http://www.whatwg.org/specs/web-apps/current-work/#dom-document-open
Opens a new window. Basically just uses the current window (if any)
to open another window.
Prepends nodes to the current document.
Returns the first element within the document (using depth-first
pre-order traversal of the document's nodes) that matches the
specified group of selectors.
Returns a list of the elements within the document (using
depth-first pre-order traversal of the document's nodes) that match
the specified group of selectors.
Writes text to a document.
Writes a line of text to a document.