W3C home > Mailing lists > Public > public-html@w3.org > February 2011

Re: The details element

From: Michael[tm] Smith <mike@w3.org>
Date: Sun, 13 Feb 2011 22:47:28 +0900
To: Luiz Agostini <luiz@webkit.org>
Cc: public-html@w3.org
Message-ID: <20110213134727.GE25920@sideshowbarker>
Hi Luiz,

The subsection on the details element in the Rendering section of the spec
provides some information related to your questions -

  http://dev.w3.org/html5/spec/rendering.html#the-details-element-0

That currently doesn't say anything about what the behavior should be for a
click on the contents of the summary element. It just describes what the
expected behavior is if you activate the associated "disclosure widget"
(triangle). As far as your questions about the disclosure widget: the
Rendering section seems to make it clear that it should be rendered by
default, and it does not define any means for changing or removing it --
but I think that's to be expected, since it's consistent with the handling
of similar things like form controls.

As far as your question about the event, the spec currently doesn't define
any event behavior associated with the details element. If you think it
should, you might want to file a bug explaining why:

  http://w3.org/brief/MjA2

  --Mike

Luiz Agostini <luiz@webkit.org>, 2011-02-11 16:42 -0300:

> Hi,
> 
> I am working on <details> and <summary> implementation in WebKit (see
> https://bugs.webkit.org/show_bug.cgi?id=51071). It would be nice to receive
> some feedback from this list.
> 
> Some questions that I have are:
> 
> 1 - Should a click on the <summary> toggle the "open" attribute of the
> corresponding <details> element?
> 2 - In the example image seen in
> http://www.w3.org/TR/html5/interactive-elements.html#the-details-element there
> is a small triangle in the <summary> indicating the current value of the
> "open" attribute of the <details>. Should it be rendered by default? Are
> there attributes or CSS properties that could be used to change it or remove
> it?
> 3 - Should an event be triggered when the <details> element is opened or
> closed?
> 
> In Bugzilla you will find a sample HTML that I am using for testing and a
> screen shot showing that sample HTML rendered by the proposed patch.
> 
> Thank you very much in advance.
> 
> Luiz

-- 
Michael[tm] Smith
http://people.w3.org/mike
Received on Sunday, 13 February 2011 13:47:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:22 GMT