W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2009

html5/spec Overview.html,1.3245,1.3246

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 06 Oct 2009 02:52:07 +0000
To: public-html-commits@w3.org
Message-Id: <E1Mv09n-0004Ds-D6@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv16218

Modified Files:
	Overview.html 
Log Message:
More <meter> examples. (whatwg r4087)

Index: Overview.html
===================================================================
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:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 6 October 2009 02:52:11 GMT