[html5] r3811 - [e] (0) <math> example.
whatwg at whatwg.org
whatwg at whatwg.org
Fri Sep 11 03:05:48 PDT 2009
Author: ianh
Date: 2009-09-11 03:05:47 -0700 (Fri, 11 Sep 2009)
New Revision: 3811
Modified:
index
source
Log:
[e] (0) <math> example.
Modified: index
===================================================================
--- index 2009-09-11 09:56:09 UTC (rev 3810)
+++ index 2009-09-11 10:05:47 UTC (rev 3811)
@@ -26682,7 +26682,7 @@
<p>Here is an example of a script that uses canvas to draw pretty
glowing lines.</p>
- <pre><canvas width="800" height="450"></canvas>
+ <pre><canvas width="800" height="450"></canvas>
<script>
var context = document.getElementsByTagName('canvas')[0].getContext('2d');
@@ -26721,7 +26721,7 @@
}
setInterval(blank, 40);
-</script>
+</script></pre>
@@ -27394,7 +27394,44 @@
</div>
+ <div class=example>
+ <p>Here is an example of the use of MathML in an HTML document:</p>
+
+ <pre><!DOCTYPE html>
+<html>
+ <head>
+ <title>The quadratic formula</title>
+ </head>
+ <body>
+ <h1>The quadratic formula</h1>
+ <p>
+ <math>
+ <mi>x</mi>
+ <mo>=</mo>
+ <mfrac>
+ <mrow>
+ <mo form="prefix">−</mo> <mi>b</mi>
+ <mo>±</mo>
+ <msqrt>
+ <msup> <mi>b</mi> <mn>2</mn> </msup>
+ <mo>−</mo>
+ <mn>4</mn> <mo></mo> <mi>a</mi> <mo></mo> <mi>c</mi>
+ </msqrt>
+ </mrow>
+ <mrow>
+ <mn>2</mn> <mo></mo> <mi>a</mi>
+ </mrow>
+ </mfrac>
+ </math>
+ </p>
+ </body>
+</html></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
Modified: source
===================================================================
--- source 2009-09-11 09:56:09 UTC (rev 3810)
+++ source 2009-09-11 10:05:47 UTC (rev 3811)
@@ -29331,7 +29331,7 @@
<p>Here is an example of a script that uses canvas to draw pretty
glowing lines.</p>
- <pre><canvas width="800" height="450"></canvas>
+ <pre><canvas width="800" height="450"></canvas>
<script>
var context = document.getElementsByTagName('canvas')[0].getContext('2d');
@@ -30193,7 +30193,44 @@
</div>
+ <div class="example">
+ <p>Here is an example of the use of MathML in an HTML document:</p>
+
+ <pre><!DOCTYPE html>
+<html>
+ <head>
+ <title>The quadratic formula</title>
+ </head>
+ <body>
+ <h1>The quadratic formula</h1>
+ <p>
+ <math>
+ <mi>x</mi>
+ <mo>=</mo>
+ <mfrac>
+ <mrow>
+ <mo form="prefix">−</mo> <mi>b</mi>
+ <mo>±</mo>
+ <msqrt>
+ <msup> <mi>b</mi> <mn>2</mn> </msup>
+ <mo>−</mo>
+ <mn>4</mn> <mo>⁢</mo> <mi>a</mi> <mo>⁢</mo> <mi>c</mi>
+ </msqrt>
+ </mrow>
+ <mrow>
+ <mn>2</mn> <mo>⁢</mo> <mi>a</mi>
+ </mrow>
+ </mfrac>
+ </math>
+ </p>
+ </body>
+</html></pre>
+
+ </div>
+
+
+
<h4>SVG</h4>
<p>The <dfn><code>svg</code></dfn> element from the <span>SVG
More information about the Commit-Watchers
mailing list