diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-01-31 00:08:54 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-01-31 00:08:54 +0100 |
commit | a3514f0ea18313d37b9701e055f97f7ad81f76c4 (patch) | |
tree | 223952ae96a6da67f74b819998f648d2f50a8cb6 /src/main/kotlin/pl/treksoft | |
parent | b095a2ff0284cb641cd3c7eb5cba09923304c55f (diff) | |
download | kvision-a3514f0ea18313d37b9701e055f97f7ad81f76c4.tar.gz kvision-a3514f0ea18313d37b9701e055f97f7ad81f76c4.tar.bz2 kvision-a3514f0ea18313d37b9701e055f97f7ad81f76c4.zip |
Small fixes for Tag (section and header html elements)
Diffstat (limited to 'src/main/kotlin/pl/treksoft')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/html/Tag.kt | 4 |
1 files changed, 3 insertions, 1 deletions
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("<span>$text</span>")) + childrenVNodes()) } else { - kvh(type.tagName, arrayOf(text) + childrenVNodes()) + kvh(type.tagName, childrenVNodes() + arrayOf(text)) } } else { kvh(type.tagName, childrenVNodes()) |