- From: poot <cvsmail@w3.org>
- Date: Tue, 12 Oct 2010 07:32:58 +0900 (JST)
- To: public-html-diffs@w3.org
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&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 @@ -1806,8 +1806,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>
Received on Monday, 11 October 2010 22:33:29 UTC