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

Re: Unrecognized tag parsing problem

From: Gary L Peskin <garyp@firstech.com>
Date: Fri, 17 Aug 2001 08:19:10 -0700
Message-ID: <3B7D35EE.F087B3BB@firstech.com>
To: Oleg Tretyak <olegt@psoft.net>
CC: html-tidy@w3.org
The next version of HTML Tidy will feature a "force output" option that
will force Tidy to continue even when it finds errors.  In the meantime,
you can change line 1228 of Tidy.java from 

  if (!configuration.OnlyErrors && lexer.errors == 0)

to

  if (!configuration.OnlyErrors)

That should do the trick.

Gary


Oleg Tretyak wrote:
> 
>  Hello !
>  I'm trying to use the Tidy package ( Ver. 04aug2000r7-dev )  and want to
> parse HTML documents with invalid tags (e.g <LEFT> .... </LEFT>) . The
> .parseDOM method fails to parse such documents. How can I do this without
> fixing sourc
> e HTML files ?
>  Error Message : "line 9 column 267 - Error: <left> is not recognized!
> This document has errors that must be fixed before
> using HTML Tidy to generate a tidied up version."
> 
>  Thank you in advance !
>  Olegt.
> 
> P.S  I tried to use the  TableTag.defineBlockTag method, but  failed ...
Received on Friday, 17 August 2001 11:19:28 GMT

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