Re: tidy26jun99 not preserving JavaScript literals

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 UTC