W3C validation for

后端 未结 3 523
半阙折子戏
半阙折子戏 2020-12-19 04:14

I am using angular-ui-select within a website where the styled select fields are configured with an own tag named ui-select. This works great, but doing a W3C v

3条回答
  •  温柔的废话
    2020-12-19 04:44

    That's indeed a long-known issue with AngularJS.

    A few things you can do:

    Instead of using the element , you can use

    , but that will still fail on the argument.

    An argument prefixed with x- or 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.

提交回复
热议问题