Rules belonging to control child of link or button
issue
About the control child of link or button
issue
- Why it matters: User cannot reliably choose an item to click or tap
- Priority: high
- Related WCAG standard: 2.5.5
Rules
Axe rules
invariant rules
nested-interactive: Interactive controls are nested
Pour rules
invariant rules
nested-interactive: Interactive control contains another interactive control
SureA11y rules
invariant rules
nested-interactive-controls-absent: Interactive control contains another interactive control
Testaro rules
invariant rules
embAc: Active element is embedded in a link or button
Html Checker API rules
invariant rules
An element with the attribute role=button must not appear as a descendant of the a element.: Element with a button role is a descendant of an a element
An element with the attribute role=button must not appear as a descendant of the button element.: Element with a button role is a descendant of a button element
An element with the attribute role=menu must not appear as a descendant of the a element.: Element with a menu role is a descendant of an a element
An element with the attribute role=menuitem must not appear as a descendant of the a element.: Element with a menuitem role is a descendant of an a element
An element with the attribute role=option must not appear as a descendant of the a element.: Element with an option role is a descendant of an a element
An element with the attribute tabindex must not appear as a descendant of an element with the attribute role=button.: descendant of an element with a button role has a tabindex attribute
An element with the attribute tabindex must not appear as a descendant of an element with the attribute role=link.: descendant of an element with a link role has a tabindex attribute
An element with the attribute tabindex must not appear as a descendant of the a element.: descendant of an a element has a tabindex attribute
An element with the attribute tabindex must not appear as a descendant of the button element.: descendant of a button element has a tabindex attribute
The element a must not appear as a descendant of an element with the attribute role=link.: a element is a descendant of an element with a link role
The element a should not appear as a descendant of an element with the attribute role=option.: a element with an href attribute is a descendant of an element with a menuitem role
The element a with the attribute href must not appear as a descendant of an element with the attribute role=button.: a element with a destination is a descendant of an element with a button role
The element a with the attribute href should not appear as a descendant of an element with the attribute role=menuitem.: a element with an href attribute is a descendant of an element with a menuitem role
The element a with the attribute href should not appear as a descendant of an element with the attribute role=option.: a element with an href attribute is a descendant of an element with a menuitem role
The element button must not appear as a descendant of the a element.: button element is a descendant of an a element
The element input must not appear as a descendant of an element with the attribute role=progressbar.: input element is a descendant of an element with a progressbar role
variable rules
An element with the attribute role=.+ must not appear as a descendant of an element with the attribute role=button\.: Element has a role not permitted in a descendant of an element with a button role
The element (?:a|a with the attribute href|button|input|label|select) (must|should) not appear as a descendant of an element with the attribute role=(?:button|menuitem|tab)\.: Element is activatable but has an ancestor with an activatable role
Html Checker rules
invariant rules
An element with the attribute role=button must not appear as a descendant of the a element.: Element with a button role is a descendant of an a element
An element with the attribute role=button must not appear as a descendant of the button element.: Element with a button role is a descendant of a button element
An element with the attribute role=menu must not appear as a descendant of the a element.: Element with a menu role is a descendant of an a element
An element with the attribute role=menuitem must not appear as a descendant of the a element.: Element with a menuitem role is a descendant of an a element
An element with the attribute role=option must not appear as a descendant of the a element.: Element with an option role is a descendant of an a element
An element with the attribute tabindex must not appear as a descendant of an element with the attribute role=button.: descendant of an element with a button role has a tabindex attribute
An element with the attribute tabindex must not appear as a descendant of an element with the attribute role=link.: descendant of an element with a link role has a tabindex attribute
An element with the attribute tabindex must not appear as a descendant of the a element.: descendant of an a element has a tabindex attribute
An element with the attribute tabindex must not appear as a descendant of the button element.: descendant of a button element has a tabindex attribute
The element a must not appear as a descendant of an element with the attribute role=link.: a element is a descendant of an element with a link role
The element a should not appear as a descendant of an element with the attribute role=option.: a element with an href attribute is a descendant of an element with a menuitem role
The element a with the attribute href must not appear as a descendant of an element with the attribute role=button.: a element with a destination is a descendant of an element with a button role
The element a with the attribute href should not appear as a descendant of an element with the attribute role=menuitem.: a element with an href attribute is a descendant of an element with a menuitem role
The element a with the attribute href should not appear as a descendant of an element with the attribute role=option.: a element with an href attribute is a descendant of an element with a menuitem role
The element button must not appear as a descendant of the a element.: button element is a descendant of an a element
The element input must not appear as a descendant of an element with the attribute role=progressbar.: input element is a descendant of an element with a progressbar role
variable rules
An element with the attribute role=.+ must not appear as a descendant of an element with the attribute role=button\.: Element has a role not permitted in a descendant of an element with a button role
The element (?:a|a with the attribute href|button|input|label|select) (must|should) not appear as a descendant of an element with the attribute role=(?:button|menuitem|tab)\.: Element is activatable but has an ancestor with an activatable role