Skip to content

Commit

Permalink
[acgiow] (0) Remove the rule that says you can use the heading of a s…
Browse files Browse the repository at this point in the history
…ecton as the caption of an image that otherwise lacks alternative text.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9217

git-svn-id: http://svn.whatwg.org/webapps@5026 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 13, 2010
1 parent 8589659 commit dbac5e4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 76 deletions.
30 changes: 6 additions & 24 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -20739,12 +20739,6 @@ <h6 id=a-key-part-of-the-content><span class=secno>4.8.1.1.9 </span>A key part o
contains content other than <a href=#inter-element-whitespace>inter-element
whitespace</a>.</li>

<li>The <code><a href=#the-img-element>img</a></code> element is part of the only
<a href=#paragraph>paragraph</a> directly in its <a href=#concept-section title=concept-section>section</a>, and is the only
<code><a href=#the-img-element>img</a></code> element without an <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute in its section, and its
<a href=#concept-section title=concept-section>section</a> has an associated
heading.</li>

</ul><p class=note>Such cases are to be kept to an absolute
minimum. If there is even the slightest possibility of the author
having the ability to provide real alternative text, then it would
Expand All @@ -20754,23 +20748,17 @@ <h6 id=a-key-part-of-the-content><span class=secno>4.8.1.1.9 </span>A key part o
<div class=example>

<p>A photo on a photo-sharing site, if the site received the
image with no metadata other than the caption:</p>
image with no metadata other than the caption, could be marked up
as follows:</p>

<pre>&lt;figure&gt;
<strong>&lt;img src="1100670787_6a7c664aef.jpg"&gt;</strong>
&lt;figcaption&gt;Bubbles traveled everywhere with us.&lt;/figcaption&gt;
&lt;/figure&gt;</pre>

<p>It could also be marked up like this:</p>

<pre>&lt;article&gt;
&lt;h1&gt;Bubbles traveled everywhere with us.&lt;/h1&gt;
<strong>&lt;img src="1100670787_6a7c664aef.jpg"&gt;</strong>
&lt;/article&gt;</pre>

<p>In either case, though, it would be better if a detailed
description of the important parts of the image obtained from the
user and included on the page.</p>
<p>It would be better, however, if a detailed description of the
important parts of the image obtained from the user and included
on the page.</p>

</div>

