<?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>7729</bug_id>
          
          <creation_ts>2009-09-25 20:51:58 +0000</creation_ts>
          <short_desc>input type image validation error against value attribute</short_desc>
          <delta_ts>2015-08-23 07:06:59 +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>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Kevin Peno">kevinpeno</reporter>
          <assigned_to name="Henri Sivonen">hsivonen</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>27662</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Peno">kevinpeno</who>
    <bug_when>2009-09-25 20:51:58 +0000</bug_when>
    <thetext>&lt;input type=&quot;image&quot; name=&quot;submit&quot; value=&quot;submit&quot; src=&quot;/images/ui-login.png&quot; class=&quot;submit&quot;/&gt;

This should be invalid against HTML5 because it contains the value attribute. This works properly. HOWEVER, the follow also fails:

&lt;input type=&quot;image&quot; name=&quot;submit&quot; src=&quot;/images/ui-login.png&quot; class=&quot;submit&quot;/&gt;

the error given is:
&quot;Required attributes missing on element input.&quot;

Error #2 does not conform with http://www.whatwg.org/specs/web-apps/current-work/#image-button-state which states under &quot;bookkeeping details&quot; that: &quot;The element&apos;s value attribute must be omitted&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27683</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-09-26 20:31:37 +0000</bug_when>
    <thetext>These messages come directly from validator.nu, assigning to upstream for comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36147</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-06-14 09:08:53 +0000</bug_when>
    <thetext>For input/@type=image (input elements with the value of the type attribute attribute set to &quot;image&quot;), the alt attribute is required.

So you need to do:

  &lt;input type=&quot;image&quot; alt=&quot;foo bar baz&quot; name=&quot;submit&quot; src=&quot;/images/ui-login.png&quot; class=&quot;submit&quot;/&gt;

I realize that the &quot;Required attributes missing on element input.&quot; message is not very helpful at all and we have made some backend changes to improve the error-reporting for this case. Please test again here:

http://qa-dev.w3.org:8888/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>