W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Re: TIDY doesn't handle asp scripts correctly...instead it misinterprets them

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Wed, 23 Aug 2000 10:24:14 +1200 (NZST)
Message-Id: <200008222224.KAA16857@atlas.otago.ac.nz>
To: a.eibach@gmx.net, rwaki@flipdog.com
Cc: html-tidy@w3.org
"Andreas Eibach" <a.eibach@gmx.net> wrote:
	Mine is that a site URL inside the HTML
	 <a href="http://www.bogus.com/script.asp?p1=1&p2=2&p3=3>
	results in a warning message
	line 1 column xx - Warning: unescaped or unknown entity "&p2"
	line 2 column yy - Warning: unescaped or unknown entity "&p3"
And so it jolly well should.  There *are* entity references &p2 and
&p3 in that attribute value.  They *do* need escaping.  (There is also
a missing closing quotation mark.)  Legal HTML for this is

     <a href="http://www.bogus.com/script.asp?p1=1&amp;p2=2&amp;p3=3">

Attribute value literals allow entity references so that you can get
characters into them that are not otherwise easy to enter (like quotation
marks).  The price of that is that some of the characters you _can_
enter easily need escaping too.
Received on Tuesday, 22 August 2000 18:24:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC