我试图找出一种忽略装饰性文字的方式,类似于忽略使用空的alt装饰性图像。 实施例: <!-- This is decorative image -->
<img src="example.jpg" alt="">
<!-- This should be decorative text or element -->
<div>
Some decorative text line
我有一个项目,我想根据当前状态改变aria扩展属性。 它改变确定为真,但由于某种原因没有更改为false第二点击: HTML <li aria-expanded=false>hey</li>
jQuery的 $("li").on("click", function(e) {
var menuItem = $(e.currentTarget);
if (menuItem.a