Re: Tidy bug

Charlie Reitzel <[email protected]> Sat, 10 Oct 2009 10:41:59 -0400
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
Hey Klaus,

Good to hear from you - it's been a while!

I see what you mean.  Rather than just discard it, shouldn't Tidy "close" 
the added table (emit &lt;/table&gt;) when it encounters the new &lt;table&gt;?

Charlie

At 03:10 PM 10/10/2009 +0200, Klaus Johannes Rusch wrote:
>Ben McCann wrote:
> > Hi,
> > I reported a bug about a month ago and was hoping someone might have a
> > chance to take a look at it:
> > 
> http://sourceforge.net/tracker/index.php?func=detail&aid=2855621&group_id=27659&atid=390963 
>
> > 
> <http://sourceforge.net/tracker/index.php?func=detail&aid=2855621&group_id=27659&atid=390963>
> >
> > I provided a very simple HTML table for which the id is stripped off
> > when parsed.  This has been causing me lots of trouble when using the
> > jtidy library, but I can't get it patched there until it is fixed in
> > tidy.  Unfortunately, I'm mainly a Java programmer, so digging into C
> > code is something I'd rather avoid.
>Hi Ben,
>
>the id attribute is actually not discarded. Rather, what happens is that a
>new table element is inserted to make the <tr> valid, and the -- then --
>extraneous table element with the id attribute is discarded.
>
>line 1 column 7 - Warning: </tr> isn't allowed in <body> elements
>line 1 column 13 - Warning: inserting implicit <table>
>line 1 column 13 - Warning: discarding unexpected </tr>
>line 1 column 18 - Warning: missing <tr>
>line 1 column 18 - Warning: discarding unexpected <table>
>
>--
>Klaus Johannes Rusch
>[email protected]
>http://www.atmedia.net/KlausRusch/
>
>
>------------------------------------------------------------------------------
>Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>is the only developer event you need to attend this year. Jumpstart your
>developing skills, take BlackBerry mobile applications to market and stay
>ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>http://p.sf.net/sfu/devconference
>_______________________________________________
>Tidy-develop mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/tidy-develop


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference