Why do we have `dom.html.*` external classes? Is `...
# react
r
Why do we have
dom.html.*
external classes? Is
dom.html.HTMLDivElement
the same as
org.w3c.dom.HTMLDivElement
? Can I safely cast one to the other? @turansky
t
Why do we have
dom.html.*
external classes?
Because we want have “fresh” declarations to use current Browser API. Also we want common declarations for Node and Browser -
kotlin-web
Is
dom.html.HTMLDivElement
the same as
org.w3c.dom.HTMLDivElement
?
Yes, they describe the same runtime type
Can I safely cast one to the other?
Yes
r
Thank you!