diff --git a/third_party/aria-practices/src/content/patterns/feed/examples/feed.html b/third_party/aria-practices/src/content/patterns/feed/examples/feed.html index e22f0b1cbad57..d356e69d8b7e2 100644 --- a/third_party/aria-practices/src/content/patterns/feed/examples/feed.html +++ b/third_party/aria-practices/src/content/patterns/feed/examples/feed.html @@ -2,219 +2,14 @@ - Infinite Scrolling Feed Example - - - - - - - - -
-

Infinite Scrolling Feed Example

- -
-

About This Example

- -

- NOTE: The feed role was introduced by WAI-ARIA 1.1. - Since native desktop operating systems offer only a few conventions that are applicable to the feed pattern, the implementation of a feed illustrated by this example is intended to serve as as a proposal. - Feedback is welcome in issue 565. -

-

- The example below implements the Feed Pattern for a restaurant review site. - To imitate an infinitely scrolling set of data, information about ten restaurants is repeatedly loaded as the user reads the feed. - This example includes an article load time selector that simulates data fetch delays. -

-
- -
-

Example Usage Option

-

- The following article loading delay time selector enables simulation of different amounts of latency introduced by data fetches. - Such latency can affect assistive technology behavior when using assistive technology functions for navigating by article. -

- - -
- -
-

Example

-

The example feed experience below is presented in an iframe in order not to obstruct from the rest of the content of the page.

- -
- -
-

Keyboard Support

- - - - - - - - - - - - - - - - - - - - - - - - - -
KeyFunction
Page DownMove focus to next article.
Page UpMove focus to previous article.
Control + EndMove focus to the first focusable element after the feed.
Control + HomeMove focus to the first focusable element in the feed.
-
- -
-

Role, Property, State, and Tabindex Attributes

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RoleAttributeElementUsage
feeddiv -
    -
  • Identifies the element that contains the set of feed articles.
  • -
  • The feed element is a structural container that it is not focusable.
  • -
-
aria-labelledby="IDREF"divProvides an accessible name for the feed element.
aria-busy="true"div -
    -
  • Set during the process of loading additional articles.
  • -
  • Removed when the article load process is complete.
  • -
  • Enables assistive technologies to ignore DOM changes during the load process and then render the changes when the DOM is stable.
  • -
-
articlediv -
    -
  • Identifies an element that contains content for a feed article.
  • -
  • Feed articles and their content are Dynamically created in the JavaScript.
  • -
-
tabindex="0"div -
    -
  • Makes the article element focusable and includes it in the page Tab sequence.
  • -
  • As the user reads, the feed loads additional articles based on either focus position or scroll position.
  • -
  • Assistive technologies can ensure new articles are loaded and correctly visually positioned by ensuring that the article containing the assistive technology reading cursor has or contains DOM focus.
  • -
-
aria-labelledby="IDREF_LIST"div -
    -
  • Identifies one or more elements in the article that provide a distinguishing label.
  • -
  • In this example, the restaurant name sufficiently identifies each article.
  • -
  • Note: due to the nature of feeds, labels are often not unique.
  • -
-
aria-describedby="IDREF_LIST"div -
    -
  • Refers to the list of elements that provide the main content of the article.
  • -
  • Does not include elements that are identically repeated in every article, e.g., does not include the "Bookmark" button.
  • -
  • Enables assistive technology users to skim the feed.
  • -
-
aria-posinset="INTEGER"div -
    -
  • Indicates the position of the article in the feed.
  • -
  • Numbering starts with 1.
  • -
  • Note: If articles are added to the beginning of the feed, all articles are renumbered.
  • -
-
aria-setsize="INTEGER"divSet to the total number of articles currently contained by the feed element.
-
- -
-

JavaScript and CSS Source Code

-

The following JavaScript and CSS is used by the feed-display.html page:

- -
- -
-

HTML Source Code

-

Please open feed-display.html and view source.

-
-