User:GijsKruitbosch/ChatA11Y AppAuthors: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 20: Line 20:
The <tt>aria-live</tt> attribute can be used to indicate a '''politeness level'''. The concept of a politeness level is there to be able to indicate the priority of messages. Sighted humans have the comfortable ability to scan a range of visual information without going to the trouble of actually reading and understanding it all. For example, if you ask a question in a multi-user chatgroup to one specific person, you ignore other people's messages without reading all of them. Because this is not possible for users of AT tools, we need to provide some information to the AT as to how important the information is, in other words, how polite it should be about interrupting the user's work with it. Error messages about the connection to the server may be more important than messages from the contact with whom the user is talking, for example.
The <tt>aria-live</tt> attribute can be used to indicate a '''politeness level'''. The concept of a politeness level is there to be able to indicate the priority of messages. Sighted humans have the comfortable ability to scan a range of visual information without going to the trouble of actually reading and understanding it all. For example, if you ask a question in a multi-user chatgroup to one specific person, you ignore other people's messages without reading all of them. Because this is not possible for users of AT tools, we need to provide some information to the AT as to how important the information is, in other words, how polite it should be about interrupting the user's work with it. Error messages about the connection to the server may be more important than messages from the contact with whom the user is talking, for example.


ARIA knows 3 levels of politeness: ''off'', ''polite'' and ''assertive''. ''off'' does what it says on the tin. ''polite'' is the default, and AT software should announce those messages without interrupting the user. ''assertive'' is to be used for more important messages, for which the AT software should interrupt the user.
ARIA knows 3 levels of politeness:
* ''off''
* ''polite''
* ''assertive''
 
''off'' does what it says on the tin.
 
''polite'' is the default, and AT software should announce those messages without interrupting the user.
 
''assertive'' is to be used for more important messages, for which the AT software should interrupt the user.


The default for <tt>role="log"</tt> elements is ''polite'', but you may change this by adding an attribute to the element, eg. <tt>aria-polite="assertive"</tt>. Furthermore, you can add such attributes to individual messages, so you could specify <tt>aria-polite="polite"</tt> on the log, but for some individual messages (eg. connection errors, or in multi-user rooms, messages that mention your name) you could then specify <tt>aria-polite="assertive"</tt> in order to emphasise them.
The default for <tt>role="log"</tt> elements is ''polite'', but you may change this by adding an attribute to the element, eg. <tt>aria-polite="assertive"</tt>. Furthermore, you can add such attributes to individual messages, so you could specify <tt>aria-polite="polite"</tt> on the log, but for some individual messages (eg. connection errors, or in multi-user rooms, messages that mention your name) you could then specify <tt>aria-polite="assertive"</tt> in order to emphasise them.


=== <tt>aria-relevant</tt> ===
=== <tt>aria-relevant</tt> ===


XXXFIXME: not finished, obviously
XXXFIXME: not finished, obviously
Confirmed users
290

edits

Navigation menu