From: jdramaix Date: Wed, 7 Nov 2012 21:04:23 +0000 (+0100) Subject: html element is always considered as attached X-Git-Tag: release-1.3.2~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c14e14a2bc81d04b49bea7feda60fafc0f276624;p=gwtquery.git html element is always considered as attached --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java index 787eb07c..ea3aaab8 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java @@ -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); }