diff --git a/teavm-dom/src/main/java/org/teavm/dom/browser/Window.java b/teavm-dom/src/main/java/org/teavm/dom/browser/Window.java index 724fea09c..3ee4f5a48 100644 --- a/teavm-dom/src/main/java/org/teavm/dom/browser/Window.java +++ b/teavm-dom/src/main/java/org/teavm/dom/browser/Window.java @@ -16,7 +16,6 @@ package org.teavm.dom.browser; import org.teavm.dom.core.Document; -import org.teavm.dom.core.Element; import org.teavm.jso.JSGlobal; import org.teavm.jso.JSObject; import org.teavm.jso.JSProperty; @@ -29,9 +28,6 @@ public interface Window extends JSGlobal { @JSProperty Document getDocument(); - @JSProperty - Element getBody(); - void alert(JSObject message); void alert(String message); diff --git a/teavm-dom/src/main/java/org/teavm/dom/core/Document.java b/teavm-dom/src/main/java/org/teavm/dom/core/Document.java index 057c63494..3b17ed08f 100644 --- a/teavm-dom/src/main/java/org/teavm/dom/core/Document.java +++ b/teavm-dom/src/main/java/org/teavm/dom/core/Document.java @@ -47,7 +47,7 @@ public interface Document extends Node { EntityReference createEntityReference(String name); - NodeList getElementsByTagName(); + NodeList getElementsByTagName(String name); T importNode(T importedNode, boolean deep); diff --git a/teavm-dom/src/main/java/org/teavm/dom/core/NodeList.java b/teavm-dom/src/main/java/org/teavm/dom/core/NodeList.java index 75d1d2cf6..3f0ca46e5 100644 --- a/teavm-dom/src/main/java/org/teavm/dom/core/NodeList.java +++ b/teavm-dom/src/main/java/org/teavm/dom/core/NodeList.java @@ -22,7 +22,7 @@ import org.teavm.jso.JSProperty; * * @author Alexey Andreev */ -public interface NodeList extends JSArray { +public interface NodeList extends JSArray { T item(int index); @Override diff --git a/teavm-jso/src/main/java/org/teavm/jso/JSArray.java b/teavm-jso/src/main/java/org/teavm/jso/JSArray.java index ab175dab2..882867210 100644 --- a/teavm-jso/src/main/java/org/teavm/jso/JSArray.java +++ b/teavm-jso/src/main/java/org/teavm/jso/JSArray.java @@ -28,4 +28,6 @@ public interface JSArray extends JSObject { @JSIndexer void set(int index, T value); + + void push(T value); }