This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13744 - Wrong error message when pubdate comes after malformed datetime value
Summary: Wrong error message when pubdate comes after malformed datetime value
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: Templates (show other bugs)
Version: HEAD
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
Depends on:
Reported: 2011-08-10 09:43 UTC by Lars Gunther
Modified: 2013-10-02 16:51 UTC (History)
0 users

See Also:


Description Lars Gunther 2011-08-10 09:43:25 UTC
If the datetime attribute includes a complete time and the pubdate attribute like this:

<time datetime="2010-11-15T00:00:00" pubdate>foo</time>

The error message will be:

Error: Attribute pubdate not allowed on element time at this point.

From line n, column n; to line n, column n

<time datetime="2010-11-15T00:00:00" pubdate>foo</time>

Adding at timezone identifier removes the error message.

Switching the order of datetime and pubdate will give me ca correct error message.

<time pubdate datetime="2010-11-15T00:00:00">foo</time>


Error: Bad value 2010-11-15T00:00:00 for attribute datetime on element time: The literal did not satisfy the date format.

Using the non-shortened attribute pubdate="pubdate" makes no difference.
Comment 1 Ville Skyttä 2011-08-10 12:49:21 UTC
Which document type is this?  Can you post a complete URL to a document (or attach one) that can be used to reproduce the issue?