Re: Tidy bug

Charlie Reitzel <[email protected]> Wed, 21 Oct 2009 10:30:16 -0400
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
Looks good to me.  Arnaud and Bj=F6rn, do you guys see any unwanted =

side-effects of this change?

At 02:29 PM 10/21/2009 +0200, Klaus Johannes Rusch wrote:
>Ben McCann wrote:
>>Hi Klaus,
>>I see that you =

>><https://sourceforge.net/tracker/?func=3Ddetail&aid=3D2855621&group_id=3D=
27659&atid=3D390963>marked =

>>the issue I reported as rejected on SourceForge.  Can we reopen it to =

>>reflect the conversation on this email thread?  I'd like it if we could =

>>work on implementing your suggestion: "One thing I can think of that =

>>would help with this example is discarding elements for which only an end =

>>tag is found, rather than generating a corresponding start tag."
>
>Ben,
>
>the bug report is open and I have a possible fix, I can send you the win =

>binary or you can try the modification below yourself if you want to =

>experiment with the patched version on another platform.
>
>Charlie,
>
>it's been a while since I touched the tidy source code (looked pretty =

>unfamiliar :-)), the fix appears to resolve the specific issue and not =

>cause harm with a number of table related test cases I tried, would =

>appreciate if you could look over this though and let me know if you agree:
>
>RCS file: /cvsroot/tidy/tidy/src/parser.c,v
>retrieving revision 1.187
>diff -r1.187 parser.c
>3471,3472c3471,3475
><                 TY_(UngetToken)( doc );
><                 node =3D TY_(InferredTag)(doc, TidyTag_TABLE);
>---
> >                 /* =

> <http://tidy.sf.net/issue/2855621>http://tidy.sf.net/issue/2855621 */
> >                 if (node->type !=3D EndTag) {
> >                     TY_(UngetToken)( doc );
> >                     node =3D TY_(InferredTag)(doc, TidyTag_TABLE);
> >                 }
>
>--
>Klaus Johannes Rusch
><mailto:[email protected]>[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