Summary: | XML/DOM: text nodes containing only whitespace are removed | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Stefan Brüns <stefan.bruens> |
Component: | khtml parsing | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Stefan Brüns
2005-08-08 23:07:07 UTC
SVN commit 514945 by orlovich: Remove hack that swallowed lots of text nodes, we shouldn't do this for XML BUG:110426 M +0 -5 xml_tokenizer.cpp --- branches/KDE/3.5/kdelibs/khtml/xml/xml_tokenizer.cpp #514944:514945 @@ -232,11 +232,6 @@ bool XMLHandler::characters( const QString& ch ) { - //this is needed for xhtml parsing. otherwise we try to attach - //"\n\t" to html, head and other nodes which don't accept textchildren - if ( ch.stripWhiteSpace().isEmpty() ) - return true; - if (currentNode()->nodeType() == Node::TEXT_NODE || currentNode()->nodeType() == Node::CDATA_SECTION_NODE || enterText()) { |