Re: [xml] Another buglet in HTML parser

Date view Thread view Subject view Author view

From: Kristian Hogsberg Kristensen (hogsberg@daimi.au.dk)
Date: Tue Oct 12 1999 - 17:49:03 EDT


Daniel Veillard <Daniel.Veillard@w3.org> writes:

> > Did you try it on *exactly* the above example? In particular the error
> > only surfaces, when there's no whitespace between </ol> and </body>.
> > I just checked out the W3C cvs version and it still has the bug.
>
> Ok, got it. Strange I was really sure I tested with the same example ...
> sorry about that. I also need to change a couple of other piece
> otherwise the change triggers problems elsewhere.

Huh? I though just moving the test down below the four cases would
solve the problem; you couldn't have autoclosed anything before
parsing some content anyway, so moving the test wont disturb the first
iteration of the loop, and after the first iteration the loop
basically looks the same as before... What am I missing?

> I certainly need to add more test cases, as the code progresses
> catching those should be done as much as possible in a systematic
> way. Any idea ?

Erh... not really. I usually try to write small examples to test the
individual functions as I go along, and I keep those around for
regression testing. But even so I dont really hope to cover all
combinations, as different parts of my program starts to interact,
cf. the bug that started this thread. And anyway this is open
source - leave the debugging to the users :-)

regards,
Kristian

----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:49 EDT