Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

pubdate attribute ion the wrong places #18

Closed
GerritKuilder opened this issue Feb 28, 2012 · 2 comments
Closed

pubdate attribute ion the wrong places #18

GerritKuilder opened this issue Feb 28, 2012 · 2 comments

Comments

@GerritKuilder
Copy link

output has invalid markup with pubdate

 time datetime="?php echo the_time('Y-m-j'); ?" pubdate?php the_date(); ?

gerrit@truus$ grep pubdate *.php
archive.php:
attachment.php:
author.php:
image.php:
index.php:
single.php:

@chrisbarnes
Copy link
Collaborator

Currently the code outputs:

<time datetime="2011-11-21" pubdate>

The pubdate attribute of the tag is a boolean attribute which, if present, is set to true meaning that the datetime attribute that is set in the tag is indeed the date/time that the article was published. Reference: http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#attr-time-pubdate

@GerritKuilder
Copy link
Author

Thanks for the info, I validated my site at w3c.org, i reported them....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants