W3C home > Mailing lists > Public > public-html-diffs@w3.org > October 2010

hixie: Update the syntax error example in light of changes to the conformance rules. (whatwg r5599)

From: poot <cvsmail@w3.org>
Date: Tue, 12 Oct 2010 07:32:58 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20101011223258.4FC4B2BCBC@toro.w3.mag.keio.ac.jp>
hixie: Update the syntax error example in light of changes to the
conformance rules. (whatwg r5599)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4476&r2=1.4477&f=h
http://html5.org/tools/web-apps-tracker?from=5598&to=5599

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4476
retrieving revision 1.4477
diff -u -d -r1.4476 -r1.4477
--- Overview.html	11 Oct 2010 22:12:40 -0000	1.4476
+++ Overview.html	11 Oct 2010 22:32:40 -0000	1.4477
@@ -1789,15 +1789,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&amp;world=2</code>":</p>
+     <p>In this fragment, the attribute's value is "<code title="">?bill&amp;ted</code>":</p>
 
-     <pre class="bad">&lt;a href="?hello=1&amp;world=2"&gt;Demo&lt;/a&gt;</pre>
+     <pre class="bad">&lt;a href="?bill&amp;ted"&gt;Bill and Ted&lt;/a&gt;</pre>
 
      <p>In the following fragment, however, the attribute's value is
-     actually "<code title="">?original=1&copy;=2</code>",
-     <em>not</em> the intended "<code title="">?original=1&amp;copy=2</code>":</p>
+     actually "<code title="">?art&copy;</code>",
+     <em>not</em> the intended "<code title="">?art&amp;copy</code>":</p>
 
-     <pre class="bad">&lt;a href="?original=1&amp;copy=2"&gt;Compare&lt;/a&gt;</pre>
+     <pre class="bad">&lt;a href="?art&amp;copy"&gt;Art and Copy&lt;/a&gt;</pre>
 
      <p>To avoid this problem, all named character references are
      required to end with a semicolon, and uses of named character
@@ -1806,8 +1806,8 @@
      <p>Thus, the correct way to express the above cases is as
      follows:</p>
 
-     <pre>&lt;a href="?hello=1&amp;world=2"&gt;Demo&lt;/a&gt; &lt;!-- &amp;world is ok, since it's not a named character reference --&gt;</pre>
-     <pre>&lt;a href="?original=1&amp;amp;copy=2"&gt;Compare&lt;/a&gt; &lt;!-- the &amp; has to be escaped, since &amp;copy <em>is</em> a named character reference --&gt;</pre>
+     <pre>&lt;a href="?bill&amp;ted"&gt;Bill and Ted&lt;/a&gt; &lt;!-- &amp;ted is ok, since it's not a named character reference --&gt;</pre>
+     <pre>&lt;a href="?art&amp;amp;copy"&gt;Art and Copy&lt;/a&gt; &lt;!-- the &amp; has to be escaped, since &amp;copy <em>is</em> a named character reference --&gt;</pre>
 
     </div>
Received on Monday, 11 October 2010 22:33:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:11 UTC