Closed cedx closed 3 years ago
When I add a datetime attribute to a <time> element, this attribute never appears in the final HTML. View template:
datetime
<time>
<time datetime=${Date.now()}>Now!</time>
Rendered HTML:
<time>Now!</time>
When I query the element in JavaScript, its dateTime property is empty:
dateTime
document.querySelector("time").dateTime.length; // => 0
Using coconut.ui 0.12.0 with coconut.vdom 0.10.0.
coconut.ui
coconut.vdom
Ok, it's a typo in tink_domspec: datetime instead of dateTime. Cf. https://github.com/haxetink/tink_domspec/blob/master/src/tink/domspec/Attributes.hx#L30
tink_domspec
When I add a
datetime
attribute to a<time>
element, this attribute never appears in the final HTML. View template:Rendered HTML:
When I query the element in JavaScript, its
dateTime
property is empty:Using
coconut.ui
0.12.0 withcoconut.vdom
0.10.0.