<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13744</bug_id>
          
          <creation_ts>2011-08-10 09:43:25 +0000</creation_ts>
          <short_desc>Wrong error message when pubdate comes after malformed datetime value</short_desc>
          <delta_ts>2013-10-02 16:51:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Templates</component>
          <version>HEAD</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lars Gunther">webmaster</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54586</commentid>
    <comment_count>0</comment_count>
    <who name="Lars Gunther">webmaster</who>
    <bug_when>2011-08-10 09:43:25 +0000</bug_when>
    <thetext>If the datetime attribute includes a complete time and the pubdate attribute like this:

&lt;time datetime=&quot;2010-11-15T00:00:00&quot; pubdate&gt;foo&lt;/time&gt;

The error message will be:

&lt;blockquote&gt;
Error: Attribute pubdate not allowed on element time at this point.

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

&lt;time datetime=&quot;2010-11-15T00:00:00&quot; pubdate&gt;foo&lt;/time&gt;
&lt;/blockquote&gt;

Adding at timezone identifier removes the error message.

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

&lt;time pubdate datetime=&quot;2010-11-15T00:00:00&quot;&gt;foo&lt;/time&gt;

Produces:

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

Using the non-shortened attribute pubdate=&quot;pubdate&quot; makes no difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54593</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2011-08-10 12:49:21 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>