W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] Apply pubdate="" to <body> when no ancestor <article>

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 4 Sep 2009 09:13:02 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0909040910250.6775@hixie.dreamhostps.com>
On Tue, 1 Sep 2009, Edward O'Connor wrote:
>
> >From #attr-time-pubdate:
> 
> > If specified, [pubdate=""] indicates that the date and time given by
> > the element is the publication date and time of the nearest ancestor
> > article element. If the element has no ancestor article element, the
> > pubdate attribute must not be specified.
> 
> I think this overlooks the case where <body> serves as an implicit
> <article>?a simple document with no non-article content. If there's no
> ancestor <article>, a <time> with pubdate="" should apply to the
> implicit article represented by <body>. Something like the following
> might do the trick:
> 
> > If specified, it indicates that the date and time given by the element
> > is the publication date and time of the nearest ancestor article or
> > body element.

Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 4 September 2009 02:13:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC