Add some useful properties/methods to DOM wrappers

This commit is contained in:
Alexey Andreev 2015-05-27 21:18:32 +03:00
parent 3d95eb1a7e
commit 779b482a43
2 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,7 @@
package org.teavm.dom.html;
import org.teavm.dom.canvas.CanvasImageSource;
import org.teavm.jso.JSMethod;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
@ -39,4 +40,7 @@ public interface HTMLCanvasElement extends HTMLElement, CanvasImageSource {
JSObject getContext(String contextId);
JSObject getContext(String contextId, JSObject attributes);
@JSMethod
String toDataURL(String type);
}

View File

@ -102,4 +102,10 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
@JSProperty
@Override
HTMLDocument getOwnerDocument();
@JSProperty
int getInnerHTML();
@JSProperty
void setInnerHTML(String content);
}