Skip to content

Clarify which legend/figcaption/caption element to use#146

Merged
stevefaulkner merged 2 commits intow3c:gh-pagesfrom
zcorpan:zcorpan/clarify-legend-figcaption-caption
Sep 7, 2018
Merged

Clarify which legend/figcaption/caption element to use#146
stevefaulkner merged 2 commits intow3c:gh-pagesfrom
zcorpan:zcorpan/clarify-legend-figcaption-caption

Conversation

@zcorpan
Copy link
Copy Markdown
Contributor

@zcorpan zcorpan commented Aug 30, 2018

Fixes #145.

Comment thread index.html
@@ -5583,9 +5583,9 @@ <h3><code>fieldset</code> and <code>legend</code> Elements</h3>
<h4><code>fieldset</code> Element Accessible Name Computation</h4>
<ol>
<li>If the <code>fieldset</code> element has an <a href="https://www.w3.org/TR/wai-aria-1.1/#aria-label"><code>aria-label</code></a> or an <a href="https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"><code>aria-labelledby</code></a> attribute the <a class="termref">accessible name</a> is to be calculated using the algorithm defined in <a href="" class="accname">Accessible Name and Description: Computation and API Mappings 1.1</a>. </li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually do not understand why there is any remaining need for conditional language here. Might this be a hold-over from back in the days when the accessible name computation spec was an "ARIA-only" thing buried inside the UAIG?

In other words, why are there naming algorithms being defined outside the accname spec? The accname spec defines when to use content or title. So, why can't the accessible name calculation be used all the time? If every element has its own algorithm, testing name computation will continue to be unnecessarily complex, or perhaps more accurately, impossibly complex.

@accdc, @joanmarie, @jnurthen, does this make sense to you?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can envision there being a generic algorithm that applies to all HTML/SVG elements, which has an element-specific hook that fieldset, table etc can define to let legend/caption go in between ARIA attributes and the title attribute. But this is basically an editorial detail.

@stevefaulkner stevefaulkner merged commit f311fe0 into w3c:gh-pages Sep 7, 2018
@zcorpan zcorpan deleted the zcorpan/clarify-legend-figcaption-caption branch September 7, 2018 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants