SIA-R101Document has no repeated content before the main content

Accessibility requirements

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

Description

This rule checks that a page has no repeated content followed by non-repeated content.

Applicability

This rule applies to any web page.

Expectations

  1. The target page contains no block of repeated content before its main block of content.

Assumptions

This rule makes no assumptions.

Accessibility support

This rule has no known accessibility support concerns.

Examples

In all examples, the <main> element is the main content of the page, and the <aside> element is considered a block of repeated content.

Passed

This page contains no block of repeated content, hence none before its main content:

<html lang="en">
    <head>
        <title>The Three Kingdoms, Chapter 1</title>
    </head>
    <body>
        <main>
            <p>
                Unity succeeds division and division follows unity. One is bound
                to be replaced by the other after a long span of time.
            </p>
        </main>
    </body>
</html>

In this document, the complementary block of repeated content is after the main content:

<html lang="en">
    <head>
        <title>The Three Kingdoms, Chapter 1</title>
    </head>
    <body>
        <main>
            <p>
                Unity succeeds division and division follows unity. One is bound
                to be replaced by the other after a long span of time.
            </p>
        </main>

        <aside id="about-book">
            <p>
                The Romance of the Three Kingdoms is a 14th century historical
                novel.
            </p>
        </aside>
    </body>
</html>

Failed

In this document, the complementary block of repeated content is before the main content:

<html lang="en">
    <head>
        <title>The Three Kingdoms, Chapter 1</title>
    </head>
    <body>
        <aside id="about-book">
            <p>
                The Romance of the Three Kingdoms is a 14th century historical
                novel.
            </p>
        </aside>

        <main>
            <p>
                Unity succeeds division and division follows unity. One is bound
                to be replaced by the other after a long span of time.
            </p>
        </main>
    </body>
</html>

Inapplicable

This document is not an HTML web page.

<svg xmlns="http://www.w3.org/2000/svg">
  <title>This is an SVG</title>
</svg>

Acknowledgments

This document includes material copied from or derived from https://github.com/act-rules/act-rules.github.io/pull/1539. Copyright © 2024 W3C® (MIT, ERCIM, Keio, Beihang).