#### PyKDE - Python Bindings for KDE

# class DOM.Document

Table of contents
Modules
khtml Classes
All Classes

Module | khtml
Class | DOM.Document
Inherits | DOM.Node

### methods

- Document ()

  returns a Document instance

- Document (a0)

  returns a Document instance

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- Document (other)

  returns a Document instance

  Argument | Type | Default
  --- | --- | ---
  other | DOM.Document |

- Document (other)

  returns a Document instance

  Argument | Type | Default
  --- | --- | ---
  other | DOM.Node |

- Document (i)

  Not Implemented

- Document (a0)

  Not Implemented

- abort ()

  returns nothing
  In versions KDE 3.2.0 and above only

- addStyleSheet (sheet)

  returns nothing
  In versions KDE 3.4.0 and above only

  Argument | Type | Default
  --- | --- | ---
  sheet | DOM.StyleSheet |

- async ()

  returns (bool)
  In versions KDE 3.2.0 and above only

- completeURL (url)

  returns (DOM.DOMString)

  Argument | Type | Default
  --- | --- | ---
  url | DOM.DOMString |

- createAttribute (name)

  returns (DOM.Attr)

  Argument | Type | Default
  --- | --- | ---
  name | DOM.DOMString |

- createAttributeNS (namespaceURI, qualifiedName)

  returns (DOM.Attr)

  Argument | Type | Default
  --- | --- | ---
  namespaceURI | DOM.DOMString |
  qualifiedName | DOM.DOMString |

- createCDATASection (data)

  returns (DOM.CDATASection)

  Argument | Type | Default
  --- | --- | ---
  data | DOM.DOMString |

- createComment (data)

  returns (DOM.Comment)

  Argument | Type | Default
  --- | --- | ---
  data | DOM.DOMString |

- createDocumentFragment ()

  returns (DOM.DocumentFragment)

- createElement (tagName)

  returns (DOM.Element)

  Argument | Type | Default
  --- | --- | ---
  tagName | DOM.DOMString |

- createElementNS (namespaceURI, qualifiedName)

  returns (DOM.Element)

  Argument | Type | Default
  --- | --- | ---
  namespaceURI | DOM.DOMString |
  qualifiedName | DOM.DOMString |

- createEntityReference (name)

  returns (DOM.EntityReference)

  Argument | Type | Default
  --- | --- | ---
  name | DOM.DOMString |

- createEvent (eventType)

  returns (DOM.Event)

  Argument | Type | Default
  --- | --- | ---
  eventType | DOM.DOMString |

- createNodeIterator (root, whatToShow, filter, entityReferenceExpansion)

  returns (DOM.NodeIterator)

  Argument | Type | Default
  --- | --- | ---
  root | DOM.Node |
  whatToShow | ulong |
  filter | DOM.NodeFilter |
  entityReferenceExpansion | bool |

- createProcessingInstruction (target, data)

  returns (DOM.ProcessingInstruction)

  Argument | Type | Default
  --- | --- | ---
  target | DOM.DOMString |
  data | DOM.DOMString |

- createRange ()

  returns (DOM.Range)

- createTextNode (data)

  returns (DOM.Text)

  Argument | Type | Default
  --- | --- | ---
  data | DOM.DOMString |

- createTreeWalker (root, whatToShow, filter, entityReferenceExpansion)

  returns (DOM.TreeWalker)

  Argument | Type | Default
  --- | --- | ---
  root | DOM.Node |
  whatToShow | ulong |
  filter | DOM.NodeFilter |
  entityReferenceExpansion | bool |

- defaultView ()

  returns (DOM.AbstractView)

- designMode ()

  returns (bool)
  In versions KDE 3.2.0 and above only

- doctype ()

  returns (DOM.DocumentType)

- documentElement ()

  returns (DOM.Element)

- getElementById (elementId)

  returns (DOM.Element)

  Argument | Type | Default
  --- | --- | ---
  elementId | DOM.DOMString |

- getElementsByTagName (tagname)

  returns (DOM.NodeList)

  Argument | Type | Default
  --- | --- | ---
  tagname | DOM.DOMString |

- getElementsByTagNameNS (namespaceURI, localName)

  returns (DOM.NodeList)

  Argument | Type | Default
  --- | --- | ---
  namespaceURI | DOM.DOMString |
  localName | DOM.DOMString |

- getOverrideStyle (elt, pseudoElt)

  returns (DOM.CSSStyleDeclaration)

  Argument | Type | Default
  --- | --- | ---
  elt | DOM.Element |
  pseudoElt | DOM.DOMString |

- implementation ()

  returns (DOM.DOMImplementation)

- importNode (importedNode, deep)

  returns (DOM.Node)

  Argument | Type | Default
  --- | --- | ---
  importedNode | DOM.Node |
  deep | bool |

- isHTMLDocument ()

  returns (bool)

- load (uri)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  uri | DOM.DOMString |

- loadXML (source)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  source | DOM.DOMString |

- preferredStylesheetSet ()

  returns (DOM.DOMString)
  In versions KDE 3.2.0 and above only

- removeStyleSheet (sheet)

  returns nothing
  In versions KDE 3.4.0 and above only

  Argument | Type | Default
  --- | --- | ---
  sheet | DOM.StyleSheet |

- selectedStylesheetSet ()

  returns (DOM.DOMString)
  In versions KDE 3.2.0 and above only

- setAsync (a0)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setDesignMode (enable)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

- setSelectedStylesheetSet (aString)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  aString | DOM.DOMString |

- styleSheets ()

  returns (DOM.StyleSheetList)

- toString ()

  returns (DOM.DOMString)
  In versions KDE 3.3.0 and above only

- updateRendering ()

  returns nothing
  In versions KDE 3.2.0 and above only

- view ()

  returns (KHTMLView)