hixie: More <meter> examples. (whatwg r4087)

hixie: More <meter> examples. (whatwg r4087)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3245&r2=1.3246&f=h
http://html5.org/tools/web-apps-tracker?from=4086&to=4087

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3245
retrieving revision 1.3246
diff -u -d -r1.3245 -r1.3246
--- Overview.html 6 Oct 2009 02:18:17 -0000 1.3245
+++ Overview.html 6 Oct 2009 02:52:03 -0000 1.3246
@@ -15366,7 +15366,7 @@
   and maximum values, and the relationship between the actual value
   and the three regions of the gauge.</p>
 
-  <div class="example">
+  </div><div class="example">
    <p>The following markup:</p>
    <pre>&lt;h3&gt;Suggested groups&lt;/h3&gt;
 &lt;menu type="toolbar"&gt;
@@ -15393,19 +15393,16 @@
 &lt;/ul&gt;</pre>
    <p>Might be rendered as follows:</p>
    <p><img alt="With the <meter> elements rendered as inline green bars of varying lengths." src="images/sample-meter.png"></p>
-  </div>
-
-  <p>User agents may combine the value of the <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute and the other attributes
-  to provide context-sensitive help or inline text detailing the
-  actual values.</p>
-
-  <div class="example">
+  </div><p>User agents <span class="impl">may</span> combine the value of
+  the <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute and the other
+  attributes to provide context-sensitive help or inline text
+  detailing the actual values.<div class="example">
    <p>For example, the following snippet:</p>
    <pre>&lt;meter min=0 max=60 value=23.2 title=seconds&gt;&lt;/meter&gt;</pre>
    <p>...might cause the user agent to display a gauge with a tooltip
    saying "Value: 23.2 out of 60." on one line and "seconds" on a
    second line.</p>
-  </div>
+  </div><div clas="impl">
 
   <p>The <dfn id="dom-meter-min" title="dom-meter-min"><code>min</code></dfn>, <dfn id="dom-meter-max" title="dom-meter-max"><code>max</code></dfn>, <dfn id="dom-meter-value" title="dom-meter-value"><code>value</code></dfn>, <dfn id="dom-meter-low" title="dom-meter-low"><code>low</code></dfn>, <dfn id="dom-meter-high" title="dom-meter-high"><code>high</code></dfn>, and <dfn id="dom-meter-optimum" title="dom-meter-optimum"><code>optimum</code></dfn> IDL attributes
   must <a href="#reflect">reflect</a> the respective content attributes of the
@@ -15413,6 +15410,18 @@
   attributes must return zero. The value parsed from the
   <code>textContent</code> never affects the DOM values.</p>
 
+  </div><div class="example">
+
+   <p>The following example shows how a gauge could fall back to
+   localized or pretty-printed text. The attributes have to be used in
+   this case, since the localized or pretty-printed numbers might not
+   match the simple expected syntax.</p>
+
+   <pre>&lt;p&gt;Disk usage: &lt;meter min=0 value=170261928 max=233257824&gt;170&thinsp;261&thinsp;928 bytes used
+out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;
+
+ &lt;/p&gt;</pre>
+
   </div><h4 id="the-ruby-element"><span class="secno">4.6.20 </span>The <dfn><code>ruby</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Working draft</i><dl class="element"><dt>Categories</dt>
    <dd><a href="#flow-content">Flow content</a>.</dd>
    <dd><a href="#phrasing-content">Phrasing content</a>.</dd>
@@ -67796,6 +67805,7 @@
   Edward Welbourne,
   Edward Z. Yang,
   Eira Monstad,
+  Elliott Sprehn,
   Elliotte Harold,
   Eric Carlson,
   Eric Law,

Received on Tuesday, 6 October 2009 02:52:50 UTC