问题
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
liis 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