[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/khtml/xml
From: Zack Rusin <zack () kde ! org>
Date: 2004-06-12 14:54:05
Message-ID: 20040612145405.2C1AA175E () office ! kde ! org
[Download RAW message or body]
CVS commit by zrusin:
Fix for non-incremental parsing of pages
M +7 -2 xml_tokenizer.cpp 1.56
--- kdelibs/khtml/xml/xml_tokenizer.cpp #1.55:1.56
@@ -137,5 +137,6 @@ bool XMLHandler::startDocument()
-bool XMLHandler::startElement( const QString& namespaceURI, const QString& \
/*localName*/, const QString& qName, const QXmlAttributes& atts ) +bool \
XMLHandler::startElement( const QString& namespaceURI, const QString& /*localName*/, \
+ const QString& qName, const QXmlAttributes& atts ) {
if (currentNode()->nodeType() == Node::TEXT_NODE)
@@ -404,6 +405,9 @@ void XMLTokenizer::write( const QString
if ( appendData ) {
m_source.appendXML( str );
- m_noErrors = m_reader.parseContinue();
+
+ } else {
+ m_source.setData( str );
}
+ m_noErrors = m_reader.parseContinue();
}
@@ -418,4 +422,5 @@ void XMLTokenizer::end()
void XMLTokenizer::finish()
{
+ m_source.setFinished( true );
if (!m_noErrors) {
// An error occurred during parsing of the code. Display an error page to \
the user (the DOM
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic