AccessibleName

io.github.frikit.twirlspec.page.AccessibleName

The name an assistive technology announces for an element.

A working subset of the accessible name computation: the parts that a server-rendered page can actually be judged on. It does not resolve aria-labelledby chains beyond one hop, and knows nothing that depends on CSS or JavaScript.

This is the one answer to "what is this element called". Every rule that asks the question asks it here, so the same markup cannot pass one check and fail another.

Attributes

Source
AccessibleName.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def of(document: Document, e: Element): String

The accessible name of an element in this document.

The accessible name of an element in this document.

Attributes

Source
AccessibleName.scala