HTML Checking for Large Sites

Rocket Validator automatically checks your pages on the W3C Validator.

The element “input” must not appear as a descendant of an element with the attribute “role=button”.

An element with role=button can’t have an input element as descendant.

The ARIA role button can be added to an element to make it behave like a <button> – just like a <button> is not allowed to contain other <input> elements as descendants, any element with this role is not allowed to contain them either.

All these examples in the following code will raise a similar issue:

<div role="button">
  <input type="checkbox" />

  <input type="checkbox" />

  <input type="checkbox" />

Learn more:

HTML Spec: the button element MDN: ARIA button role

Related W3C validator issues

25,000 HTML checks per month. Is that enough for your site?

Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.