On Tue, 2010-01-05 at 07:45 -0600, Rob Belics wrote:
On Tue, 2010-01-05 at 14:09 +0100, Martin Honnen wrote:
Rob Belics wrote:
Little known factoid: the html, body and head opening and closing
tags
are all optional.
But not in XHTML served as XML.
Ah, ok, because we have to not let the browser guess at how to layout
the DOM?
No. Because HTML is based on SGML, with the tag minimization features
enabled that allow OMITTAG. When we made XML, we explicitly decided
to get rid of OMITTAG and most of the other minimization features,
because of our bad experiences in supporting users with these
features enabled.
So, in XML, all tags must be supplied, the XML parser will not insert
them and deduce that elements were present despite of the lack of
markup. This is not in any way related to DOM.
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--