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

List:       kde-commits
Subject:    kdenonbeta/kdom/core (silent)
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2005-08-27 12:38:20
Message-ID: 1125146300.126559.20588.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 453864 by buis:

SVN_SILENT: no idea why the exception throwing was removed, but it is needed here. \
Also another DOMStirngImpl fix.


 M  +7 -2      DocumentImpl.cpp  


--- trunk/kdenonbeta/kdom/core/DocumentImpl.cpp #453863:453864
@@ -494,6 +494,11 @@
         result = createCDATASection(importedCD->nodeValue());
         deep = false;
     }
+    else
+        /* This includes XPathNamespace::XPATH_NAMESPACE_NODE, see:
+         * http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/xpath.html#XPathNamespace
 +         */
+        throw new DOMExceptionImpl(NOT_SUPPORTED_ERR);
 
     if(deep)
     {
@@ -875,7 +880,7 @@
         case NodeImpl::NamespaceId:
         {
             // ### Id == 0 can't be used with ((void *) int) based QDicts...
-            if(!strcasecmp(DOMString(name), DOMString(defaultNS())))
+            if(!strcasecmp(name ? name->string() : QString::null, defaultNS() ? \
defaultNS()->string() : QString::null))  return 0;
     
             map = m_namespaceMap;
@@ -891,7 +896,7 @@
     NodeImpl::Id id, nsid = 0;
     
     QConstString n(name->unicode(), name->length());
-    
+
     if(type != NodeImpl::NamespaceId)
     {
         if(name)


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

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