The if-if-else structure is perplexing because the "otherwise" scenario may never be applicable, given that the second "if" statement is the opposite of the first one and covers the entirety of the options (if has no figcaption descendant, if has figcaption descendant, otherwise).
Additionally, the "Otherwise" condition diverges from the typical instances found in the document, where it generally advises "No role other than ***, which is NOT RECOMMENDED.".
I am submitting a pull request that introduces a suggested resolution to address these concerns.
Issue description: The existing content in the "ARIA role, state, and property allowances" cell for the Figure is as follows:
The if-if-else structure is perplexing because the "otherwise" scenario may never be applicable, given that the second "if" statement is the opposite of the first one and covers the entirety of the options (if has no figcaption descendant, if has figcaption descendant, otherwise).
Additionally, the "Otherwise" condition diverges from the typical instances found in the document, where it generally advises "No role other than ***, which is NOT RECOMMENDED.".
I am submitting a pull request that introduces a suggested resolution to address these concerns.