<?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>13318</bug_id>
          
          <creation_ts>2011-07-21 16:52:59 +0000</creation_ts>
          <short_desc>Input of type image gives &quot;attribute value not allowed&quot; error on tag end character</short_desc>
          <delta_ts>2015-08-23 07:07:36 +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>other</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="Andy S">andy719</reporter>
          <assigned_to name="Michael[tm] Smith">mike</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>51347</commentid>
    <comment_count>0</comment_count>
    <who name="Andy S">andy719</who>
    <bug_when>2011-07-21 16:52:59 +0000</bug_when>
    <thetext>The following snippet of an image input does not validate:

&lt;input type=&quot;image&quot; src=&quot;/images/searchbutton.gif&quot; id=&quot;searchsubmit&quot; value=&quot;Search&quot; alt=&quot;Search&quot; class=&quot;search-button&quot; /&gt;


The error specified is:

Line 36, Column 121: Attribute value not allowed on element input at this point.

ton.gif&quot; id=&quot;searchsubmit&quot; value=&quot;Search&quot; alt=&quot;Search&quot; class=&quot;search-button&quot; /&gt;


The &quot;attribute value&quot; highlighted is the tag end character (&quot;&gt;&quot;).

Other types of inputs validate in the same place. The snippet validates in XHTML, and, AFAIK, contains no illegal or malformed attributes.

Probably not relevant, but:
OS: Windows 7
Browser: Firefox 5.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51736</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-07-29 08:41:40 +0000</bug_when>
    <thetext>The error message is correct; the &quot;value&quot; attribute is not allowed on the input element when its type is &quot;image&quot;:

  http://dev.w3.org/html5/spec/number-state.html#image-button-state

See the &quot;Bookkeeping details&quot; section -- in particular this part:

  &quot;The element&apos;s value attribute must be omitted.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51935</commentid>
    <comment_count>2</comment_count>
    <who name="Andy S">andy719</who>
    <bug_when>2011-08-01 22:42:11 +0000</bug_when>
    <thetext>Thanks for clarifying; I was misinterpreting the error message. I think it&apos;s a little confusing, as attributes have values. Thus, I parsed it as &quot;Attribute value not allowed on element &apos;input&apos; at this point.&quot; instead of &quot;Attribute &apos;value&apos; not allowed on element &apos;input&apos; at this point.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>