https://kotlinlang.org logo
Title
c

Cru

04/06/2023, 8:41 PM
What's the difference between element classes in
org.w3c.dom
and
web.html
?
t

turansky

04/06/2023, 9:43 PM
org.w3c.*
declarations - browser declarations, provided by
kotlinjs-stdlib
(outdated)
web.*
declarations - browser declarations, generated from latest browser definitions
In wrappers we use only latest declarations
c

Cru

04/06/2023, 10:37 PM
Oh, So, I should use the
web.html
ones then. In KotlinX HTML. What's the difference between the
kotlinx.html.*
declarations and the
kotlinx.html.js.*
declarations?
t

turansky

04/06/2023, 11:39 PM
To avoid redundant import suggestions you can use IDEA configuration file like in wrappers
In KotlinX HTML.
Do you need multiplatform HTML generation?
c

Cru

04/07/2023, 8:46 AM
No, Just the js part. I am guessing the
kotlinx.html.js
is the js-specific implementation.