Short URL: http://html5.org/r/998
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 998 | Fix various typos with irrelevant=''. | 2007-08-10 19:55 |
Index: source
===================================================================
--- source (revision 997)
+++ source (revision 998)
@@ -5062,7 +5062,7 @@
<div class="example">
<p>In the following skeletal example, the attribute is used to hide
- the a Web game until the user logs in:</p>
+ the Web game's main screen until the user logs in:</p>
<pre> <h1>The Example Game</h1>
<section id="login">
@@ -5079,31 +5079,20 @@
}
</script>
</section>
- <section id="game">
+ <section id="game" irrelevant>
...
</section></pre>
- <p>In the following example, an image acts as a surrogate for an
- video. When the image is clicked, it tries to load the video (and
- disables the playback button). If the load succeeds enough that a
- frame of data has been downloaded, the <code>video</code> element
- hides the surrogate image and shows the video instead, along with
- its controls, and turns on autoplay (so that the video will
- commence playback as soon as enough of it is loaded). If the load
- fails for any reason, the video and the surrogate frame are both
- hidden (by hiding the paragraph element containing them both), and
- the following paragraph is shown instead, with its unhelpful error
- message and potentially helpful link to download the video
- directly.</p>
+ </div>
- <p>In legacy user agents, the surrogate image would show (though
- clicking it would have no effect) and the link to the video would
- be present (allowing the video to be viewed in another
- application).</p>
+ <div>
+ <p>In the following example, an image acts as a surrogate for a
+ video.</p>
+
<pre> <p>
<input type="image" src="frame.png" alt="Play Video"
- onclick=" nextSibling.load();
+ onclick=" if (nextSibling.load) nextSibling.load();
disabled = true;
return false;"
><video src="video.ogg" controls="" irrelevant=""
@@ -5119,8 +5108,33 @@
<a href="video.ogg">Download Video</a>
</p></pre>
+ <p>When the image is clicked, the script tries to load the video
+ (and disables the playback button).</p>
+
+ <ul>
+
+ <li><p>If the load succeeds enough that a frame of data has been
+ downloaded, the <code>video</code> element hides the surrogate
+ image and shows the video instead, along with its controls, and
+ turns on autoplay (so that the video will commence playback as
+ soon as enough of it is loaded).</p></li>
+
+ <li><p>If the load fails for any reason, the video and the
+ surrogate frame are both hidden (by hiding the paragraph element
+ containing them both), and the next paragraph is shown instead,
+ with its unhelpful error message and potentially helpful link to
+ download the video directly.</p></li>
+
+ </ul>
+
+ <p>In legacy user agents, the surrogate image would show —
+ though clicking it would have no effect — and the link to the
+ video would be present, allowing the video to be viewed in another
+ application.</p>
+
</div>
+
<p>The <code title="attr-irrelevant">irrelevant</code> attribute
must not be used to hide content that could legitimately be shown in
another presentation. For example, it is incorrect to use <code