<CAMCRKiJaJoQDGBzHsUnURO_bcEGfS36Zxt3ai1vrsGQrC5yYHQ@mail.gmail.com>
Current votes: None.
Obviously this is not right - perhaps I'm not understanding your use case? Why would you want to specify an author as an attribute on the element? What is wrong with: <article class=3D"by-post-author"> <p>Content</p> <footer> <p class=3D"author">Written by: Person</p> </footer> </article> Any time you do this the information will have been pulled through a CMS, so it's trivial to have a class appended to the article. When would you want this as pure HTML that's not been parsed by some form of CMS? On 26 January 2012 21:43, Matthew Wilcox <elvendil@gmail.com> wrote: > > On 26 Jan 2012, at 20:47, Bjartur Thorlacius wrote: > > > =C3=9Eann fim 26.jan 2012 14:48, skrifa=C3=B0i Matthew Wilcox: > >> What's wrong with using a class on the <article> to identify the autho= r > >> stylistically? It's already identified semantically by having their na= me > >> in the <article> itself, right (presumably in a <footer> too)? > > As in <article class=3D"asdf lolcats author-bjartur@spam.la>? Because > then the class would contain content. > > Obviously this is not right - perhaps I'm not understanding your use case= ? > Why would you want to specify an author as an attribute on the element? > What is wrong with: > > <article class=3D"by-post-author"> > <p>Content</p> > <footer> > <p class=3D"author">Written by: Person</p> > </footer> > </article> > > Any time you do this the information will have been pulled through a CMS, > so it's trivial to have a class appended to the article. When would you > want this as pure HTML that's not been parsed by some form of CMS? > > > 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 tersely. > > > > The best solution I can think of is stating normatively that hCard > <footer>s describe authors of the respected article or document. hCard do= es > 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> > > <article> > > <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=3D"hcard"> > > <a class=3D"fn email" href=3D"mailto:bjartur@spam.la">Bjartur > Thorlacius</a> > > </footer> > > </article> > >