Aside from the usual unpleasantness of muddling together views and logic (and welcome back `onclick`, how I've missed you...), I find the idea of the "parent" scope rather troubling. If you have something nested inside a tab, let's say a link, what is its parent - an individual tab, or the whole "tabs" component?
According to [1], Riot developers are aware of that and chose to support custom tags without a dash:
> W3C specification demands you use a dash in the tag name. Instead of <person> you must write <my-person>. Obey this rule if you care about W3C. Both work fine.
However using hyphens to be standards-compliant and future compatible would be better.
7 comments
[ 2.8 ms ] story [ 26.9 ms ] thread> W3C specification demands you use a dash in the tag name. Instead of <person> you must write <my-person>. Obey this rule if you care about W3C. Both work fine.
However using hyphens to be standards-compliant and future compatible would be better.
[1]: https://muut.com/riotjs/faq.html