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

Re: tidy and JavaScript

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 19 Sep 2001 16:26:13 +0200
To: Ignacio Vazquez-Abrams <ignacio@openservices.net>
Cc: "'html-tidy@w3.org'" <html-tidy@w3.org>
Message-ID: <5l4gqt489nlubrq3vgmkb3os341v7udq5v@4ax.com>
* Ignacio Vazquez-Abrams wrote:
>On Tue, 18 Sep 2001, Schrader Wolfgang OI43 wrote:
>
>> I tried tidy together with ultraedit (www.ultraedit.com)
>> and attach the source and the error list.

I wonder where you got the localized version of HTML Tidy from. I always
wanted to provide localized error messages, but I never had time to do
it and the current implementation of general localization makes it not
very easy to implement different languages into HTML Tidy (_and_
maintaining the source).

>> Zeile 246 Spalte 0 - Warnung: '<' + '/' + Buchstabe ist hier nicht
>> zugelassen
>
>'<' should be encoded as '&lt;' in JavaScript.

No! In HTML <script> is CDATA. CDATA elements are closed by the first
occurence of '<' + '/' + Letter, thus this sequence has to be split up
e.g. by escaping the '/', i.e. document.write("<\/p>") instead of
document.write("</p>").
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Wednesday, 19 September 2001 10:27:23 GMT

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