Closed Ihromant closed 1 month ago
This is expected behaviour. Unfortunately, previous versions of TeaVM did not behave correctly with run-time type checking in case of JSO, so you did not identify this issue on your side. The proper way would be to upcast HTMLDocument
to just Document
and then use it to create SVG elements. I know, standard does not re-define return value of createElement
to return HTMLElement
, but it looked convenient and assuming most users would work with HTML DOM and removing override to createElement
is a breaking change, I won't remove it.
After some recent changes new issue appeared:
fails with CCE. It compiles to
It fails because svg is not instance of HTMLElement. I overcame it with
but earlier it worked well.