[Bug 25140] restrict summary element content?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25140

--- Comment #12 from Simon Pieters <simonp@opera.com> ---
(In reply to steve faulkner from comment #11)
> I haven't encountered any anonymous controls (in shadow DOM) that can be
> labelled by an author, from the DOM. I thought that the inability to
> reference stuff in the shadow DOM from the DOM was a feature (i.e.
> encapsulation) it is for author shadow DOM - see
> http://blog.paciellogroup.com/2014/03/stuff-doesnt-work-dom-shadow-dom/

The author doesn't cross the boundary here. I'm suggesting

<details>
 <summary>Foo</summary>
</details>

<details>
 <summary aria-label="Foo">Bar</summary>
</details>

or

<details>
 <summary aria-labelledby=x><span id=x>Foo</span> Bar</summary>
</details>

and then the UA is responsible of getting the accessible name from the summary
element for the anonymous widget.

> platform conventions for disclosure type widgets vary (on windows as noted
> previously the whole 'summary' is clickable.

Oh, I didn't realize that was a platform convention on Windows rather than just
something that app was doing.

> the minority use case can be addressed via scripting see
> http://codepen.io/stevef/pen/jiCBE as an example.

I have less faith in all authors getting this right than UAs/OSes getting their
accessibility act together. :-P

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 3 April 2014 13:04:05 UTC