A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.
To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).
Summary element: Difference between revisions
(redir) |
(draft) |
||
Line 1: | Line 1: | ||
# | {{stub}} | ||
The <code><summary></code> element is a new element in HTML5, a child of the new <code><[[details]]></code> element. | |||
{{For|the summary attribute|Table Summary}} | |||
=== summary naming or flexibility === | |||
Currently the <code><summary></code> element is a special element specifically for use for the label inside the <code><details></code> element. | |||
The name of the <code><summary></code> element however is too generic sounding of an element name for this special usage. | |||
It is inevitable that people will begin using the <code><summary></code> element when they simply mean a semantic "summary", perhaps of a <code><section></code> or <code><article></code>. | |||
I say inevitable due to the broad evidence presented by the known existing problem with the <code><address></code> element (special use - for contact information for the document, but used and often errantly taught as a generic "address" for street addresses). | |||
Thus we should <em>either</em>: | |||
# '''Rename the details <code><summary></code>''' to something more specific (suggestions welcome), <em>OR</em>: | |||
# '''Alternatively make the <code><summary></code> element generic.''' Make it an actual summary inside <code><article></code> or <code><body></code>, as well as inside <code><details></code>. | |||
I prefer the second solution, make the <code><summary></code> element more generic/flexible. — [[User:Tantek|Tantek]] 20:38, 3 August 2010 (UTC) | |||
Advantages of making the <code><summary></code> element more generic and flexible: | |||
* This is '''close to the semantic of the Atom "summary" element''', and the hAtom microformat 'entry-summary' property. | |||
* This would allow an '''enhancement of the algorithm for converting HTML5 to Atom''': take the first HTML5 <code><summary></code> inside an <code><article></code> being converted to an entry, and use that HTML5 <code><summary></code> as the Atom entry <code><summary></code>. | |||
<div class="discussion"> | |||
Opinions / discussion: | |||
* +1 [[User:Tantek|Tantek]] - I think web authors would make good use of a new generic <code><summary></code> element. | |||
* ... | |||
</div> |
Revision as of 20:38, 3 August 2010
This article is a stub. You can help the whatwg.org wiki by expanding it.
The <summary>
element is a new element in HTML5, a child of the new <details>
element.
summary naming or flexibility
Currently the <summary>
element is a special element specifically for use for the label inside the <details>
element.
The name of the <summary>
element however is too generic sounding of an element name for this special usage.
It is inevitable that people will begin using the <summary>
element when they simply mean a semantic "summary", perhaps of a <section>
or <article>
.
I say inevitable due to the broad evidence presented by the known existing problem with the <address>
element (special use - for contact information for the document, but used and often errantly taught as a generic "address" for street addresses).
Thus we should either:
- Rename the details
<summary>
to something more specific (suggestions welcome), OR: - Alternatively make the
<summary>
element generic. Make it an actual summary inside<article>
or<body>
, as well as inside<details>
.
I prefer the second solution, make the <summary>
element more generic/flexible. — Tantek 20:38, 3 August 2010 (UTC)
Advantages of making the <summary>
element more generic and flexible:
- This is close to the semantic of the Atom "summary" element, and the hAtom microformat 'entry-summary' property.
- This would allow an enhancement of the algorithm for converting HTML5 to Atom: take the first HTML5
<summary>
inside an<article>
being converted to an entry, and use that HTML5<summary>
as the Atom entry<summary>
.
Opinions / discussion:
- +1 Tantek - I think web authors would make good use of a new generic
<summary>
element. - ...