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
> not.

Correct --

http://www.w3.org/TR/REC-html40/sgml/loosedtd.html
has
<!ENTITY % flow "%block; | %inline;">
<!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->

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

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

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to