KDE 4.9 PyKDE API Reference

- KDE's Python API

# DOM Namespace Reference

`from PyKDE4.khtml.DOM import *`

## Detailed Description

## Class Index

A | HTMLAnchorElement (DOM) | HTMLPreElement (DOM)
AbstractView (DOM) | HTMLAppletElement (DOM) | HTMLQuoteElement (DOM)
Attr (DOM) | HTMLAreaElement (DOM) | HTMLScriptElement (DOM)
C | HTMLBaseElement (DOM) | HTMLSelectElement (DOM)
CDATASection (DOM) | HTMLBaseFontElement (DOM) | HTMLStyleElement (DOM)
CharacterData (DOM) | HTMLBlockquoteElement (DOM) | HTMLTableCaptionElement (DOM)
Comment (DOM) | HTMLBodyElement (DOM) | HTMLTableCellElement (DOM)
Counter (DOM) | HTMLBRElement (DOM) | HTMLTableColElement (DOM)
CSSCharsetRule (DOM) | HTMLButtonElement (DOM) | HTMLTableElement (DOM)
CSSException (DOM) | HTMLCollection (DOM) | HTMLTableRowElement (DOM)
CSSFontFaceRule (DOM) | HTMLDirectoryElement (DOM) | HTMLTableSectionElement (DOM)
CSSImportRule (DOM) | HTMLDivElement (DOM) | HTMLTextAreaElement (DOM)
CSSMediaRule (DOM) | HTMLDListElement (DOM) | HTMLTitleElement (DOM)
CSSNamespaceRule (DOM) | HTMLDocument (DOM) | HTMLUListElement (DOM)
CSSPageRule (DOM) | HTMLElement (DOM) | L
CSSPrimitiveValue (DOM) | HTMLFieldSetElement (DOM) | LinkStyle (DOM)
CSSRule (DOM) | HTMLFontElement (DOM) | M
CSSRuleList (DOM) | HTMLFormElement (DOM) | MediaList (DOM)
CSSStyleDeclaration (DOM) | HTMLFrameElement (DOM) | MouseEvent (DOM)
CSSStyleRule (DOM) | HTMLFrameSetElement (DOM) | MutationEvent (DOM)
CSSStyleSheet (DOM) | HTMLHeadElement (DOM) | N
CSSUnknownRule (DOM) | HTMLHeadingElement (DOM) | NamedNodeMap (DOM)
CSSValue (DOM) | HTMLHRElement (DOM) | Node (DOM)
CSSValueList (DOM) | HTMLHtmlElement (DOM) | NodeFilter (DOM)
CustomNodeFilter (DOM) | HTMLIFrameElement (DOM) | NodeIterator (DOM)
D | HTMLImageElement (DOM) | NodeList (DOM)
Document (DOM) | HTMLInputElement (DOM) | Notation (DOM)
DocumentFragment (DOM) | HTMLIsIndexElement (DOM) | P
DocumentStyle (DOM) | HTMLLabelElement (DOM) | ProcessingInstruction (DOM)
DocumentType (DOM) | HTMLLayerElement (DOM) | R
DOMException (DOM) | HTMLLegendElement (DOM) | Range (DOM)
DOMImplementation (DOM) | HTMLLIElement (DOM) | RangeException (DOM)
DomShared (DOM) | HTMLLinkElement (DOM) | Rect (DOM)
DOMString (DOM) | HTMLMapElement (DOM) | RGBColor (DOM)
E | HTMLMenuElement (DOM) | S
Element (DOM) | HTMLMetaElement (DOM) | StyleSheet (DOM)
Entity (DOM) | HTMLModElement (DOM) | StyleSheetList (DOM)
EntityReference (DOM) | HTMLObjectElement (DOM) | T
Event (DOM) | HTMLOListElement (DOM) | Text (DOM)
EventException (DOM) | HTMLOptGroupElement (DOM) | TextEvent (DOM)
EventListener (DOM) | HTMLOptionElement (DOM) | TreeWalker (DOM)
KeyboardEvent (DOM) | HTMLParagraphElement (DOM) | U
H | HTMLParamElement (DOM) | UIEvent (DOM)

## Functions

bool | operator != (DOM.DOMString a, DOM.DOMString b)
bool | operator != (DOM.DOMString a, QString b)
bool | operator != (DOM.DOMString a, QString b)
QDebug | operator << (QDebug stream, DOM.DOMString string)
bool | operator == (DOM.DOMString a, DOM.DOMString b)
bool | operator == (DOM.DOMString a, QString b)
bool | operator == (DOM.DOMString a, QString b)
bool | strcasecmp (DOM.DOMString a, DOM.DOMString b)
bool | strcasecmp (DOM.DOMString a, QString b)
bool | strcmp (DOM.DOMString a, DOM.DOMString b)

## Function Documentation

bool operator != | ( | DOM.DOMString | a,
|  | DOM.DOMString | b
| ) |  |  |

bool operator != | ( | DOM.DOMString | a,
|  | QString | b
| ) |  |  |

bool operator != | ( | DOM.DOMString | a,
|  | QString | b
| ) |  |  |

QDebug operator << | ( | QDebug | stream,
|  | DOM.DOMString | string
| ) |  |  |

This class implements the basic string we use in the DOM. We do not use QString for 2 reasons: Memory overhead, and the missing explicit sharing of strings we need for the DOM.

All DOMStrings are explicitly shared (they behave like pointers), meaning that modifications to one instance will also modify all others. If you wish to get a DOMString that is independent, use copy().

bool operator == | ( | DOM.DOMString | a,
|  | DOM.DOMString | b
| ) |  |  |

bool operator == | ( | DOM.DOMString | a,
|  | QString | b
| ) |  |  |

bool operator == | ( | DOM.DOMString | a,
|  | QString | b
| ) |  |  |

bool strcasecmp | ( | DOM.DOMString | a,
|  | DOM.DOMString | b
| ) |  |  |

bool strcasecmp | ( | DOM.DOMString | a,
|  | QString | b
| ) |  |  |

bool strcmp | ( | DOM.DOMString | a,
|  | DOM.DOMString | b
| ) |  |  |