KHTML
dom_element.cpp
Go to the documentation of this file.
149 // ### getAttribute() and getAttributeNS() are supposed to return the empty string if the attribute
252 static_cast<ElementImpl*>(impl)->setAttributeNS(namespaceURI, qualifiedName, value, exceptioncode);
274 Attr r = static_cast<ElementImpl*>(impl)->getAttributeNodeNS(namespaceURI, localName, exceptioncode);
NodeList getElementsByTagNameNS(const DOMString &namespaceURI, const DOMString &localName)
Introduced in DOM Level 2 Returns a NodeList of all the descendant Elements with a given local name a...
Definition: dom_element.cpp:220
static bool khtmlMalformedQualifiedName(const DOMString &name)
Definition: dom_element.cpp:418
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
CSSStyleDeclaration style()
Introduced in DOM Level 2 This method is from the CSSStyleDeclaration interface.
Definition: dom_element.cpp:321
Element firstElementChild() const
Introduced in DOM level 3 This method is part of the ElementTraversal interface.
Definition: dom_element.cpp:327
Attr getAttributeNodeNS(const DOMString &namespaceURI, const DOMString &localName)
Introduced in DOM Level 2.
Definition: dom_element.cpp:268
The CSSStyleDeclaration interface represents a single CSS declaration block .
Definition: css_value.h:60
DOMString value() const
On retrieval, the value of the attribute is returned as a string.
Definition: dom_element.cpp:86
Element querySelector(const DOMString &query) const
Introduced in Selectors Level 1.
Definition: dom_element.cpp:357
static bool khtmlValidQualifiedName(const DOMString &name)
Definition: dom_element.cpp:413
Element nextElementSibling() const
Introduced in DOM level 3 This method is part of the ElementTraversal interface.
Definition: dom_element.cpp:345
void setAttributeNS(const DOMString &namespaceURI, const DOMString &qualifiedName, const DOMString &value)
Introduced in DOM Level 2.
Definition: dom_element.cpp:245
Element previousElementSibling() const
Introduced in DOM level 3 This method is part of the ElementTraversal interface.
Definition: dom_element.cpp:339
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...
Definition: dom_exception.h:58
static bool khtmlMalformedPrefix(const DOMString &name)
Definition: dom_element.cpp:437
NodeList getElementsByTagName(const DOMString &name)
Returns a NodeList of all descendant elements with a given tag name, in the order in which they would...
Definition: dom_element.cpp:214
Attr setAttributeNodeNS(const Attr &newAttr)
Introduced in DOM Level 2.
Definition: dom_element.cpp:280
void removeAttribute(const DOMString &name)
Removes an attribute by name.
Definition: dom_element.cpp:167
void setAttribute(const DOMString &name, const DOMString &value)
Adds a new attribute.
Definition: dom_element.cpp:158
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition: dom_element.h:209
The Attr interface represents an attribute in an Element object.
Definition: dom_element.h:88
bool hasAttributeNS(const DOMString &namespaceURI, const DOMString &localName)
Introduced in DOM Level 2.
Definition: dom_element.cpp:297
NodeList getElementsByClassName(const DOMString &className)
Introduced in HTML 5.
Definition: dom_element.cpp:227
NodeList querySelectorAll(const DOMString &query) const
Introduced in Selectors Level 1.
Definition: dom_element.cpp:367
bool specified() const
If this attribute was explicitly given a value in the original document, this is true ; otherwise...
Definition: dom_element.cpp:74
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.
Definition: dom_node.h:963
unsigned long childElementCount() const
Introduced in DOM level 3 This method is part of the ElementTraversal interface.
Definition: dom_element.cpp:351
void removeAttributeNS(const DOMString &namespaceURI, const DOMString &localName)
Introduced in DOM Level 2.
Definition: dom_element.cpp:257
DOMString getAttribute(const DOMString &name)
Retrieves an attribute value by name.
Definition: dom_element.cpp:147
Element lastElementChild() const
Introduced in DOM level 3 This method is part of the ElementTraversal interface.
Definition: dom_element.cpp:333
DOMString getAttributeNS(const DOMString &namespaceURI, const DOMString &localName)
Introduced in DOM Level 2.
Definition: dom_element.cpp:233
Element form() const
KHTML extension to DOM This method returns the associated form element.
Definition: dom_element.cpp:310
bool hasAttribute(const DOMString &name)
Returns true when an attribute with a given name is specified on this element or has a default value...
Definition: dom_element.cpp:291
Attr getAttributeNode(const DOMString &name)
Retrieves an Attr node by name.
Definition: dom_element.cpp:178
static bool khtmlValidAttrName(const DOMString &name)
Definition: dom_element.cpp:387
Attr removeAttributeNode(const Attr &oldAttr)
Removes the specified attribute.
Definition: dom_element.cpp:200
static bool khtmlValidPrefix(const DOMString &name)
Definition: dom_element.cpp:407
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.