W3C home > Mailing lists > Public > www-html@w3.org > July 2004

Error handling for XML (was: Re: [XHTML2] CITELANG, TITLELANG attributes_

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Fri, 30 Jul 2004 12:53:38 +0200
Message-ID: <410A28B2.1000101@annevankesteren.nl>
To: Ian Hickson <ian@hixie.ch>
Cc: Mikko Rantalainen <mira@cc.jyu.fi>, www-html@w3.org

>>> The primary problem with Tag Soup is not that documents are invalid, 
>>> it's that documents are ambiguous.
>>>
>>> What does:
>>>
>>>     <strong> A <em> B </strong> C </em>
>>>
>>> ...translate to, as far as the DOM and CSS goes? No spec defines this.
>>
>> Well, let's just define that and the problem is gone. How about we say 
>> that the opening tags override closing tags in case there are syntax 
>> errors (or the other way around) and parser should keep a stack of 
>> open elements so it can automatically close elements with incorrect 
>> markup.
> 
> That (or something like it) is what HTML should have said when it was 
> first specified, yes.
> 
> By now, there are billions of pages that depend on exactly what Windows 
> IE does for each possible markup error, so it's nigh on impossible to 
> specify an exact algorithm.
> 
> But yes, in principle, that's exactly what I'm saying. Specs should 
> define all these cases.

Can't we define such error handling for XML, instead of letting the 
browser throw in a non well-formed error?

(Just a thought.)


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Friday, 30 July 2004 06:54:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:00 GMT