Testing name-prohibited roles

The following are roles that cannot be named in ARIA 1.2.

caption

This element has a role of caption
This is a caption
TH2 TH2
Cell1 Cell2
HTML markup
<caption aria-label="Hello">This is a caption</caption>

code

This element has a role of code
This is the <code> element
HTML markup
<span role="code" aria-label="Hello">...</span>
<code aria-label="Hello">...</code>

deletion

This element has a role of deletion
This is the <del> element
HTML markup
<span role="deletion" aria-label="Hello">...</span>
<del aria-label="Hello">...</del>

emphasis

This element has a role of emphasis
This is the <em> element
HTML markup
<span role="emphasis" aria-label="Hello">...</span>
<em aria-label="Hello">...</em>

generic

This is the <span> element, a generic element
This is the <div> element, a generic element
HTML markup
<span aria-label="Hello">...</span>
<div aria-label="Hello">...</div>

insertion

This element has a role of insertion
This is the <ins> element
HTML markup
<span role="insertion" aria-label="Hello">...</span>
<ins aria-label="Hello">...</ins>

paragraph

This element has a role of paragraph

This is the <p> element

HTML markup
<span role="paragraph" aria-label="Hello">...</span>
<p aria-label="Hello">...</p>

presentation

This element has a role of presentation
HTML markup
<span role="presentation" aria-label="Hello">...</span>

strong

This element has a role of strong
This is the <strong> element
HTML markup
<span role="strong" aria-label="Hello">...</span>
<strong aria-label="Hello">...</strong>

subscript

This element has a role of subscript
This is the <sub> element
HTML markup
<span role="subscript" aria-label="Hello">...</span>
<sub aria-label="Hello">...</sub>

superscript

This element has a role of superscript
This is the <sup> element
HTML markup
<span role="superscript" aria-label="Hello">...</span>
<sup aria-label="Hello">...</sup>

The following are roles that cannot be named in ARIA 1.3.

definition

This element has a role of definition
This is the <dfn> element
HTML markup
<span role="definition" aria-label="Hello">...</span>
<dfn aria-label="Hello">...</dfn>

mark

This element has a role of mark
This is the <mark> element
HTML markup
<span role="mark" aria-label="Hello">...</span>
<mark aria-label="Hello">...</mark>

none

This element has a role of none
HTML markup
<span role="none" aria-label="Hello">...</span>

suggestion

This element has a role of suggestion
HTML markup
<span role="suggestion" aria-label="Hello">...</span>

term

This element has a role of term
HTML markup
<span role="term" aria-label="Hello">...</span>

time

This element has a role of time
HTML markup
<span role="time" aria-label="Hello">...</span>
<time aria-label="Hello">...</time>

tooltip

This element has a role of tooltip
HTML markup
<span role="tooltip" aria-label="Hello">...</span>

invalid/made-up role

This element has a made-up role of fake
This element has a made-up role of madeup
HTML markup
<div role="fake" aria-label="Hello">...</div>
<span role="madeup" aria-label="Hello">...</span>