<?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>25493</bug_id>
          
          <creation_ts>2014-04-28 16:04:34 +0000</creation_ts>
          <short_desc>&lt;img&gt; Are alts not being respected in document outline for things like &lt;h1&gt;&lt;img alt=&quot;Title&quot; src=&quot;path/to/i [...]</short_desc>
          <delta_ts>2019-03-29 20:53:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#phrasing-content</bug_file_loc>
          <status_whiteboard>picture</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>26726</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>d</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104573</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-04-28 16:04:34 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
Multipage: http://www.whatwg.org/C#phrasing-content-0
Complete: http://www.whatwg.org/c#phrasing-content-0
Referrer: 

Comment:
Are alts not being respected in document outline for things like &lt;h1&gt;&lt;img
alt=&quot;Title&quot; src=&quot;path/to/image.jpg&quot;&gt;&lt;/h1&gt;? When a heading contains &lt;img
alt=&quot;Title&quot;&gt;, what do browsers do with the &lt;img&gt; presently? What (if any)
document tells them to use the alt attribute?

Posted from: 206.211.150.84
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104574</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-28 16:58:42 +0000</bug_when>
    <thetext>The spec says what the &quot;img&quot; element represents (the image or its alternative text). If there are browsers or other UAs that don&apos;t implement this correctly, I recommend filing bugs on them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105822</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-05-13 09:09:02 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #1)
&gt; The spec says what the &quot;img&quot; element represents (the image or its
&gt; alternative text).

As far as I can see the spec doesn&apos;t actually yet say that.

Currently it literally just says, &quot;An img element represents an image.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105881</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-13 18:04:22 +0000</bug_when>
    <thetext>Search for &quot;What an img element represents depends on the src attribute and the alt attribute&quot;. The sentence you quote is just the intro to the section. The wording could probably be improved, e.g. to replace &quot;represents&quot; with &quot;allows the author to reference&quot;, or some such. zcorpan, do you want to make that change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105941</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-05-14 07:51:43 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; Search for &quot;What an img element represents depends on the src attribute and
&gt; the alt attribute&quot;.

Ah OK, sorry for missing that. So yeah reading that now I agree that wording is clear and unambiguous.

&gt; The sentence you quote is just the intro to the section.

Right. So maybe a link to the &quot;What an img element represents depends on the src attribute and the alt attribute.&quot; section could be hoisted up to the intro.

That is, replace the current &quot;An img element represents an image.&quot; text with a text that reads, &quot;What an img element represents _depends on the element&apos;s src and alt attributes_.&quot; (hyperlinked part underlined). Or however you want to word it, or whatever part you&apos;d want to make the text of the hyperlink/

&gt; The wording could probably be improved, e.g. to replace &quot;represents&quot; with
&gt; &quot;allows the author to reference&quot;, or some such. zcorpan, do you want to make
&gt; that change?

IMHO I&apos;m not sure replacing the &quot;represents&quot; there with &quot;allows the author to reference&quot; would be an improvement. Myself, I like &quot;represents&quot; just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105999</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-14 21:20:55 +0000</bug_when>
    <thetext>The word &quot;represents&quot; is a term of art. Having two parts of the spec contradict themselves about what the element represents is technically an error.

The thinking behind the current text was that we want to say &quot;img is for images&quot; up front, since saying &quot;img is for text or images&quot; (which is what the spec used to say, actually) is eyebrow-raising. But we need the precise text that says img represents text too, for correctness. So the latter is somewhat buried currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129687</commentid>
    <comment_count>6</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2019-03-29 20:53:25 +0000</bug_when>
    <thetext>It seems like this came to a good conclusion.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>