I am using angular-ui-select within a website where the styled select fields are configured with an own tag named
Elementnot allowed as child of element
ui-selectin this context. (Suppressing further errors from this subtree.)
That's indeed a long-known issue with AngularJS.
A few things you can do:
Instead of using the element
<ui-select>, you can use
<div ui-select>, but that will still fail on the argument.
An argument prefixed with
data- will pass but I am not sure
ui-select supports that.
HTML W3C validation is useful, but I think mostly important for HTML emails so they don't get screened as spam. It's also good for search engines, but really not that critical.
If you look at 'why validate', the reasons are mostly for cleanliness, ease of debugging, and overall good practice.
Angular (un?)fortunately expands the realm of possibilities for HTML5, in a way that, naturally, deviates from the latest specifications for HTML.