Re: [xml] Apparently incorrect paragraph wrapping in HTML parser

On Mon, 2006-01-09 at 15:41 +0100, iSteve wrote:
 > I'm not sure text nodes are to be accepted directly as child of a 
body element

It is valid for HTML 4.01 Transitional -- which, let's be fair, is quite
  common (if not the most common) standard used for websites. You are
however right that it is not valid with HTML 4.01 Strict. In
transitional, <body> may contain inline elements, while in strict it can

Correct --
<!ENTITY % flow "%block; | %inline;">
<!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->

and inline is
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %

so that #PCDATA is allowed as a child of BODY.  This is not the
case for the strict DTD of course.


Liam Quin - XML Activity Lead, W3C,
Pictures from old books:

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