kotlinx.html
kotlinx.html copied to clipboard
JS - need a @JsName on Tag.namespace
kotlinjs mangles attributes. To prevent this, it's required to put a @JsName annotation on any attributes that should be preserved.
Tag.namespace is used to determine whether to call document.createElementNS or document.createElement. Because namespace
is mangled to namespace_1
by kotlinjs, SVGs don't get rendered.