Use xhtml friendly pubdate setting.
authorJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 23:45:02 +0000 (19:45 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 23:45:02 +0000 (19:45 -0400)
IkiWiki.pm
IkiWiki/Plugin/relativedate.pm
debian/changelog
doc/bugs/html5_time_element__39__s_pubdate_wrong_when_using_xhtml5___34__mode__34__.mdwn

index d76b5edb403b931e207ccd6dd4ac2f8f5da4fe95..33e4e1d1f3f40326228f1d11167c0726e4e13531 100644 (file)
@@ -1004,7 +1004,7 @@ sub displaytime ($;$$) {
        my $time=formattime($_[0], $_[1]);
        if ($config{html5}) {
                return '<time datetime="'.date_3339($_[0]).'"'.
-                       ($_[2] ? ' pubdate' : '').
+                       ($_[2] ? ' pubdate="pubdate"' : '').
                        '>'.$time.'</time>';
        }
        else {
index fe8ef09013e0d888fcf7ff879715dfe8020e1842..179f9238c97efa990836049e3c6543ceb2d3bc70 100644 (file)
@@ -59,7 +59,7 @@ sub mydisplaytime ($;$$) {
 
        if ($config{html5}) {
                return '<time datetime="'.IkiWiki::date_3339($time).'"'.
-                       ($pubdate ? ' pubdate' : '').$mid.'</time>';
+                       ($pubdate ? ' pubdate="pubdate"' : '').$mid.'</time>';
        }
        else {
                return '<span'.$mid.'</span>';
index 730cae1e247f537f0ac8e6456224b857a237664c..e6c5e42ae17b1b683761bd1c79d888605ab1dbea 100644 (file)
@@ -29,6 +29,7 @@ ikiwiki (3.20100505) UNRELEASED; urgency=low
   * calendar: Allow negative month to be specified. -1 is last month, etc.
     (And also negative years.)
   * calendar: Display year in title of month calendar.
+  * Use xhtml friendly pubdate setting.
 
  -- Joey Hess <joeyh@debian.org>  Wed, 05 May 2010 18:07:29 -0400
 
index 2dd0d945f7c09e2ae320e40dd3badcb0cbdb0b98..1f6bdb3339fc89666fd06b24dd29a032eb471ae7 100644 (file)
@@ -6,6 +6,9 @@ XML error:
 
 The pubdate REQUIRES a date, so e.g. `pubdate="2009-03-24T18:02:14Z"`
 
+> No, `pubdate="pubdate"`. It's a boolean attribute. applied && [[done]]
+> --[[Joey]] 
+
 Otherwise the XML parser chokes.
 
 <http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#attr-time-pubdate>