From 8144464b0e87e4fa1fc73d3b650983339b51a332 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 30 Mar 2017 19:00:18 +0300 Subject: [PATCH] Add HTMLElement.className --- .../main/java/org/teavm/jso/dom/html/HTMLElement.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLElement.java b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLElement.java index cd3b4d954..25055f0ee 100644 --- a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLElement.java +++ b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLElement.java @@ -28,10 +28,6 @@ import org.teavm.jso.dom.xml.Element; import org.teavm.jso.dom.xml.Node; import org.teavm.jso.dom.xml.NodeList; -/** - * - * @author Alexey Andreev - */ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget, FocusEventTarget, MouseEventTarget, WheelEventTarget, KeyboardEventTarget, LoadEventTarget { @Override @@ -118,6 +114,12 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget TextRectangle getBoundingClientRect(); + @JSProperty + String getClassName(); + + @JSProperty + void setClassName(String className); + default HTMLElement withAttr(String name, String value) { setAttribute(name, value); return this;