SIA-R70No obsolete or deprecated elements are used

Accessibility requirements

This rule is not required for conformance to any accessibility requirements.

Description

This rule checks that HTML elements that have been deprecated are not used.

Applicability

This rule applies to every document where the document element is an <html> element in the HTML namespace.

Expectations

  1. The document has no descendants in the flat tree that are deprecated or obsolete elements and rendered.

The following elements are either deprecated or obsolete: <acronym>, <applet>, <basefont>, <bgsound>, <big>, <blink>, <center>, <content>, <dir>, <font>, <frame>, <frameset>, <hgroup>, <image>, <keygen>, <marquee>, <menuitem>, <nobr>, <noembed>, <noframes>, <plaintext>, <rb>, <rtc>, <shadow>, <spacer>, <spacer>, <strike>, <tt>, and <xmp>.

Assumptions

This rule makes no assumptions.

Accessibility support

This rule has no known accessibility support concerns.

Examples

Passed

This page contains no deprecated or obsolete element.

<html>
<p>Lorem ipsum.</p>
</html>

This document contains a deprecated <blink> element, but it is not rendered:

<html>
<p>Lorem <blink hidden>ipsum</blink></p>
</html>

Failed

This document contains a deprecated <blink> element that is rendered:

<html>
<p>Schrödinger's cat is <blink>not</blink> dead.</p>
</html>

This document contains a deprecated <blink> element that is rendered:

<html>
<p>Schrödinger's cat is <blink aria-hidden="true">not</blink> dead.</p>
</html>

This document contains two deprecated <menuitem> elements that are rendered:

<html>
<ul role="menu" style="position: absolute; left: -9999px">
    <menuitem>Foo</menuitem>
    <menuitem>Bar</menuitem>
</ul>
</html>

Inapplicable

This document is an SVG document, not an HTML one:

<svg xmlns="http://www.w3.org/2000/svg">
  <title>This is a circle</title>
  <circle cx="150" cy="75" r="50" fill="green"></circle>
</svg>