[html5] r5599 - [e] (0) Update the syntax error example in light of changes to the conformance r [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 11 15:32:35 PDT 2010


Author: ianh
Date: 2010-10-11 15:32:31 -0700 (Mon, 11 Oct 2010)
New Revision: 5599

Modified:
   complete.html
   index
   source
Log:
[e] (0) Update the syntax error example in light of changes to the conformance rules.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10743

Modified: complete.html
===================================================================
--- complete.html	2010-10-11 22:12:34 UTC (rev 5598)
+++ complete.html	2010-10-11 22:32:31 UTC (rev 5599)
@@ -2117,15 +2117,15 @@
      are changed to a string that <em>does</em> form a named character
      reference, they will be interpreted as that character instead.</p>
 
-     <p>In this fragment, the attribute's value is "<code title="">?hello=1&world=2</code>":</p>
+     <p>In this fragment, the attribute's value is "<code title="">?bill&ted</code>":</p>
 
-     <pre class=bad><a href="?hello=1&world=2">Demo</a></pre>
+     <pre class=bad><a href="?bill&ted">Bill and Ted</a></pre>
 
      <p>In the following fragment, however, the attribute's value is
-     actually "<code title="">?original=1©=2</code>",
-     <em>not</em> the intended "<code title="">?original=1&copy=2</code>":</p>
+     actually "<code title="">?art©</code>",
+     <em>not</em> the intended "<code title="">?art&copy</code>":</p>
 
-     <pre class=bad><a href="?original=1&copy=2">Compare</a></pre>
+     <pre class=bad><a href="?art&copy">Art and Copy</a></pre>
 
      <p>To avoid this problem, all named character references are
      required to end with a semicolon, and uses of named character
@@ -2134,8 +2134,8 @@
      <p>Thus, the correct way to express the above cases is as
      follows:</p>
 
-     <pre><a href="?hello=1&world=2">Demo</a> <!-- &world is ok, since it's not a named character reference --></pre>
-     <pre><a href="?original=1&amp;copy=2">Compare</a> <!-- the & has to be escaped, since &copy <em>is</em> a named character reference --></pre>
+     <pre><a href="?bill&ted">Bill and Ted</a> <!-- &ted is ok, since it's not a named character reference --></pre>
+     <pre><a href="?art&amp;copy">Art and Copy</a> <!-- the & has to be escaped, since &copy <em>is</em> a named character reference --></pre>
 
     </div>
 

Modified: index
===================================================================
--- index	2010-10-11 22:12:34 UTC (rev 5598)
+++ index	2010-10-11 22:32:31 UTC (rev 5599)
@@ -2094,15 +2094,15 @@
      are changed to a string that <em>does</em> form a named character
      reference, they will be interpreted as that character instead.</p>
 
-     <p>In this fragment, the attribute's value is "<code title="">?hello=1&world=2</code>":</p>
+     <p>In this fragment, the attribute's value is "<code title="">?bill&ted</code>":</p>
 
-     <pre class=bad><a href="?hello=1&world=2">Demo</a></pre>
+     <pre class=bad><a href="?bill&ted">Bill and Ted</a></pre>
 
      <p>In the following fragment, however, the attribute's value is
-     actually "<code title="">?original=1©=2</code>",
-     <em>not</em> the intended "<code title="">?original=1&copy=2</code>":</p>
+     actually "<code title="">?art©</code>",
+     <em>not</em> the intended "<code title="">?art&copy</code>":</p>
 
-     <pre class=bad><a href="?original=1&copy=2">Compare</a></pre>
+     <pre class=bad><a href="?art&copy">Art and Copy</a></pre>
 
      <p>To avoid this problem, all named character references are
      required to end with a semicolon, and uses of named character
@@ -2111,8 +2111,8 @@
      <p>Thus, the correct way to express the above cases is as
      follows:</p>
 
-     <pre><a href="?hello=1&world=2">Demo</a> <!-- &world is ok, since it's not a named character reference --></pre>
-     <pre><a href="?original=1&amp;copy=2">Compare</a> <!-- the & has to be escaped, since &copy <em>is</em> a named character reference --></pre>
+     <pre><a href="?bill&ted">Bill and Ted</a> <!-- &ted is ok, since it's not a named character reference --></pre>
+     <pre><a href="?art&amp;copy">Art and Copy</a> <!-- the & has to be escaped, since &copy <em>is</em> a named character reference --></pre>
 
     </div>
 

Modified: source
===================================================================
--- source	2010-10-11 22:12:34 UTC (rev 5598)
+++ source	2010-10-11 22:32:31 UTC (rev 5599)
@@ -984,16 +984,16 @@
      reference, they will be interpreted as that character instead.</p>
 
      <p>In this fragment, the attribute's value is "<code
-     title="">?hello=1&world=2</code>":</p>
+     title="">?bill&ted</code>":</p>
 
-     <pre class="bad"><a href="?hello=1&world=2">Demo</a></pre>
+     <pre class="bad"><a href="?bill&ted">Bill and Ted</a></pre>
 
      <p>In the following fragment, however, the attribute's value is
-     actually "<code title="">?original=1©=2</code>",
+     actually "<code title="">?art©</code>",
      <em>not</em> the intended "<code
-     title="">?original=1&copy=2</code>":</p>
+     title="">?art&copy</code>":</p>
 
-     <pre class="bad"><a href="?original=1&copy=2">Compare</a></pre>
+     <pre class="bad"><a href="?art&copy">Art and Copy</a></pre>
 
      <p>To avoid this problem, all named character references are
      required to end with a semicolon, and uses of named character
@@ -1002,8 +1002,8 @@
      <p>Thus, the correct way to express the above cases is as
      follows:</p>
 
-     <pre><a href="?hello=1&world=2">Demo</a> <!-- &world is ok, since it's not a named character reference --></pre>
-     <pre><a href="?original=1&amp;copy=2">Compare</a> <!-- the & has to be escaped, since &copy <em>is</em> a named character reference --></pre>
+     <pre><a href="?bill&ted">Bill and Ted</a> <!-- &ted is ok, since it's not a named character reference --></pre>
+     <pre><a href="?art&amp;copy">Art and Copy</a> <!-- the & has to be escaped, since &copy <em>is</em> a named character reference --></pre>
 
     </div>
 




More information about the Commit-Watchers mailing list