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

Re: Validity constraints on <section>

From: Robin Berjon <robin@w3.org>
Date: Thu, 21 Mar 2013 12:11:45 +0100
Message-ID: <514AEAF1.4050708@w3.org>
To: Bruce Lawson <brucel@opera.com>
CC: public-html@w3.org
On 21/03/2013 11:32 , Bruce Lawson wrote:
> On Thu, 21 Mar 2013 10:02:24 -0000, Robin Berjon <robin@w3.org> wrote:
>> I've therefore been wondering: would it make sense to make section
>> invalid if it does not have heading content as its direct children?
>> Put differently, what are the use cases for a headless section?
>
> I once asked this (or something like it). I was told we shouldn't, as a
> site might Ajax in a heading and some text.

This applies to pretty much anything. If you're writing an application 
you might well ship completely invalid content knowing that the script 
will make it right. Validation should be against the composed DOM, not 
the fragmented version that an app might use to build the whole thing.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Thursday, 21 March 2013 11:11:57 UTC

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