From a3514f0ea18313d37b9701e055f97f7ad81f76c4 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 31 Jan 2018 00:08:54 +0100 Subject: Small fixes for Tag (section and header html elements) --- src/main/kotlin/pl/treksoft/kvision/html/Tag.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/pl/treksoft/kvision') diff --git a/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt b/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt index ff22e440..d94505a8 100644 --- a/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt +++ b/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt @@ -17,6 +17,8 @@ enum class TAG(val tagName: String) { ABBR("abbr"), ADDRESS("address"), BLOCKQUOTE("blockquote"), + SECTION("section"), + HEADER("header"), FOOTER("footer"), PRE("pre"), UL("ul"), @@ -79,7 +81,7 @@ open class Tag( if (rich) { kvh(type.tagName, arrayOf(KVManager.virtualize("$text")) + childrenVNodes()) } else { - kvh(type.tagName, arrayOf(text) + childrenVNodes()) + kvh(type.tagName, childrenVNodes() + arrayOf(text)) } } else { kvh(type.tagName, childrenVNodes()) -- cgit