Re: Validity constraints on <section>

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