Skip to content

Commit f1219c8

Browse files
Adding an assumption about round brackets and the human language. As per review comment #2075 (comment)
1 parent a959b09 commit f1219c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_rules/visible-label-in-accessible-name-2ee8b8.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ This rule assumes that the visible label doesn't use CSS to add whitespace where
5858

5959
This rule assumes that for any word which appears in both the accessible name and the visible label, the same spelling and hyphenation is used in both places. For example: if "non-negative" is used in the accessible name and "nonnegative" is used in the visible label, that would violate this assumption. Similarly, if "color" is used in the accessible name and "colour" is used in the visible label, that would also violate this assumption.
6060

61+
This rule - specifically, the [label in name algorithm][] that this rule relies on - assumes that the algorithm's treatment of parentheses is appropriate in the given human language. "Parentheses" are also known as "round brackets". The algorithm's treatment of parentheses is to remove them and all characters within them. This assumption can be reworded as: content within parentheses can be ignored. This assumption is almost always true in English. It is known to be often false in other languages, such as German (where parentheses indicate dual states) and Arabic (where parentheses are often used as quotation marks). Violations of this assumption will, in real-world scenarioes, more often result in a false negative for this rule rather than a false positive.
62+
6163
This rule assumes that all resources needed for rendering the page are properly loaded. Checking if resources are missing is out of the scope of rules. Missing resources may be rendered as text (for example, missing `img` are rendered as their `alt` attribute).
6264

6365
### Accessibility Support

0 commit comments

Comments
 (0)