Philippe Wittenbergh wrote:
Depending on the mime type there is a huge difference.
text/html --> sgml parser in use
application/xhtml+xml --> xml parser is in use.
Just to clear up this misconception text/html doesn't use an SGML parser
(few, or possibly zero browsers have implemented SGML parsing),
While the HTML form of HTML5 bears a close resemblance to SGML and
XML, it is a separate language with its own parsing rules.
Some earlier versions of HTML (in particular from HTML2 to HTML4) were
based on SGML and used SGML parsing rules. However, few (if any) web
browsers ever implemented true SGML parsing for HTML documents; the
only user agents to strictly handle HTML as an SGML application have
historically been validators. The resulting confusion — with
validators claiming documents to have one representation while widely
deployed Web browsers interoperably implemented a different
representation — has resulted in this version of HTML returning to a
non-SGML basis.
Authors interested in using SGML tools in their authoring pipeline are
encouraged to use the XML serialisation of HTML5 instead of the HTML
serialisation.
---
http://www.whatwg.org/specs/web-apps/current-work/multipage/section-parsing.html
.Matthew Cruickshank
http://holloway.co.nz/blog/ << My new blog on XML, XSLT, and the web
http://docvert.org/ << Convert MSWord to OpenDocument, DocBook or clean HTML
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************