[html5] r4536 - [e] (0) Add an example for CDATA sections. Fixing http://www.w3.org/Bugs/Public/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 7 00:16:01 PST 2010


Author: ianh
Date: 2010-01-07 00:15:58 -0800 (Thu, 07 Jan 2010)
New Revision: 4536

Modified:
   complete.html
   index
   source
   vocabs-index
Log:
[e] (0) Add an example for CDATA sections.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8607

Modified: complete.html
===================================================================
--- complete.html	2010-01-07 07:23:22 UTC (rev 4535)
+++ complete.html	2010-01-07 08:15:58 UTC (rev 4536)
@@ -69196,7 +69196,24 @@
   SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E GREATER-THAN
   SIGN (<code title="">]]></code>).</p>
 
+  <div class=example>
 
+   <p>CDATA sections can only be used in foreign content (MathML or
+   SVG). In this example, a CDATA section is used to escape the
+   contents of an <code>ms</code> element:</p>
+
+   <pre><p>You can add a string to a number, but this stringifies the number:</p>
+<math>
+ <ms><![CDATA[x<y]]></ms>
+ <mo>+</mo>
+ <mn>3</mn>
+ <mo>=</mo>
+ <ms><![CDATA[x<y3]]></ms>
+</math></pre>
+
+  </div>
+
+
   <h4 id=comments><span class=secno>11.1.6 </span>Comments</h4>
 
   <p><dfn id=syntax-comments title=syntax-comments>Comments</dfn> must start with the

Modified: index
===================================================================
--- index	2010-01-07 07:23:22 UTC (rev 4535)
+++ index	2010-01-07 08:15:58 UTC (rev 4536)
@@ -60823,7 +60823,24 @@
   SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E GREATER-THAN
   SIGN (<code title="">]]></code>).</p>
 
+  <div class=example>
 
+   <p>CDATA sections can only be used in foreign content (MathML or
+   SVG). In this example, a CDATA section is used to escape the
+   contents of an <code>ms</code> element:</p>
+
+   <pre><p>You can add a string to a number, but this stringifies the number:</p>
+<math>
+ <ms><![CDATA[x<y]]></ms>
+ <mo>+</mo>
+ <mn>3</mn>
+ <mo>=</mo>
+ <ms><![CDATA[x<y3]]></ms>
+</math></pre>
+
+  </div>
+
+
   <h4 id=comments><span class=secno>9.1.6 </span>Comments</h4>
 
   <p><dfn id=syntax-comments title=syntax-comments>Comments</dfn> must start with the

Modified: source
===================================================================
--- source	2010-01-07 07:23:22 UTC (rev 4535)
+++ source	2010-01-07 08:15:58 UTC (rev 4536)
@@ -78901,7 +78901,24 @@
   SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E GREATER-THAN
   SIGN (<code title="">]]></code>).</p>
 
+  <div class="example">
 
+   <p>CDATA sections can only be used in foreign content (MathML or
+   SVG). In this example, a CDATA section is used to escape the
+   contents of an <code>ms</code> element:</p>
+
+   <pre><p>You can add a string to a number, but this stringifies the number:</p>
+<math>
+ <ms><![CDATA[x<y]]></ms>
+ <mo>+</mo>
+ <mn>3</mn>
+ <mo>=</mo>
+ <ms><![CDATA[x<y3]]></ms>
+</math></pre>
+
+  </div>
+
+
   <h4>Comments</h4>
 
   <p><dfn title="syntax-comments">Comments</dfn> must start with the

Modified: vocabs-index
===================================================================
--- vocabs-index	2010-01-07 07:23:22 UTC (rev 4535)
+++ vocabs-index	2010-01-07 08:15:58 UTC (rev 4536)
@@ -47,7 +47,7 @@
 
   <header class="head"><p><a class="logo" href="http://www.whatwg.org/" rel="home"><img alt="WHATWG" src="/images/logo"></a></p>
    <hgroup><h1>Microdata Vocabularies: vCard, vEvent, and works</h1>
-    <h2 class="no-num no-toc">Draft Standard — 6 January 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 7 January 2010</h2>
    </hgroup><p>You can take part in this work. <a href="http://www.whatwg.org/mailing-list">Join the working group's discussion list.</a></p>
    <dl><dt>This specification:</dt>
     <dd><a href="http://www.whatwg.org/specs/web-apps/current-work/">http://www.whatwg.org/specs/web-apps/current-work/</a></dd>




More information about the Commit-Watchers mailing list