W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2011

[Bug 13744] New: Wrong error message when pubdate comes after malformed datetime value

From: <bugzilla@jessica.w3.org>
Date: Wed, 10 Aug 2011 09:43:25 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-13744-169@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13744

           Summary: Wrong error message when pubdate comes after malformed
                    datetime value
           Product: Validator
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Templates
        AssignedTo: dave.null@w3.org
        ReportedBy: webmaster@keryx.se
         QAContact: www-validator-cvs@w3.org


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:

<blockquote>
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>
</blockquote>

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>

Produces:

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

Using the non-shortened attribute pubdate="pubdate" makes no difference.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 10 August 2011 09:43:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:46 UTC