hixie: <math> example. (whatwg r3811)

hixie: <math> example. (whatwg r3811)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2979&r2=1.2980&f=h
http://html5.org/tools/web-apps-tracker?from=3810&to=3811

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2979
retrieving revision 1.2980
diff -u -d -r1.2979 -r1.2980
--- Overview.html 11 Sep 2009 09:51:29 -0000 1.2979
+++ Overview.html 11 Sep 2009 10:01:07 -0000 1.2980
@@ -23632,9 +23632,7 @@
    operator.</li>
 
   </ol></div><h6 id="examples"><span class="secno">4.8.11.1.13 </span>Examples</h6><p><i>This section is non-normative.</i><p>Here is an example of a script that uses canvas to draw pretty
-  glowing lines.</p>
-
-  &lt;pre&gt;&lt;canvas width="800" height="450"&gt;&lt;/canvas&gt;
+  glowing lines.<pre>&lt;canvas width="800" height="450"&gt;&lt;/canvas&gt;
 &lt;script&gt;
 
  var context = document.getElementsByTagName('canvas')[0].getContext('2d');
@@ -23673,7 +23671,7 @@
  }
  setInterval(blank, 40);
 
-&lt;/script&gt;<div class="impl">
+&lt;/script&gt;</pre><div class="impl">
 
   <h5 id="color-spaces-and-color-correction"><span class="secno">4.8.11.2 </span>Color spaces and color correction</h5>
 
@@ -24270,6 +24268,40 @@
   provide a way to export any MathML fragment as a
   namespace-well-formed XML fragment.</p>
 
+  </div><div class="example">
+
+   <p>Here is an example of the use of MathML in an HTML document:</p>
+
+   <pre>&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;The quadratic formula&lt;/title&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;h1&gt;The quadratic formula&lt;/h1&gt;
+  &lt;p&gt;
+   &lt;math&gt;
+    &lt;mi&gt;x&lt;/mi&gt;
+    &lt;mo&gt;=&lt;/mo&gt;
+    &lt;mfrac&gt;
+     &lt;mrow&gt;
+      &lt;mo form="prefix"&gt;&minus;&lt;/mo&gt; &lt;mi&gt;b&lt;/mi&gt;
+      &lt;mo&gt;&plusmn;&lt;/mo&gt;
+      &lt;msqrt&gt;
+       &lt;msup&gt; &lt;mi&gt;b&lt;/mi&gt; &lt;mn&gt;2&lt;/mn&gt; &lt;/msup&gt;
+       &lt;mo&gt;&minus;&lt;/mo&gt;
+       &lt;mn&gt;4&lt;/mn&gt; &lt;mo&gt;&#8290;&lt;/mo&gt; &lt;mi&gt;a&lt;/mi&gt; &lt;mo&gt;&#8290;&lt;/mo&gt; &lt;mi&gt;c&lt;/mi&gt;
+      &lt;/msqrt&gt;
+     &lt;/mrow&gt;
+     &lt;mrow&gt;
+      &lt;mn&gt;2&lt;/mn&gt; &lt;mo&gt;&#8290;&lt;/mo&gt; &lt;mi&gt;a&lt;/mi&gt;
+     &lt;/mrow&gt;
+    &lt;/mfrac&gt;
+   &lt;/math&gt;
+  &lt;/p&gt;
+ &lt;/body&gt;
+&lt;/html&gt;</pre>
+
   </div><h4 id="svg-0"><span class="secno">4.8.16 </span>SVG</h4><p>The <dfn id="svg"><code>svg</code></dfn> element from the <a href="#svg-namespace">SVG
   namespace</a> falls into the <a href="#embedded-content">embedded content</a>,
   <a href="#phrasing-content">phrasing content</a>, and <a href="#flow-content">flow content</a>

Received on Friday, 11 September 2009 10:02:03 UTC