tested 07/03/11

alertdialog and aria-labelledby tests

The following tests were developed to test the results published in the blog post: It's Spelled aria-labelledby.


Result summary

Note: I consider IE's behaviour to be less correct than the Firefox behaviour

Results using Internet Explorer 9 and Firefox 3.6:
test case accessible name in IE accessible name in Firefox
no labelledby element text content "this is dialog text." none
correctly spelled labelledby referenced element text content "correctly labelled" referenced element text content "correctly labelled"
incorrectly spelled labeledby element text content none
correctly spelled labelledby with tabindex set referenced element text content referenced element text content
incorrectly spelled labelledby with tabindex set element text content none

Note: IE 8 and IE 9 platform previews have limited support for aria-labelledby and no support for aria-describedby. It still works with JAWS 11+ as freedom scientific hacked the attribute support for IE.IE 9 has improved support for aria-labelledby and aria-describedby, the improved support is not documented or tested here.


the tests

no labelledby

this is dialog text.

no labelledby code

<DIV role="alertdialog"> this is dialog text. </DIV>

correctly spelled labelledby

this is dialog text.

correctly spelled labelledby code

<DIV role="alertdialog" aria-labelledby="pooter"> this is dialog text. </DIV>

incorrectly spelled labeledby

this is dialog text.

incorrectly spelled labeledby code

<DIV role="alertdialog" aria-labeledby="pooter"> this is dialog text. </DIV>

correctly spelled labelledby with tabindex set

this is dialog text.

correctly spelled labelledby with tabindex set code

<DIV role="alertdialog" aria-labelledby="pooter" tabindex="0"> this is dialog text. </DIV>

incorrectly spelled labeledby with tabindex set

this is dialog text.

incorrectly spelled labeledby with tabindex set code

<DIV role="alertdialog" aria-labeledby="pooter" tabindex="0"> this is dialog text. </DIV>

Referenced text

correctly labelled