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

           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:

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

<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.

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.4.0 : Friday, 17 January 2020 23:02:50 UTC