Currently an extra end-tag which does not have any start-tag is
causing severe damage to display.  Should it be so?  Example:

<HTML>
<BODY>

<TABLE>
<TR>
<TD ALIGN=CENTER>Warp 3</TD>
<TD ALIGN=CENTER>XR_W003</A></TD>
<TD ALIGN=CENTER>8.209</TD>
<TD ALIGN=CENTER>...Note 3</TD>
</TR>

</TABLE>


The following patch "fixes" this - but I have very little idea whether
this does not break the intent.  Is the intent of the default mode to
be most harmful to the reader?

Thanks,
Ilya

--- ./WWW/Library/Implementation/SGML.c-pre     Mon Jan 19 04:16:02 2004
+++ ./WWW/Library/Implementation/SGML.c Tue Feb  3 00:16:24 2004
@@ -1080,6 +1080,8 @@ PRIVATE void end_element ARGS2(
     int stackpos = is_on_stack(context, old_tag);
 
     if (!Old_DTD) {
+       if (stackpos == 0)
+           extra_action_taken = YES;   /* Ignore absolutely wild stuff... */
        while (canclose_check != close_NO &&
               context->element_stack &&
               (stackpos > 1 || (!extra_action_taken && stackpos == 0))) {

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to