我正在尝试标记一些xhtml,以便Jaws可以读取下拉菜单,但是我无法在IE 11中使用它。链接文本在我通过它们时会被读出两次。它在Firefox中运行良好。我尽可能地简化了xhtml以尝试隔离问题。实际结构,div中“a”内的跨度是由Icefaces生成的,所以如果可能的话,我宁愿保持原样。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<div style="z-index: 25002; left: 529px; top: 357px; position: fixed; visibility: visible;" name="TOP_LEVEL_SUBMENU" id="Priority_menu_sub" aria-h idden="false" role="menu">
<div id="Priority_menu:1">
<a id="Priority_menu:1:link" href="javascript:;" aria-describedby="Priority_menu:1:link" role="menuitem">
<span id="Priority_menu:1:out">Critical</span>
</a>
</div>
<div id="Priority_menu:2">
<a id="Priority_menu:2:link" href="javascript:;" role="menuitem">
<span id="Priority_menu:2:out">Standard</span>
</a>
</div>
<div id="Priority_menu:3">
<a id="Priority_menu:3:link" href="javascript:;" role="menuitem">
<span id="Priority_menu:3:out">Urgent</span>
</a>
</div>
<div id="Priority_menu:4">
<a id="Priority_menu:4:link" href="javascript:;" role="menuitem">
<span id="Priority_menu:4:out">Very Urgent</span>
</a>
</div>
</div>
</body>
</html>
如果我将role =“menuitem”移动到封闭的div,则链接只读取一次,但href属性也是如此,并且不确认它是菜单项。谁能告诉我正确的咏叹调标记?