lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev strict SortaSGML rules for <PRE>...</PRE> content


From: Klaus Weide
Subject: Re: lynx-dev strict SortaSGML rules for <PRE>...</PRE> content
Date: Fri, 6 Aug 1999 09:01:17 -0500 (CDT)

On Fri, 6 Aug 1999, Leonid Pauzner wrote:

> Many documents on the Web use <pre>...</pre> tags to include prepormatted
> text with end-of-lines. Unfortunately, they also use some html decorations
> like <em>..</em> or <h2>..</h2>, the latter break PRE mode (by forcing </PRE>)
> which was not happen for TagSoup mode or Big Two browsers.
> 
> The question is what does the list of restricted tags under PRE looks like?
> 
> HTML 4.0 said the following (and <Hx> does not listed in the exclusions):
> ========
> 
> 
>   9.3.4 Preformatted text: The PRE element
> 
> <!ENTITY % pre.exclusion "IMG|OBJECT|APPLET|BIG|SMALL|SUB|SUP|FONT|BASEFONT">
> 
> <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
                    \---------/ \----------------/         
                         |              |
                         |            These are _additionally_ forbidden,
 Everything that matches %inline;     and the exclusion applies at any
 is allowed as a direct child.        level (not just for direct children).
 Look for
 <!ENTITY % inline .....>
 somewhere.  Since there is no
 other allowed content specified,
 everything that does not match 
 %inline; is not allowed.

H2 is forbidden because it is not covered by %inline;.


    Klaus


reply via email to

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