MVCoconut / coconut.vdom

Coconut rendering through virtual-dom.
The Unlicense
19 stars 8 forks source link

"role" attributes are stripped from the final rendering #40

Closed cedx closed 3 years ago

cedx commented 3 years ago

When I add a role attribute to an element, this attribute never appears in the final HTML. View template:

<a href="#" role="button">Hello folks!</a>
<div class="alert" role="alert">Caution!</div>

Rendered HTML:

<a href="#">Hello folks!</a>
<div class="alert">Caution!</div>

Using coconut.ui 0.11.2 with coconut.vdom 0.8.1.

back2dos commented 3 years ago

Hmm, yeah, seems there's officially only a role attribute, but no corresponding property, but Chrome et al. support it.