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

Re: tidy26jun99 not preserving JavaScript literals

From: Dave Raggett <dsr@w3.org>
Date: Thu, 1 Jul 1999 17:40:36 +0100 (GMT Daylight Time)
To: Philip Riebold <philip@livenet.ac.uk>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.9907011737160.-284463@hazel.hpl.hp.com>
On Wed, 30 Jun 1999, Philip Riebold wrote:

> If "quote-marks: yes" is in the config file I end up with
> 
> <!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.0
> Transitional//EN&quot;>
> .
> .
> .
>     <A href="http://www.ukerna.ac.uk" onmouseover=
>     "change(&#39;ukerna&#39;, 1);" onmouseout=
>     "change(&#39;ukerna&#39;, 0);">
> 
> (accepted by my browser but not valid HTML)

Actually it is fine (ie perfectly legal) to include entities within
attribute values. Browsers expand the entities before processing the
attribute value.


Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Thursday, 1 July 1999 12:36:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT