HTML5 Syntax Validation

Deadly 提交于 2019-12-23 16:28:19

问题


I was validating some HTML and I noticed some new errors that I am unfamiliar with. These list items get populated with JavaScript based on user input.

Element li is missing one or more of the following attributes: aria-checked, aria-expanded, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role

<ul id="outTag">
    <li id="item1"></li>
    <li id="item2"></li>
    <li id="item3"></li>
    <li id="item4"></li>
</ul>

If someone could please shed some light on this, that would be great.


回答1:


Don't worry, it's a validator issue as described here. It should be fixed soon.



来源:https://stackoverflow.com/questions/16122893/html5-syntax-validation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!