DOM

KDE 4.5 PyKDE API Reference

- KDE's Python API

# DOM Namespace Reference

`from PyKDE4.khtml.DOM import *`

## Detailed Description

## Class Index

A | HTMLAppletElement (DOM) | HTMLQuoteElement (DOM)
AbstractView (DOM) | HTMLAreaElement (DOM) | HTMLScriptElement (DOM)
Attr (DOM) | HTMLBaseElement (DOM) | HTMLSelectElement (DOM)
C | HTMLBaseFontElement (DOM) | HTMLStyleElement (DOM)
CDATASection (DOM) | HTMLBlockquoteElement (DOM) | HTMLTableCaptionElement (DOM)
CharacterData (DOM) | HTMLBodyElement (DOM) | HTMLTableCellElement (DOM)
Comment (DOM) | HTMLBRElement (DOM) | HTMLTableColElement (DOM)
Counter (DOM) | HTMLButtonElement (DOM) | HTMLTableElement (DOM)
CSSCharsetRule (DOM) | HTMLCollection (DOM) | HTMLTableRowElement (DOM)
CSSException (DOM) | HTMLDirectoryElement (DOM) | HTMLTableSectionElement (DOM)
CSSFontFaceRule (DOM) | HTMLDivElement (DOM) | HTMLTextAreaElement (DOM)
CSSImportRule (DOM) | HTMLDListElement (DOM) | HTMLTitleElement (DOM)
CSSMediaRule (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)
HTMLAnchorElement (DOM) | HTMLPreElement (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
| ) |  |  |