table-duplicate-name

Table caption must not duplicate its summary attribute

manualconfidence: mediumseverity: minorperceivable

Checks that a <table>'s <caption> text is not identical to its (deprecated) summary attribute.

Applies to. Applies to <table> elements that have both a <caption> with text content and a (deprecated but still encountered) summary attribute.

Expectation. The caption text and the summary attribute text are not identical (case-insensitive, normalized). When both are present and say the same thing, assistive technology that surfaces both announces the same text twice for one table.

Examples

can't tell
<table summary="Sales data">
<caption>Sales data</caption>
<tr><td>1</td></tr>
</table>

The `summary` attribute repeats the caption text word for word instead of adding anything new.

n/a
<table summary="Data collected in fiscal year 2025">
<caption>Sales data</caption>
<tr><td>1</td></tr>
</table>

`summary` provides information the caption doesn't.

View source