Tests:
Test 1
Authors are NOT RECOMMENDED to use the role=directory
, as it has been deprecated. The following div, ul, ol and menu elements have a role=directory
.
Authors should not need to use role=listitem
on li
elements, however not all browsers will respect the li
mapping to listitem
if the
parent list element has a role=directory
specified.
- an item in the directory, no explicit role
- an item in the directory with role=listitem
- an item in the directory, no explicit role
- an item in the directory with role=listitem
Expected result:
warn authors role=directory
has been deprecated, and that they should use a native list element (ul
,
ol
, menu
) or role=list
instead.
Note: while a directory
maps to a list
,
if used on a ul
, ol
or menu
, their child li
elements do not remain
mapped to listitem
in Chromium browsers. Firefox and Webkit do still map the li
elements to listitem
. Essentially, if not using listitem
on each child of a directory
, then
those lists will be broken in Chromium browsers.