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

RE: Bug report: LINK tag not well-formed in output

From: Evan Lenz <elenz@xyzfind.com>
Date: Wed, 6 Sep 2000 12:31:07 -0700
To: <html-tidy@w3.org>

I stand corrected; it should be just character data, which I'm just fine
with.  All I want for Christmas is well-formedness.


Evan Lenz
XYZFind Corp. "Building Better Search"

-----Original Message-----
From: html-tidy-request@w3.org [mailto:html-tidy-request@w3.org]On
Behalf Of Bjoern Hoehrmann
Sent: Wednesday, September 06, 2000 12:06 PM
To: Evan Lenz
Cc: html-tidy@w3.org
Subject: Re: Bug report: LINK tag not well-formed in output

* "Evan Lenz" <elenz@xyzfind.com> wrote:
| In testing my servlet which uses Tidy before doing XSLT processing, I've
| been uploading copies of various HTML pages on the Internet.
| This code:
| <LINK REL="stylesheet"
| HREF="http://www.thestreet.com/tsc/common/stylesheets/global.css"
| TYPE="text/css">
| </STYLE>
| Resulted in (XHTML mode):

<style type="text/css">
| <LINK REL="stylesheet"
| HREF="http://www.thestreet.com/tsc/common/stylesheets/global.css"
| TYPE="text/css">

The input is valid, style data is CDATA. In XHTML it's PCDATA.

I think Tidy has to assume, that the input code is close to be perfect, so
can do two things:

 * encode occurences of < and & into &lt; and &amp; or
 * wrap the style data into <![CDATA[]]>

Any other action (besides reporting an error) isn't appropriate in my
The input is valid HTML, so there aren't errors tidy has to correct. The
tidy does in your case is conversion between HTML and XHTML syntax rules, so
one of the above actions (the latter is recommended in XHTML/1.0) should

What you want and what you've meant with your code isn't the right thing to

Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote +{i}
Received on Wednesday, 6 September 2000 15:28:33 UTC

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