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

RE: XML output, 2 errors

From: Evan Lenz <elenz@xyzfind.com>
Date: Mon, 28 Aug 2000 14:46:35 -0700
To: <html-tidy@w3.org>

Additional note:

The HTML input I used to catch error #2 was the source of the Expedia.com
home page, which duplicates the following attribute in multiple cases
througout the document:


The reason I mention this is that, in the event that the duplicate
attributes are style attributes and have different values, Tidy could merge
those definitions.  This is fairly low on my list of requests though.  I am
much more concerned with just getting well-formed XML output.


Evan Lenz
XYZFind Corp. "Building Better Search"

-----Original Message-----
From: html-tidy-request@w3.org [mailto:html-tidy-request@w3.org]On
Behalf Of Evan Lenz
Sent: Monday, August 28, 2000 11:52 AM
To: html-tidy@w3.org
Subject: XML output, 2 errors

Even though I set -asxml, the output was not well-formed.  These are the two
errors I've come across:

1) < and & are not escaped in uncommented blocks of JavaScript
2) duplicate attributes are not removed

Regarding #2, in the event that the values are exactly the same (which was
the case in my work), Tidy should simply delete one of them.  If they are
different, one of the values should be thrown away.  Which?  All but the
first?  (I don't care.)

I'm trying to generate an XSLT stylesheet from HTML input by the user (after
being Tidied).  So far, it works beautifully, except for the two problems
mentioned above.


Evan Lenz
XYZFind Corp. "Building Better Search"
Received on Monday, 28 August 2000 17:44:30 GMT

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