- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 11 Sep 2009 10:01:10 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv31379 Modified Files: Overview.html Log Message: <math> example. (whatwg r3811) Index: Overview.html =================================================================== 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> - - <pre><canvas width="800" height="450"></canvas> + glowing lines.<pre><canvas width="800" height="450"></canvas> <script> var context = document.getElementsByTagName('canvas')[0].getContext('2d'); @@ -23673,7 +23671,7 @@ } setInterval(blank, 40); -</script><div class="impl"> +</script></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><!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 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:01:20 UTC