<?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>9217</bug_id>
          
          <creation_ts>2010-03-08 16:43:35 +0000</creation_ts>
          <short_desc>Remove the Paragraph-Section-Heading loophole for not providing a text alternative.</short_desc>
          <delta_ts>2010-12-07 16:27:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/text-level-semantics.html#unknown-images</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11y_text-alt</keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>8171</dependson>
          <blocked>8716</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Laura Carlson">laura.lee.carlson</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>w3c</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32854</commentid>
    <comment_count>0</comment_count>
    <who name="Laura Carlson">laura.lee.carlson</who>
    <bug_when>2010-03-08 16:43:35 +0000</bug_when>
    <thetext>SPEC SECTION:

Images whose contents are not known [1] 

BUG DESCRIPTION:

The third bullet: &quot;The img element is part of the only paragraph directly in its section, and is the only img element without an alt attribute in its section, and its section has an associated heading&quot; seems to be an unnecessary loophole for not providing a text alternative as well as unnecessarily complex for tools and authors.

Is there any rationale for this loophole?

Please remove this exception. 

REFERENCES:

http://dev.w3.org/html5/spec/text-level-semantics.html#unknown-images [1]

HTML5 ISSUE AND CHANGE PROPOSAL:

This is associated with HTML TRACKER ISSUE-31 
http://www.w3.org/html/wg/tracker/issues/31

Change Proposal: Replace img Guidance for Conformance Checkers:
http://www.w3.org/html/wg/wiki/ChangeProposals/ImgElement20090126</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33784</commentid>
    <comment_count>1</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-23 06:20:43 +0000</bug_when>
    <thetext>Requesting expedited processing of this bug on behalf of the HTML WG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33793</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-03-23 09:38:48 +0000</bug_when>
    <thetext>The idea here is that this should be conforming (if generated by a photo album site):

   &lt;section&gt;
    &lt;h1&gt;My ducks&lt;/h1&gt;
    &lt;img src=&quot;photo001.jpeg&quot;&gt;
   &lt;/section&gt;

...in the same way that this is:

   &lt;figure&gt;
    &lt;figcaption&gt;My ducks&lt;/figcaption&gt;
    &lt;img src=&quot;photo001.jpeg&quot;&gt;
   &lt;/figure&gt;

...or this is:

   &lt;img src=&quot;photo001.jpeg&quot; title=&quot;My ducks&quot;&gt;

...because they all essentially have the same semantics: an image with a label.

Why would this be bad?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33794</commentid>
    <comment_count>3</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-23 09:42:00 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; The idea here is that this should be conforming (if generated by a photo album
&gt; site):
&gt; 
&gt;    &lt;section&gt;
&gt;     &lt;h1&gt;My ducks&lt;/h1&gt;
&gt;     &lt;img src=&quot;photo001.jpeg&quot;&gt;
&gt;    &lt;/section&gt;
&gt; 
&gt; ...in the same way that this is:
&gt; 
&gt;    &lt;figure&gt;
&gt;     &lt;figcaption&gt;My ducks&lt;/figcaption&gt;
&gt;     &lt;img src=&quot;photo001.jpeg&quot;&gt;
&gt;    &lt;/figure&gt;
&gt; 
&gt; ...or this is:
&gt; 
&gt;    &lt;img src=&quot;photo001.jpeg&quot; title=&quot;My ducks&quot;&gt;
&gt; 
&gt; ...because they all essentially have the same semantics: an image with a label.
&gt; 
&gt; Why would this be bad?

Why the allowance for &quot;is part of the only paragraph&quot; instead of &quot;is the sole content of the only paragraph&quot;?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33795</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-03-23 09:47:04 +0000</bug_when>
    <thetext>Well in none of the above examples is it the only thing in the paragraph, for example. They all have whitespace. But I could make it have to be the only non-whitespace content in the paragraph if that would satisfy the concern here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33797</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-23 09:53:01 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Well in none of the above examples is it the only thing in the paragraph, for
&gt; example. They all have whitespace. But I could make it have to be the only
&gt; non-whitespace content in the paragraph if that would satisfy the concern here.

I don&apos;t know if it would satisfy Laura&apos;s concern fully, but I am curious what the use case for that is, if any. It seems like a bad feature to allow non-whitespace content in the paragraph, since that way you could have a single-paragraph section with an embedded image (perhaps floated), and then the validator would not catch the error that you forgot to omit alt. It is likely that in such a case, the section heading would not be a good text alternative for the image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33798</commentid>
    <comment_count>6</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-23 09:56:15 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt;
&gt; I don&apos;t know if it would satisfy Laura&apos;s concern fully, but I am curious what
&gt; the use case for that is, if any. It seems like a bad feature to allow
&gt; non-whitespace content in the paragraph, since that way you could have a
&gt; single-paragraph section with an embedded image (perhaps floated), and then the
&gt; validator would not catch the error that you forgot to omit alt. It is likely
&gt; that in such a case, the section heading would not be a good text alternative
&gt; for the image.

Er, I meant to say &quot;forgot to include alt&quot; rather than &quot;forgot to omit&quot;.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33885</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-03-25 01:07:37 +0000</bug_when>
    <thetext>Laura, please clarify if the suggestion above would satisfy your request. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34367</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-04-02 01:38:50 +0000</bug_when>
    <thetext>Laura?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34736</commentid>
    <comment_count>9</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-04-11 11:16:54 +0000</bug_when>
    <thetext>I discussed this some with Mike Smith, from the perspective of implementing this rule in validator.nu, and also the perspective of implementing the corresponding accessibility code in WebKit to associate this kind of caption with. Our conclusions:

1) It&apos;s pretty hard to implement the rule (either the original version or the modified &quot;only non-whitespace content in the only paragraph&quot; variant) in a validator - it is quite complicated and unlike anything else the validator does. You pretty much have to implement the full HTML5 outline algorithm rule to handle this one exemption to the alt requirements.

2) For similar reasons, it would be hard to implement the corresponding code in a browser engine&apos;s accessibility mappings. WebKit currently has no foreseeable reason to implement the outline algorithm, but would need to do so solely to determine what is &quot;the sole paragraph in a section&quot;.

3) Even if this really tricky code was written in validators and browser engines, it would likely be buggy because the rule is complicated to handle correctly.

4) The use case for this exception is adequately handled by &lt;figure&gt;.

Therefore, I think it would be best to remove this case from the set of conditions where omitting alt is allowed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34903</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-04-13 08:33:24 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: The complexity argument is a fair one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34904</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-04-13 08:34:32 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5026.
Check-in comment: Remove the rule that says you can use the heading of a secton as the caption of an image that otherwise lacks alternative text.
http://html5.org/tools/web-apps-tracker?from=5025&amp;to=5026</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37612</commentid>
    <comment_count>12</comment_count>
    <who name="Laura Carlson">laura.lee.carlson</who>
    <bug_when>2010-08-18 13:08:35 +0000</bug_when>
    <thetext>Thanks for removing this exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43139</commentid>
    <comment_count>13</comment_count>
    <who name="Martin Kliehm">w3c</who>
    <bug_when>2010-12-07 16:27:52 +0000</bug_when>
    <thetext>Since this bug is verified closed, the bug-triage sub-team doesn&apos;t think it&apos;s accessibility task force priority any longer.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>