- From: poot <cvsmail@w3.org>
- Date: Thu, 05 May 2011 22:53:35 -0400
- To: public-html-diffs@w3.org
mike: Fixed assertions for alt-less img.
http://dev.w3.org/cvsweb/html5/markup/spec.html?r1=1.315&r2=1.316&f=h
===================================================================
RCS file: /sources/public/html5/markup/Makefile,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- Makefile 30 Apr 2011 11:35:31 -0000 1.119
+++ Makefile 6 May 2011 02:48:10 -0000 1.120
@@ -128,6 +128,7 @@
--param show-content-models $(SHOW_CONTENT_MODELS) \
tools/generate-spec-source.xsl $< \
| $(PERL) $(PERLFLAGS) -pi -e 's|(Use CSS instead). (http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes)|<a href="$$2">$$1</a>.|g' \
+ | $(PERL) $(PERLFLAGS) -pi -e 'undef $$/; s|(guidance\s+on\s+providing\s+text\s+alternatives\s+for\s+images).\s+(http://www.w3.org/wiki/HTML/Usage/TextAlternatives)|<a href="$$2">$$1</a>.|g' \
| $(PERL) $(PERLFLAGS) -pi -e 's|(meta extensions). <(http://wiki.whatwg.org/wiki/MetaExtensions)>|<a href="$$2">$$1</a>.|g' \
| $(PERL) $(PERLFLAGS) -pi -e 's|d:string ""|"" <span class="attr-qualifier">(empty string)</span> <span class="postfix or">or</span> <a href="#syntax-attr-empty">empty</a>|g' \
| $(PERL) $(PERLFLAGS) -pi -e 's|d:string||g' \
Index: img.html
===================================================================
RCS file: /sources/public/html5/markup/img.html,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- img.html 5 May 2011 18:12:00 -0000 1.102
+++ img.html 6 May 2011 02:48:11 -0000 1.103
@@ -144,8 +144,10 @@
</h2>
<ul class="assertions">
<li><span>
- Element <span class="element">img</span> is missing required
- attribute <span class="attribute">alt</span>.
+ An <span class="element">img</span> element must have an
+ <span class="attribute">alt</span> attribute, except under
+ certain conditions. For details,
+ consult <a href="http://www.w3.org/wiki/HTML/Usage/TextAlternatives">guidance on providing text alternatives for images</a>.
</span></li>
<li><span>
The element <span class="element">img</span>
Index: spec.html
===================================================================
RCS file: /sources/public/html5/markup/spec.html,v
retrieving revision 1.315
retrieving revision 1.316
diff -u -d -r1.315 -r1.316
--- spec.html 5 May 2011 18:12:04 -0000 1.315
+++ spec.html 6 May 2011 02:48:11 -0000 1.316
@@ -10037,8 +10037,10 @@
</h2>
<ul class="assertions">
<li><span>
- Element <span class="element">img</span> is missing required
- attribute <span class="attribute">alt</span>.
+ An <span class="element">img</span> element must have an
+ <span class="attribute">alt</span> attribute, except under
+ certain conditions. For details,
+ consult <a href="http://www.w3.org/wiki/HTML/Usage/TextAlternatives">guidance on providing text alternatives for images</a>.
</span></li>
<li><span>
The element <span class="element">img</span>
Received on Friday, 6 May 2011 02:53:36 UTC