Semantics

A type of live region where new information is added in meaningful order and old information can disappear.

Additional info from the ARIA specification

Examples include chat logs, messaging history, game log, or an error log. In contrast to other live regions, in this role there is a relationship between the arrival of new items in the log and the reading order. The log contains a meaningful sequence and new information is added only to the end of the log, not at arbitrary points.

Elements with the role log have an implicit aria-live value of polite.

Abstract Role

  • Live RegionRepresents dynamic content or an announcement, typically updated as a result of an external event when user focus may be elsewhere.

Content Categories

  • Flow ContentAn element that structures and organizes the body of a web document.

Allowed Descendants

Flow Children Allowed

No main element descendants allowed.

Usage

Allowed HTML elements

Implicit semantics

  • None

Explicitly allowed

  • section[role=log]

Elements that can have any role

  • abbr[role=log]
  • address[role=log]
  • b[role=log]
  • blockquote[role=log]
  • canvas[role=log]
  • cite[role=log]
  • code[role=log]
  • custom-element[role=log]
  • data[role=log]
  • del[role=log]
  • dfn[role=log]
  • div[role=log]
  • em[role=log]
  • figure[role=log]
  • i[role=log]
  • ins[role=log]
  • kbd[role=log]
  • mark[role=log]
  • output[role=log]
  • p[role=log]
  • pre[role=log]
  • q[role=log]
  • samp[role=log]
  • small[role=log]
  • span[role=log]
  • table[role=log]
  • tbody[role=log]
  • tfoot[role=log]
  • thead[role=log]
  • time[role=log]
  • u[role=log]
  • var[role=log]