- From: Eric Devine <devineej@gmail.com>
- Date: Fri, 31 Jan 2014 21:50:30 -0500
- To: Willem-Siebe Spoelstra <info@spoelstra.ws>, public-html@w3.org
- Message-ID: <CAGYLO0J55FdApeaKyKq1AvdfF9y+fmZmT9SmwrO4BzD4ayuE6w@mail.gmail.com>
Thank you, I have a very good understanding of the spec. I'll use an example from the spec to illustrate my question. *body>nav* represents the "primary navigation around the site" *main>nav* represents the "secondary navigation around the page itself" I have a use case where it is necessary for the "secondary navigation" to be rendered outside of the page content. However, semantically this is incorrect. This use case requires something akin to the "for" attribute to refer to the appropriate sectioning content by id. <body> <h1>The Wiki Center Of Exampland</h1> <nav> <ul> <li><a href="/">Home</a></li> <li><a href="/events">Current Events</a></li> ...more... </ul> </nav> <main> <header> <h1>Demos in Exampland</h1> <p>Written by A. N. Other.</p> </header> <nav> <ul> <li><a href="#public">Public demonstrations</a></li> <li><a href="#destroy">Demolitions</a></li> ...more... </ul> </nav> <div> <section id="public"> <h1>Public demonstrations</h1> <p>...more...</p> </section> <section id="destroy"> <h1>Demolitions</h1> <p>...more...</p> </section> ...more... </div> <footer> <p><a href="?edit">Edit</a> | <a href="?delete">Delete</a> | <a href="?Rename">Rename</a></p> </footer> </main> <footer> <p><small>© copyright 1998 Exampland Emperor</small></p> </footer> </body> On Fri, Jan 31, 2014 at 6:48 PM, Willem-Siebe Spoelstra <info@spoelstra.ws>wrote: > Hi Eric, > > I would advice you to reed more about sectioning content, and the elements > so you understand what to use. > > http://www.w3.org/html/wg/drafts/html/master/ > > Kind regards, > > Willem-Siebe Spoelstra > > Sellebrating > Ganeshastraat 67 > 1363XA Almere > Tel: + 31 6 459 575 83 > E-mail: info@spoelstra.ws > KvK-nummer: 55419038 > > > > 2014-01-30 Eric Devine <devineej@gmail.com>: > > I have a case where visually I'd like the <nav> to be rendered outside of >> it's sectioning element. Has there been discussion on using the "for" >> attribute for this use case similar to how a <label> "for" attribute is >> used to reference an <input> element? See below: >> >> <body> >> <nav class="site-nav"></nav> >> <nav class="content-nav" for="content"></nav> >> <section id="content"></section> >> </body> >> >> Secondly, if the <section> element in the above example is replaced with >> the <main> element what other considerations should I have since the <main> >> element is not a sectioning element? >> >> - Eric Devine >> > >
Received on Saturday, 1 February 2014 02:50:58 UTC