2003/11/17 01:53:25
[org.ibex.core.git] / src / org / xwt / translators / HTML.java
index bd6f350..4801971 100644 (file)
@@ -52,7 +52,7 @@ public class HTML {
 
     public static synchronized JS parseReader(Reader r) throws IOException {
         CharStream cs = new CharStream(r);
-        JS.Obj h = new JS.Obj();
+        JS h = new JS();
 
         withinLI = false;
         h.put("$name", "html");
@@ -63,13 +63,14 @@ public class HTML {
             // continue until we get an EOFException
         }
         
+        /* FIXME
         Object[] ids = h.keys();
         for(int i=0; i<ids.length; i++) {
             Object el = h.get((String)ids[i]);
             if (el instanceof JS && "html".equals(((JS)el).get("$name")))
                 return (JS)el;
         }
-        
+        */        
         return h;
     }
 
@@ -162,7 +163,7 @@ public class HTML {
             try {
                 // scan subelement
                 if (cs.peek() != '/') {
-                    JS kid = new JS.Obj();
+                    JS kid = new JS();
                     closetag = parseElement(cs, kid);
                     h.put(String.valueOf(length), kid); 
                     h.put("$numchildren", new Integer(++length));