ccb73fd421
= Reference container semantics for assistive technology = - Table header elements with row scope in the first column. - Table caption invisible to sighted users but required for screen readers. = Referrer accessibility = - jQuery referrers are accessible but don’t show the tooltips on focus. - AMP compatible tooltips show up on focus on navigatable referrers. - Alternative tooltips now accessible on focus on now navigatable referrers. git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2498648 b8457f37-d9ea-0310-8a92-e5e31aec5664
40 lines
1.5 KiB
HTML
Executable file
40 lines
1.5 KiB
HTML
Executable file
<!--<?php//for docblock, @see MCI_Footnotes_Template::process_template()
|
|
/**
|
|
* Table row default template for uncombined footnotes.
|
|
*
|
|
* @since 2.2.10 Bugfix: Reference container: add missing container ID in function name in default table row template for uncombined footnotes.
|
|
*
|
|
*
|
|
* - Bugfix: Reference container: apply web semantics to improve readability for assistive technologies, thanks to @derivationfr issue report and code contribution.
|
|
*
|
|
* @since 2.6.0
|
|
*
|
|
* @contributor @derivationfr
|
|
* @link https://wordpress.org/support/topic/enhance-accesibility-by-using-instead-of/
|
|
* @link https://a11y-101.com/development/tables
|
|
*
|
|
* For assistive technologies to improve accessibility by reading tables in a meaningful manner,
|
|
* the tables must be marked up properly using table header elements for header rows and header
|
|
* columns as applicable.
|
|
* The table caption must also be present for screen readers but may be hidden to sighted users.
|
|
*/?>
|
|
-->
|
|
<tr class="footnotes_plugin_reference_row">
|
|
<th
|
|
scope="row"
|
|
role="button"
|
|
tabindex="0"
|
|
id="footnote_plugin_reference_[[post_id]]_[[container_id]]_[[note_id]]"
|
|
class="footnote_plugin_index pointer"
|
|
onclick="footnote_moveToAnchor_[[post_id]]_[[container_id]]('footnote_plugin_tooltip_[[post_id]]_[[container_id]]_[[note_id]]');"
|
|
><[[link-span]]
|
|
class="footnote_plugin_link"
|
|
[[hard-link]]
|
|
>[[arrow]][[index]][[terminator]]</[[link-span]]
|
|
>[[anchor-element]]</td
|
|
>
|
|
<td
|
|
class="footnote_plugin_text"
|
|
>[[text]]</td
|
|
>
|
|
</tr>
|