[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdewebdev/quanta/parts/kafka
From:       Paulo Moura Guedes <moura () kdewebdev ! org>
Date:       2005-01-05 1:51:48
Message-ID: 20050105015148.EAD501CF35 () office ! kde ! org
[Download RAW message or body]

CVS commit by mojo: 

Have DTDs diferent than (X)HTML in consideration.


  M +5 -1      wkafkapart.cpp   1.91


--- kdewebdev/quanta/parts/kafka/wkafkapart.cpp  #1.90:1.91
@@ -500,5 +500,9 @@ bool KafkaDocument::buildKafkaNodeFromNo
 //     This is a hack to not created DOM::Nodes from quanta empty nodes if outside body, because KHTML
 //     moves a node in that condition into the body and then the trees become desynchronized.
-    bool isInsideBody = kafkaCommon::hasParent(node, "body");
+    bool isInsideBody = false;
+    if(!m_currentDoc->defaultDTD()->name.contains("HTML", false))
+        isInsideBody = true;
+    else
+        isInsideBody = kafkaCommon::hasParent(node, "body");
     
     if(node->tag->type == Tag::XmlTag || 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic