]> source.dussan.org Git - gwtquery.git/commitdiff
fix iframe detection
authorManolo Carrasco <manolo@apache.org>
Mon, 7 Mar 2011 07:40:50 +0000 (07:40 +0000)
committerManolo Carrasco <manolo@apache.org>
Mon, 7 Mar 2011 07:40:50 +0000 (07:40 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 0b6cbb463acf4385c8091e4f134894b14369f446..0b516b22dbc282c45faffb5de12468f80ae81a3a 100644 (file)
@@ -825,7 +825,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
   public GQuery contents() {\r
     JsNodeArray result = JsNodeArray.create();\r
     for (Element e : elements()) {\r
-      if (IFrameElement.is(e)) {\r
+      if ("iframe".equalsIgnoreCase(e.getTagName())) {\r
         result.addNode(getContentDocument(e));\r
       } else {\r
         NodeList<Node> children = e.getChildNodes();\r