嗨,我正在处理一个表格,我想提高它的可访问性,但问题是它是使用具有“onClick”属性的表格行创建的,并且在使用屏幕阅读器(例如 VoiceOver、NVDA)阅读单元格和表格时或 JAWS 它不会将该行读取为可点击或任何会告诉用户单击该行会将他带到另一个页面的标志。
该表是由 JQuery Datatables 动态创建的,该表的片段如下所示:
<div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
<table
class="list lista table table-bordered table-hover dlaList component-editable dataTable"
data-editable-id="dla28475"
style="width: 900px"
id="DataTables_Table_1"
>
<thead>
<tr role="row">
<th
class="sorting"
tabindex="0"
rowspan="1"
colspan="1"
style="width: 230px"
>
Activities
</th>
<th
class="sorting_asc"
tabindex="0"
rowspan="1"
colspan="1"
style="width: 570px"
aria-sort="ascending"
>
Description
</th>
<th
class="sorting"
tabindex="0"
rowspan="1"
colspan="1"
style="width: 100px"
>
Status
</th>
</tr>
</thead>
<tbody role="alert" aria-live="polite" aria-relevant="all">
<tr class="odd" onclick="functionForEvent();">
<td class="">
<div class="input-sm" status_id="undefined">Blah Blah</div>
</td>
<td class="sorting_1">
<div class="input-sm" …Run Code Online (Sandbox Code Playgroud)