lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV line break missing after input fields in pre blocks


From: Laura Eaves
Subject: Re: LYNX-DEV line break missing after input fields in pre blocks
Date: Sun, 4 May 1997 05:32:52 -0400 (EDT)

A trace shows start_element in SGML.c is not allowing
<form> tags in <pre> blocks.
(This, I believe is legal HTML.)

SGML: Start <PRE>
GridText: Change to style Preformatted
HTML:begin_element: adding style to stack - Preformatted
SGML: End </PRE>        <- forced by start <FORM>
HTML:end_element: Popped style off stack - Normal
SGML: Start <FORM>
...
SGML: End </FORM>
HTML:end_element: Popped style off stack - Normal
GridText: split_line called
SGML: End </BODY>       <- supplied, end </PRE>
HTML:end_element: Popped style off stack - Normal
SGML: Still open HTML, no open PRE for </PRE>
SGML: End </HTML>       <- supplied, end </BODY>
HTML:end_element: Popped style off stack - Normal
SGML: Still open none, no open BODY for </BODY>
SGML: Still open none, no open HTML for </HTML>

When I move the form tag to before the pre block, but leave the </form>
tag within the pre block, it does the following:

SGML: Start <FORM>
...
HTML:begin_element: adding style to stack - Normal
SGML: Start <PRE>
GridText: Change to style Preformatted
HTML:begin_element: adding style to stack - Preformatted
...
SGML: End </PRE>        <- forced by end </FORM>
HTML:end_element: Popped style off stack - Normal
SGML: End </FORM>
HTML:end_element: Popped style off stack - Normal
SGML: End </BODY>       <- supplied, end </PRE>
...

(Of course, this would be "bad html".)
Anyway, for the purposes of error recovery, <form> shouldn't force </pre>
and </form> shouldn't force </pre>.
--le

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]