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

Ian Hickson ian at hixie.ch
Fri Sep 4 02:13:02 PDT 2009


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.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list