diff --git a/teavm-dom/src/main/java/org/teavm/dom/html/HTMLCanvasElement.java b/teavm-dom/src/main/java/org/teavm/dom/html/HTMLCanvasElement.java index d859aabf5..237874049 100644 --- a/teavm-dom/src/main/java/org/teavm/dom/html/HTMLCanvasElement.java +++ b/teavm-dom/src/main/java/org/teavm/dom/html/HTMLCanvasElement.java @@ -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); } diff --git a/teavm-dom/src/main/java/org/teavm/dom/html/HTMLElement.java b/teavm-dom/src/main/java/org/teavm/dom/html/HTMLElement.java index c02699870..00dc6008c 100644 --- a/teavm-dom/src/main/java/org/teavm/dom/html/HTMLElement.java +++ b/teavm-dom/src/main/java/org/teavm/dom/html/HTMLElement.java @@ -102,4 +102,10 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget @JSProperty @Override HTMLDocument getOwnerDocument(); + + @JSProperty + int getInnerHTML(); + + @JSProperty + void setInnerHTML(String content); }