kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

JS - need a @JsName on Tag.namespace

Open reubenfirmin opened this issue 5 months ago • 0 comments

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.

reubenfirmin avatar Sep 03 '24 17:09 reubenfirmin