<?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>16743</bug_id>
          
          <creation_ts>2012-04-15 16:48:52 +0000</creation_ts>
          <short_desc>button with image and text generates error</short_desc>
          <delta_ts>2015-08-23 07:07:19 +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>Linux</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="Kurt Roeckx">kurt</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>66727</commentid>
    <comment_count>0</comment_count>
    <who name="Kurt Roeckx">kurt</who>
    <bug_when>2012-04-15 16:48:52 +0000</bug_when>
    <thetext>Hi,

I have a
&lt;button&gt;&lt;img src=foo&gt;text&lt;/button&gt;

The validator gives me this error:
An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.

I think the &quot;text&quot; part there make the meaning of the image in the button clear, and shouldn&apos;t need an extra alt tag.


Kurt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66953</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-04-23 20:23:20 +0000</bug_when>
    <thetext>The validator behavior conforms to the HTML5 spec. If you believe the spec should allow &lt;button&gt;&lt;img src=foo&gt;text&lt;/button&gt;, please consider filing a bug against the spec itself: http://w3.org/brief/MjA2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>