W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998


From: Mike Champion <mcc@arbortext.com>
Date: Wed, 30 Dec 1998 10:12:00 -0500
Message-Id: <>
To: keshlam@us.ibm.com, www-dom@w3.org
At 03:32 PM 12/29/98 -0500, keshlam@us.ibm.com wrote:
>Revisiting the HTML DOM, which I'd mostly ignored in the past...
>If someone hands a parser a badly-formed HTML file without the <HTML>
>wrapper, does the DOM assume that an HTML element will be synthesized to be
>the single content root (DocumentElement)? Or should an HTML DOM accurately
>record the multiple-root structure of the broken file?

We say NOTHING about what an implementation does with badly formed HTML.
Obviously Netscape and Microsoft are free to continue their practice of
"fixing up" broken HTML and somehow representing it in the DOM.  The DOM WG
has argued this one to death, and all we can say is that if you want to
*ensure* interoperability of your HTML page across all compliant DOM
implementations, you *have* to make it valid HTML 4.0.  If you're
comfortable with placidly assuming that NS and MS will "do the right thing"
with invalid HTML, fine, but don't whine at *us* when your pages don't work
with some new version of a browser ;-)

Received on Wednesday, 30 December 1998 10:12:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC