ilyagulya
01/08/2024, 8:08 AMTagConsumer<HTMLElement> as a receiver, not a TagConsumer<Element>?
I’m asking since I’m currently adding support for wasmJs target and during this process I’ve found out that there’s one particular builder which is failing - svg.
SVGElement does not inherirt HTMLElement which leads to ClassCastException.
I’m assuming that this works fine in Kotlin/JS because of its dynamic nature.
Now I have 2 options:
1. Change the receiver of builder functions from TagConsumer<HTMLElement> to TagConsumer<Element> (this one is quite big change, most likely breaking change). Do anyone see there any consequences? Is there any reason to depend specifically on HTMLElement instead of Element?
2. Skip SVG in wasmJs target for now and leave it for the future users to figure out 🙂ilyagulya
01/08/2024, 8:21 AMe5l
01/11/2024, 10:48 AMe5l
01/11/2024, 10:48 AM