You may not like this answer: The W3C DOM does not support malformed HTML. It's up to the HTML processor to either reject it as unparsable, or to repair it before the DOM is built. The details of that repair are out of our scope. A suggested, but not officially endorsed, repair algorithm appears in the W3C's "tidy" tool. Getting everyone to agree to yield the same results -- tidy's or any other -- would be a task for the HTML Working Group. Given that they seem to instead be moving toward an XML-based version of HTML, in which malformed documents are not possible and consistant parsing can be guaranteed, I don't know if they can enforce particular repairs or are interested in doing so. Ask them? ______________________________________ Joe Kesselman / IBM ResearchReceived on Friday, 1 September 2000 12:15:18 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 3 May 2007 00:17:09 GMT