W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2014

Re: [whatwg] summary/details - proposal

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Sun, 6 Apr 2014 20:50:49 +0100
Message-ID: <CA+ri+Vnaqr=YG7m8ACMCDxzNOeUAezv_n60CO0A71P-BEtAGnQ@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg <whatwg@lists.whatwg.org>


HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>

On 6 April 2014 05:11, Ian Hickson <ian@hixie.ch> 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
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 7 April 2014 17:34:29 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:19 UTC