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

header/footer in header/footer

From: Niels Matthijs <niels.matthijs@internetarchitects.be>
Date: Mon, 17 Jun 2013 17:51:44 +0200
To: <public-html@w3.org>
Message-ID: <51bf3092.c2ce0e0a.44b1.ffffe9ad@mx.google.com>
Hi guys,


After validating my html I noticed that it was not allowed to nest
headers/footers in headers/footers. 

I was wondering why this restriction was set. Even though it might not be a
very common depending on your style of html, it created quite a lot of
errors for me.


A simple use case: list of news items in a fat footer:



                <section class="list news">

                               <div class="main">

                                               <article class="newsItem">


<h1>news heading</h1>

<div class="meta">[fe date]</div>

<div class="image">...</div>



<div class="abstract">....</div>





                               <footer><div class="more"><a href="#">read




Might be overkill for some people, but I like the consistency of the code +
its future-proofness. Anyway, I don't see much use constricting the use of
header/footer this harshly. Any input?




Niels Matthijs - Front-End Developer

Internet Architects

Internet Architects
Your strategic online partner 

Koningin Astridplein 41 - 2018 Antwerpen
+32 3 234 34 74 -  <http://www.internetarchitects.be> website -
<http://www.facebook.com/pages/Internet-Architects/81743786433> facebook 



(image/png attachment: image001.png)

Received on Monday, 17 June 2013 15:54:27 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:33 UTC