Applying patches by Michi to Enigma

This commit is contained in:
pelya
2010-10-15 14:23:30 +03:00
parent 679f64d3a0
commit ebaff58990
15 changed files with 141 additions and 84 deletions

View File

@@ -42,11 +42,11 @@ namespace enigma
for (child = elem->getFirstChild(); child != NULL; child = next) {
next = child->getNextSibling();
if (child->getNodeType() == DOMNode::TEXT_NODE) {
if (dynamic_cast<DOMText *>(child)->isIgnorableWhitespace()) {
if (reinterpret_cast<DOMText *>(child)->isIgnorableWhitespace()) {
elem->removeChild(child);
}
} else if (child->getNodeType() == DOMNode::ELEMENT_NODE) {
DOMElement * childElem = dynamic_cast<DOMElement *>(child);
DOMElement * childElem = reinterpret_cast<DOMElement *>(child);
if (childElem != NULL)
stripIgnorableWhitespace(childElem);
}