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

RE: xml parsing error for < character

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Wed, 6 Sep 2000 15:29:16 -0400
To: <html-tidy@w3.org>
Message-ID: <NBBBICMNIPCICMKJECCBOELIDMAA.jelks@jelks.nu>
Evan Lenz wrote:

> After further review, I dislike option #3.  The W3C advises against
> continuing the practice of "hiding" scripts and stylesheets
> within comments.
> Plus, even though I'm using a comment-aware XML parser, not everyone will
> be.  For XHTML, I think Tidy's best option would be to strip any open and
> close comment delimiters when they are right after the opening tag and
> before the closing tag, respectively, and then replacing them with CDATA
> section delimiters.  Tidy can then issue a warning that the script may not
> work in current browsers and that perhaps the user should include
> the script from another file.
>
> Let's vote! :)

How about ...

	hide-scripts: none
	hide-scripts: comment
	hide-scripts: cdata
	hide-scripts: comment,cdata

and

	escape-script-entities: yes
	escape-script-entities: no

(where "escape-script-entities: yes" means "turn < and & into &lt; and
&amp;).

This way it's entirely user-configurable and nobody gets *too* disgruntled
...


/Jelks
Received on Wednesday, 6 September 2000 15:32:55 GMT

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