W3C home > Mailing lists > Public > public-html@w3.org > November 2014

<details> element clarifications

From: Maksim Chemerisuk <chemerisuk@gmail.com>
Date: Mon, 10 Nov 2014 00:18:19 +0300
Message-ID: <CA+aPrqhLcg2-nTEONuWg7_Zc1h5JWE9yokVmMbz=EDDrwJbdnQ@mail.gmail.com>
To: public-html@w3.org
Hi guys,

I'm writing an article about <details> element polyfil and after reading
the specification at
want to clarify some parts in it.

*The first summary element child of the element, if any, represents the
summary or legend of the details. If there is no child summary element, the
user agent should provide its own legend (e.g. "Details").*


The first definition of <summary> assumes that it may NOT be the first
child of <details>. Later, I found a correction at

*Contexts in which this element can be used:*
*As the first child of a details element.*

So what's the correct answer then? Is it valid for the <summary> element
not to be the first child?As far as I see in Webkit implementation allows


What's the goal of adding fake "Details" legend if <details> does not
contain a child <summary>? It's a bit weird so I'd like to understand this
edge case better to be as much complied to the spec as possible.


Maksim Chemerisuk
Received on Monday, 10 November 2014 23:58:21 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:11 UTC