[html5] r998 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri Aug 10 12:55:31 PDT 2007


Author: ianh
Date: 2007-08-10 12:55:29 -0700 (Fri, 10 Aug 2007)
New Revision: 998

Modified:
   index
   source
Log:
[e] (0) Fix various typos with irrelevant=''.

Modified: index
===================================================================
--- index	2007-08-10 02:38:45 UTC (rev 997)
+++ index	2007-08-10 19:55:29 UTC (rev 998)
@@ -6437,8 +6437,8 @@
    attribute specified.
 
   <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>
+   <p>In the following skeletal example, the attribute is used to hide the
+    Web game's main screen until the user logs in:</p>
 
    <pre>  <h1>The Example Game</h1>
   <section id="login">
@@ -6455,29 +6455,17 @@
     }
    </script>
   </section>
-  <section id="game">
+  <section id="game" irrelevant>
    ...
   </section></pre>
+  </div>
 
-   <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><a href="#video1">video</a></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 the following example, an image acts as a surrogate for a video.</p>
 
-   <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>
-
    <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=""
@@ -6492,6 +6480,28 @@
    Playback unavailable.
    <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><a href="#video1">video</a></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).
+
+    <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.
+   </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><a

Modified: source
===================================================================
--- source	2007-08-10 02:38:45 UTC (rev 997)
+++ source	2007-08-10 19:55:29 UTC (rev 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




More information about the Commit-Watchers mailing list