public static synchronized JS parseReader(Reader r) throws IOException {
CharStream cs = new CharStream(r);
- JS.Obj h = new JS.Obj();
+ JSObj h = new JSObj();
withinLI = false;
h.put("$name", "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;
}
try {
// scan subelement
if (cs.peek() != '/') {
- JS kid = new JS.Obj();
+ JS kid = new JSObj();
closetag = parseElement(cs, kid);
h.put(String.valueOf(length), kid);
h.put("$numchildren", new Integer(++length));