<?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>14876</bug_id>
          
          <creation_ts>2011-11-18 15:54:28 +0000</creation_ts>
          <short_desc>Empty value attributes are being validated.</short_desc>
          <delta_ts>2015-08-23 07:07:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>http://bugzilla.validator.nu/show_bug.cgi?id=881</see_also>
          <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="Simon B">simon</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</cc>
          
          <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>60143</commentid>
    <comment_count>0</comment_count>
    <who name="Simon B">simon</who>
    <bug_when>2011-11-18 15:54:28 +0000</bug_when>
    <thetext>Perhaps I have misunderstood something, however there seems to be a bug where the Validator is not in line with the HTML 5 spec. Value attribute should be able to be left empty. When validating number and date fields with empty value attribute, an error is shown.

For Numbers:

Bad value for attribute value on element input: The empty string is not a valid floating point number.

For Dates:

Bad value for attribute value on element input: The literal did not satisfy the date format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60274</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-11-21 07:24:17 +0000</bug_when>
    <thetext>Thanks for catching this.

The reason for the current validator behavior is that the spec used to say this:

  - The value attribute, if specified, must have a value that is a valid floating point number.
  - The value attribute, if specified, must have a value that is a valid date string.

So that&apos;s what was implemented in validator code.

But the spec now says this:

  - The value attribute, if specified and not empty, must have a value that is a valid floating point number.
  - The value attribute, if specified and not empty, must have a value that is a valid date string.

So, we need to update the code to match the current spec.

Because this is bug in the validator.nu backend, I&apos;ll use the following bug from here on to track it:

  http://bugzilla.validator.nu/show_bug.cgi?id=881

So, you may want to add yourself to the Cc list on that bug.

I&apos;ll update this bug after I get the code checked in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78453</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-11-18 11:27:04 +0000</bug_when>
    <thetext>https://github.com/validator/syntax/commit/f55a8abe68315f8d331ac987d896cfb31be3ef0d

I&apos;ll push the fix to the validator later this week.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>