https://kotlinlang.org logo
r

Robert Jaros

02/28/2021, 5:24 PM
it will generate
<tag disabled="disabled"/>
which is equivalent
b

Big Chungus

02/28/2021, 5:30 PM
Nope, doesn't work 😕
r

Robert Jaros

02/28/2021, 5:32 PM
doesn't generate the attribute? or does not work in this form?
b

Big Chungus

02/28/2021, 5:33 PM
Doesn't work in this form
Would be good to have
setBooleanAttribute(string, boolean)
available on all widgets
r

Robert Jaros

02/28/2021, 5:34 PM
What are you trying to do?
It's not even KVision. It's snabbdom.
b

Big Chungus

02/28/2021, 5:34 PM
r

Robert Jaros

02/28/2021, 5:36 PM
There is no disabled attribute there. It's "disabled" class name.
Or do I look at something different?
b

Big Chungus

02/28/2021, 5:52 PM
shit, you're right
r

Robert Jaros

02/28/2021, 5:57 PM
as for the long form for boolean attributes it's defined in html spec: https://www.w3.org/TR/html4/intro/sgmltut.html#h-3.3.4.2