Difference between revisions of "ARIA Haspopup property"

From Level Access Web Labs
Jump to navigation Jump to search
Line 1: Line 1:
 
<p>This page demonstrates uses of the <code>aria-haspopup</code> attribute.</p>
 
<p>This page demonstrates uses of the <code>aria-haspopup</code> attribute.</p>
 
<p><em>Please note: </em> According to the current ARIA specification the <code>aria-haspopup</code> attribute should only be used to indicate the presence of a menu, submenu, or button menu.  The <code>aria-haspopup</code> attribute should not be used to indicate when a dialog or modal window will open.  These are potential good uses for the attribute and may be addressed by future versions of the ARIA specification.  Currently screen readers such as JAWS and NVDA will announce "menu", "sub menu", or "haspopup" for the different uses of this attribute.</p>
 
<p><em>Please note: </em> According to the current ARIA specification the <code>aria-haspopup</code> attribute should only be used to indicate the presence of a menu, submenu, or button menu.  The <code>aria-haspopup</code> attribute should not be used to indicate when a dialog or modal window will open.  These are potential good uses for the attribute and may be addressed by future versions of the ARIA specification.  Currently screen readers such as JAWS and NVDA will announce "menu", "sub menu", or "haspopup" for the different uses of this attribute.</p>
 +
 +
Note: The controls below have the attribute set but do not actually have a menu associated with them.  Thus, nothing will happen when you interact with the control.
  
 
<html>
 
<html>

Revision as of 18:23, 13 February 2015

This page demonstrates uses of the aria-haspopup attribute.

Please note: According to the current ARIA specification the aria-haspopup attribute should only be used to indicate the presence of a menu, submenu, or button menu. The aria-haspopup attribute should not be used to indicate when a dialog or modal window will open. These are potential good uses for the attribute and may be addressed by future versions of the ARIA specification. Currently screen readers such as JAWS and NVDA will announce "menu", "sub menu", or "haspopup" for the different uses of this attribute.

Note: The controls below have the attribute set but do not actually have a menu associated with them. Thus, nothing will happen when you interact with the control.

Input text field

Input type button

Button element

Link

Colors

Span with role of button

Colors

Radio button