- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 11 Oct 2010 22:32:44 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv15130 Modified Files: Overview.html Log Message: Update the syntax error example in light of changes to the conformance rules. (whatwg r5599) Index: Overview.html =================================================================== 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:32:45 UTC