W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] Requests for new elements for comments

From: Bjartur Thorlacius <svartman95@gmail.com>
Date: Thu, 26 Jan 2012 20:47:17 +0000
Message-ID: <4F21BBD5.9050001@gmail.com>
?ann fim 26.jan 2012 14:48, skrifa?i Matthew Wilcox:
> What's wrong with using a class on the <article> to identify the author
> stylistically? It's already identified semantically by having their name
> in the <article> itself, right (presumably in a <footer> too)?
As in <article class="asdf lolcats author-bjartur at spam.la>? Because then 
the class would contain content. That would depend on a stylesheet 
containing the identifier of every poster on every page. Generating such 
stylesheets from content already marked up in a page in a nonstandard 
fashion seems hackish at best, and harmful to usability at worst.

The situation only gets worse when you consider the different stylistic 
needs of various media. I might want the whole <footer> rendered to the 
relatively large desktop screen of mine, but omit everything but 
authors' name or identity on my handheld screen. <Address>, for example, 
should be hidden behind a menu button and the authors name displayed 

The best solution I can think of is stating normatively that hCard 
<footer>s describe authors of the respected article or document. hCard 
does not, AFAIK, provide means to state URIs of authors, but indirect 
identification using email addresses should suffice.

<!DOCTYPE html>
<title>Example of Semantically Marking up Authors of Documents</title>
  <h1>An Article Written by Bjartur</h1>
  <p>This article was written to demonstrate how authorship might be 
marked up. I sure hope it's valid!</p>
  <footer class="hcard">
   <a class="fn email" href="mailto:bjartur at spam.la">Bjartur Thorlacius</a>
Received on Thursday, 26 January 2012 12:47:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:39 UTC