]> source.dussan.org Git - gwtquery.git/commitdiff
html element is always considered as attached
authorjdramaix <julien.dramaix@gmail.com>
Wed, 7 Nov 2012 21:04:23 +0000 (22:04 +0100)
committerjdramaix <julien.dramaix@gmail.com>
Wed, 7 Nov 2012 21:04:23 +0000 (22:04 +0100)
gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java

index 787eb07ccda17271c1e3c6221cc5fa4c0e225742..ea3aaab8c3ff849960dc22da0e566bf4f2a0f1d4 100644 (file)
@@ -280,11 +280,11 @@ public class JsUtils {
    * Be careful : This method works only on node that should be inserted within the body node. 
    */
   public static boolean isDetached(Node n) {
-       assert n != null;
-       
-       if ("html".equalsIgnoreCase(n.getNodeName())){
-               return true;
-       }
+    assert n != null;
+    
+         if ("html".equalsIgnoreCase(n.getNodeName())){
+                 return false;
+         }
        
     return !getOwnerDocument(n).getBody().isOrHasChild(n);
   }