More DTD trick questions: DIR/MENU vs OL/UL, PCDATA vs CDATA

E. Stephen Mack (estephen@emf.net)
Sun, 24 Aug 1997 04:05:25 -0700


Message-Id: <3.0.3.32.19970824040525.00faa508@emf.net>
Date: Sun, 24 Aug 1997 04:05:25 -0700
To: www-html@w3.org
From: "E. Stephen Mack" <estephen@emf.net>
Subject: More DTD trick questions: DIR/MENU vs OL/UL, PCDATA vs CDATA

While I'm questioning the DTD, why is there [1]:

<!ELEMENT (DIR|MENU) - -  (LI)+ -(%blocklevel)>
                                ^^^^^^^^^^^^^^
Why does this need to be excluded? 

For OL and UL, it's:
<!ELEMENT OL - -  (LI)+>
<!ELEMENT UL - -  (LI)+>

So
<MENU><LI><P>Item</MENU>
is illegal but
<OL><LI><P>Item</OL>
is okay?  Why?

(I know, who cares, MENU and DIR are deprecated...still,
I'm curious.  HTML 3.2's DTD has the same thing.)

                          * * *

I also want to repeat Jeni Tennison's question of 18-Aug-97,
that shouldn't INS and DEL allow %block instead of %inline?

                          * * *

And while I'm asking questions...where are the differences
between PCDATA and CDATA defined?

[1] immediately following:
    http://www.w3.org/TR/WD-html40/sgml/dtd.html#ULStyle