W3C home > Mailing lists > Public > www-html@w3.org > January 1999

WD-html-in-xml body declaration

From: Ghadi Shayban <shaybang@ols.net>
Date: Thu, 31 Dec 1998 23:48:39 -0500 (EST)
Message-ID: <001301be3542$834c9360$670d1bce@shaybang>
To: <www-html@w3.org>
Correct me if I'm wrong:

In HTML 4.0, the body element couldn't have character data directly inside
of it.  For example, this is illegal:
<html>
<body>
asdf
</body>
</html>

In WD-html-in-xml, these pieces of the DTD define the body element:
<!ENTITY % Block "(#PCDATA | %block; | %misc;)*">
<!ENTITY % body.content "%Block;">
<!ELEMENT body %body.content;>

That states that the body element can have cdata directly inside.  This
seems like a significant change from HTML 4.  Can someone enlighten me on
this?

There is also an error, I think.  Shouldn't the body declaration
be............
<!ELEMENT body "&body.content;"> ?


Ghadi Shayban
Received on Monday, 4 January 1999 03:06:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:38 GMT