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

rel=bookmark & sectioning clarification requested

From: Nathan <nathan@webr3.org>
Date: Sat, 05 Jun 2010 04:16:50 +0100
Message-ID: <4C09C1A2.2070208@webr3.org>
To: public-html-comments@w3.org
All,

In regards to using rel="boomark" [1] on an <a> tag which includes an 
href atribute

The spec contains the following example (snipped)

  <body>
   <h1>Example of permalinks</h1>
   <div id="a">
    <h2>First example</h2>
    <p><a href="a.html" rel="bookmark">This</a> permalink applies to
    only the content from the first H2 to the second H2. The DIV isn't
    exactly that section, but it roughly corresponds to it.</p>
   </div>
   <h2>Second example</h2>
...

Personally I find the inclusion of the <div id="a"> slightly confusing, 
because all the noted 'sections' in the example have an @id, it 
indicates (albeit indirectly) that 'the section the linking element is 
most closely associated with' is taken to be the element most closely 
associated which has an @id.

Thus to clarify, is the following correct?:

  <body>
   <h1>Example of permalinks</h1>
    <h2>First example</h2>
    <p><a href="egg.html" rel="bookmark">This</a> permalink applies to
    only the content from the first H2 to the second H2. Including the
    content within the following H3.</p>
    <h3>First Child Example</h3>
    <p><a href="shell.html" rel="bookmark">This</a> permalink applies to
    only the content from the first H3 to the next H3, or if no
    following H3 is found then next heading with a higher rank, in this
    case the following H2.
    <h2>Second example</h2>
...


Finally, and partially to give some context, I would like to have a 
document which is comprised of lots of smaller sections of content (all 
available via their own URLs, and some curated from sections of external 
documents) and for it to be clear to the reader that each section is 
from another document, and/or available standalone in another document, 
and in context comprises part of the content of the document they are 
currently reading - using rel=bookmark and various sectioning methods 
appears to cover this semantically, but will this be reflected to the 
user in any useful way by the main browsers; or is it something I'll 
need to handle myself.

in some ways does this conflict with '<q cite="...' or could they be 
used together or?

Best,

Nathan

[1] http://dev.w3.org/html5/spec/Overview.html#link-type-bookmark
Received on Saturday, 5 June 2010 03:24:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:02 GMT