You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/accessibility/no-title-attribute.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Rule Details
4
4
5
-
The `title` attribute is strongly discouraged. The only exception is on an`<iframe>` element. It is hardly useful and cannot be accessed by multiple groups of users including keyboard-only users and mobile users.
5
+
The `title` attribute is strongly discouraged. The only exceptions are for `<link>` and`<iframe>` element. It is hardly useful and cannot be accessed by multiple groups of users including keyboard-only users and mobile users.
6
6
7
7
The `title` attribute is commonly seen set on links, matching the link text. This is redundant and unnecessary so it can be simply be removed.
assert_match(/The title attribute should never be used unless for an `<iframe>` as it is inaccessible for several groups of users./,error_messages.last)
16
+
assert_match(/The title attribute should never be used as it is inaccessible for several groups of users./,error_messages.last)
0 commit comments