Help us to manage our issues by answering the following:
Describe your issue:
Riot.js doesn't output data-* attributes into HTML, when the expression is evaluated with a value of 0 on a Riot sub-tag.
It is omitted as if it was a boolean expression.
In opts it is properly shown as 0.
And setting data-* on normal HTML tags works properly.
It looks like it was introduced by the fix for #2316 .
I would expect data-* attributes to never be omitted.