2003/11/17 01:53:25
[org.ibex.core.git] / src / org / xwt / translators / HTML.java
index 055a1c3..4801971 100644 (file)
@@ -52,7 +52,7 @@ public class HTML {
 
     public static synchronized JS parseReader(Reader r) throws IOException {
         CharStream cs = new CharStream(r);
-        JSObj h = new JSObj();
+        JS h = new JS();
 
         withinLI = false;
         h.put("$name", "html");
@@ -163,7 +163,7 @@ public class HTML {
             try {
                 // scan subelement
                 if (cs.peek() != '/') {
-                    JS kid = new JSObj();
+                    JS kid = new JS();
                     closetag = parseElement(cs, kid);
                     h.put(String.valueOf(length), kid); 
                     h.put("$numchildren", new Integer(++length));