Loop in handling improper FRAMESET/FRAME tags

Hi there,

The attached piece of html makes tidy30apr00 loop. The Java version does
loop as well, I fixed it by changing:

    org/w3c/tidy/ParserImpl.java{ParseHtml}::parse

so that right before it ungets the token (by calling 'lexer.ungetToken') it
runs the following check:

if ( frameset != null && node.type == node.EndTag && node.tag ==
TagTable.tagFrame )
	continue;

I am not sure if this is the proper fix, but it defintely broke the loop in
the java code.

Anselm.
----- sample html file -----
<HTML>
<HEAD><TITLE>Improper frameset</TITLE>
</HEAD> 

<FRAMESET BORDER=0 ROWS="100,*">

<FRAME SCROLLING=NO MARGINHEIGHT="0" SRC="whatever">
</FRAME>
<FRAME SCROLLING=auto MARGINHEIGHT="0" SRC="andwhatnot"></FR
AMESET>
</FRAME>
<NOFRAMES>
<P>No frames tag here !
</NOFRAMES>
</HTML>
----- end sample html file -----

Received on Monday, 8 May 2000 22:53:42 UTC