lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV Re: <pre></pre> <Hx></Hx> BUG


From: Rob Partington
Subject: LYNX-DEV Re: <pre></pre> <Hx></Hx> BUG
Date: Sun, 5 Apr 1998 15:33:59 +0100 (BST)

[apologies if someone else has already replied to this]

J.T. wrote:
> 
> Lynx 2.8 does not implement the <pre> and </pre> tags as
> earlier versions do.
> 
> Every time an html file uses an <Hx> tag the existing
> <pre> is nullified for the text that follows.  The
> solution is to add another <pre> tag just after each
> change in <Hx> level.

This is lynx implementing the correct behaviour.  The PRE
element cannot contain a Hx element, so the Hx element closes
the open PRE element as defined in the DTD.  lynx should
complain about this, though, since the </pre> is non-optional.

from the 3.2 DTD (<URL: http://www.w3.org/TR/REC-html32.html >)

<!ENTITY % preformatted "PRE">
<!ENTITY % pre.exclusion "IMG|BIG|SMALL|SUB|SUP|FONT">
<!-- the next two lines are the most important -->
<!ELEMENT PRE - - (%text)* -(%pre.exclusion)>
<!ENTITY % text "#PCDATA | %font | %phrase | %special | %form">
<!ENTITY % font "TT | I | B  | U | STRIKE | BIG | SMALL | SUB | SUP">
<!ENTITY % phrase "EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE">
<!ENTITY % special "A | IMG | APPLET | FONT | BASEFONT | BR | SCRIPT | MAP">
<!ENTITY % form "INPUT | SELECT | TEXTAREA">

reply via email to

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