Expand Down Expand Up @@ -20970,14 +20958,8 @@ <h6 id=guidance-for-conformance-checkers><span class=secno>4.8.1.1.14 </span>Gui
contains content other than <a href=#inter-element-whitespace>inter-element whitespace</a>
(as <a href=#unknown-images>described above</a>).</li>

<li>The <code><a href=#the-img-element>img</a></code> element is part of the only
<a href=#paragraph>paragraph</a> directly in its <a href=#concept-section title=concept-section>section</a>, and is the only
<code><a href=#the-img-element>img</a></code> element without an <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute in its section, and its
<a href=#concept-section title=concept-section>section</a> has an associated
heading (as <a href=#unknown-images>described above</a>).</li>

<!-- the following are additional entries not included in the
aforementioned list, as they apply only to -->
aforementioned list, as they apply only to conformance checkers -->

<li>The conformance checker has been configured to assume that the
document is an e-mail or document intended for a specific person
Expand Down
30 changes: 6 additions & 24 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -20637,12 +20637,6 @@ of various sizes."&gt;</strong></pre>
contains content other than <a href=#inter-element-whitespace>inter-element
whitespace</a>.</li>

<li>The <code><a href=#the-img-element>img</a></code> element is part of the only
<a href=#paragraph>paragraph</a> directly in its <a href=#concept-section title=concept-section>section</a>, and is the only
<code><a href=#the-img-element>img</a></code> element without an <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute in its section, and its
<a href=#concept-section title=concept-section>section</a> has an associated
heading.</li>

</ul><p class=note>Such cases are to be kept to an absolute
minimum. If there is even the slightest possibility of the author
having the ability to provide real alternative text, then it would
Expand All @@ -20652,23 +20646,17 @@ of various sizes."&gt;</strong></pre>
<div class=example>

<p>A photo on a photo-sharing site, if the site received the
image with no metadata other than the caption:</p>
image with no metadata other than the caption, could be marked up
as follows:</p>

<pre>&lt;figure&gt;
<strong>&lt;img src="1100670787_6a7c664aef.jpg"&gt;</strong>
&lt;figcaption&gt;Bubbles traveled everywhere with us.&lt;/figcaption&gt;
&lt;/figure&gt;</pre>

<p>It could also be marked up like this:</p>

<pre>&lt;article&gt;
&lt;h1&gt;Bubbles traveled everywhere with us.&lt;/h1&gt;
<strong>&lt;img src="1100670787_6a7c664aef.jpg"&gt;</strong>
&lt;/article&gt;</pre>

<p>In either case, though, it would be better if a detailed
description of the important parts of the image obtained from the
user and included on the page.</p>
<p>It would be better, however, if a detailed description of the
important parts of the image obtained from the user and included
on the page.</p>

</div>

Expand Down Expand Up @@ -20868,14 +20856,8 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
contains content other than <a href=#inter-element-whitespace>inter-element whitespace</a>
(as <a href=#unknown-images>described above</a>).</li>

<li>The <code><a href=#the-img-element>img</a></code> element is part of the only
<a href=#paragraph>paragraph</a> directly in its <a href=#concept-section title=concept-section>section</a>, and is the only
<code><a href=#the-img-element>img</a></code> element without an <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute in its section, and its
<a href=#concept-section title=concept-section>section</a> has an associated
heading (as <a href=#unknown-images>described above</a>).</li>

<!-- the following are additional entries not included in the
aforementioned list, as they apply only to -->
aforementioned list, as they apply only to conformance checkers -->

<li>The conformance checker has been configured to assume that the
document is an e-mail or document intended for a specific person
Expand Down
34 changes: 6 additions & 28 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -22032,14 +22032,6 @@ of various sizes."></strong></pre>
contains content other than <span>inter-element
whitespace</span>.</li>

<li>The <code>img</code> element is part of the only
<span>paragraph</span> directly in its <span
title="concept-section">section</span>, and is the only
<code>img</code> element without an <code
title="attr-img-alt">alt</code> attribute in its section, and its
<span title="concept-section">section</span> has an associated
heading.</li>

</ul>

<p class="note">Such cases are to be kept to an absolute
Expand All @@ -22051,23 +22043,17 @@ of various sizes."></strong></pre>
<div class="example">

<p>A photo on a photo-sharing site, if the site received the
image with no metadata other than the caption:</p>
image with no metadata other than the caption, could be marked up
as follows:</p>

<pre>&lt;figure>
<strong>&lt;img src="1100670787_6a7c664aef.jpg"></strong>
&lt;figcaption>Bubbles traveled everywhere with us.&lt;/figcaption>
&lt;/figure></pre>

<p>It could also be marked up like this:</p>

<pre>&lt;article>
&lt;h1>Bubbles traveled everywhere with us.&lt;/h1>
<strong>&lt;img src="1100670787_6a7c664aef.jpg"></strong>
&lt;/article></pre>

<p>In either case, though, it would be better if a detailed
description of the important parts of the image obtained from the
user and included on the page.</p>
<p>It would be better, however, if a detailed description of the
important parts of the image obtained from the user and included
on the page.</p>

</div>

Expand Down Expand Up @@ -22282,16 +22268,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
contains content other than <span>inter-element whitespace</span>
(as <a href="#unknown-images">described above</a>).</li>

<li>The <code>img</code> element is part of the only
<span>paragraph</span> directly in its <span
title="concept-section">section</span>, and is the only
<code>img</code> element without an <code
title="attr-img-alt">alt</code> attribute in its section, and its
<span title="concept-section">section</span> has an associated
heading (as <a href="#unknown-images">described above</a>).</li>

<!-- the following are additional entries not included in the
aforementioned list, as they apply only to -->
aforementioned list, as they apply only to conformance checkers -->

<li>The conformance checker has been configured to assume that the
document is an e-mail or document intended for a specific person
Expand Down

0 comments on commit dbac5e4

Please sign in to comment.