Re: [whatwg] summary/details - proposal



HTML 5.1 <>

On 6 April 2014 05:11, Ian Hickson <> wrote:

> On Sat, 5 Apr 2014, Steve Faulkner wrote:
> >
> > The <summary> itself is not interactive, so only the triangle provides
> > the actionable control.
> The spec doesn't disallow making clicks on (non-interactive) parts of the
> summary defer to the disclosure triangle. Browsers should just match
> platform conventions, where applicable, and otherwise make whatever is
> considered the best choice for users (such as making such content also
> trigger the disclosure triangle).
Platform conventions for disclosure type widgets vary, on windows for
example, the current implementations match the convention. It also provides
the best choice for users, large click area and focus ring, Its also simple
for authors in the majority of use cases. while on Mac OSX only the
disclosure triangle (approx 13X13px) itself is clickable and has a focus

> <details>
> <summary id=x> <label for=x>Foo</label> </summary>
>  ...
> </details>

That's way more complicated than necessary for authors,

how so?

with the current definition how do authors provide a label for the
disclosure widget when summary also contains controls with labels?
in the absence of browser making "clicks on (non-interactive) parts of the
summary defer to the disclosure triangle." how is an author supposed to do

> not to mention all
> the problems it would cause with the existing <label> definitions.

may be making the details element a labelable control would be simpler, as
its be definition an interactive control. would it cause problems for
existing <label> definitions?

<details id=x>
<summary> <label for=x>Foo</label> </summary>

> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
>       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 7 April 2014 17:34:29 UTC