For example, an element with role=button is interactive content and therefore cannot contain interactive content descendants.
While it's true that an element with role=button cannot contain interactive content, the sentence implies that the reason this is true is that interactive content cannot contain interactive content, which is not true. The details and label tags are both interactive content which are allowed to contain interactive content.
Under Allowed ARIA roles, states and properties I noticed the following sentence:
While it's true that an element with
role=button
cannot contain interactive content, the sentence implies that the reason this is true is that interactive content cannot contain interactive content, which is not true. Thedetails
andlabel
tags are both interactive content which are allowed to contain interactive content.I feel this sentence is therefore misleading.