W3C home > Mailing lists > Public > public-html@w3.org > March 2013

Re: Validity constraints on <section>

From: Jirka Kosek <jirka@kosek.cz>
Date: Thu, 21 Mar 2013 11:18:03 +0100
Message-ID: <514ADE5B.2040506@kosek.cz>
To: Robin Berjon <robin@w3.org>
CC: "HTML WG (public-html@w3.org)" <public-html@w3.org>
On 21.3.2013 11:02, Robin Berjon wrote:
> there are increasing concerns over the excessive use of <section>. Some
> authors seem to basically think of it as "sexy modern <div>" for no
> particular reason (a good example: http://lockerz.com/).
> 
> The specification does have some advice about only using <section> for
> content that is meant to appear in the document outline, but given that
> the outline doesn't show up anywhere, that's not something that's ever
> likely to stop this drift.

I always though that introducing semantic elements like <section> will
not be very useful for HTML. They will be misused as any other HTML
element. HTML is not rigid and semantic format like DocBook or DITA.

> I've therefore been wondering: would it make sense to make section
> invalid if it does not have heading content as its direct children?

We can even make this more strict and require heading content to be
first child of section.

> Put
> differently, what are the use cases for a headless section?

More sexy <div>? :-)

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------


Received on Thursday, 21 March 2013 10:18:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:37 UTC