Skip to content

Commit

Permalink
Editorial tweaks to object name rule (#2218)
Browse files Browse the repository at this point in the history
* Editorial tweaks to object name rule

* Update _rules/object-has-accessible-name-8fc3b6.md

Co-authored-by: Carlos Duarte <carlosapaduarte@gmail.com>

---------

Co-authored-by: Carlos Duarte <carlosapaduarte@gmail.com>
  • Loading branch information
WilcoFiers and carlosapaduarte authored Jan 16, 2025
1 parent 333bea2 commit 2917db6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions _rules/object-has-accessible-name-8fc3b6.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ Each target element has an [accessible name][] that is not empty (`""`).

Testing that the [accessible name][] describes the purpose of the `object` element is not part of this rule and must be tested separately.

Non-supported media formats make screen readers render the text content of the element instead of other attributes.

`Object` elements without an accessible name are ignored by assistive technologies unless they have an [explicit role][].

When the object resource is not loaded, the fallback content is rendered as shown in the Inapplicable Example: "This `object` element does not need an accessible name because it loads no image, audio, or video."
When the object resource is not loaded, the fallback content, if present, is rendered as shown in the Inapplicable Example: "This `object` element does not need an accessible name because it loads no image, audio, or video.". When screen readers encounter an unsupported media format they will also use the fallback content instead of other attributes.

### Assumptions

Expand Down

0 comments on commit 2917db6

Please sign in to comment.