RE: Versioning and html[5]

On Sun, 15 Apr 2007, Ian Hickson wrote:

>> Lachlan wrote:
>>> But in the case of, say, IE's broken DOM, I seriously doubt that 
>>> there are any sites that absolutely depend on the non-tree 
>>> structure of IE's DOM in certain cases.
>>
>> Not true.  <table> and <form> are still occasionally interleaved.
>
> The HTML5 parser spec handles this case, even with a tree structure.

Hmm, how exactly?

If a form start tag is appear in the middle of one table cell and 
the end tag in the middle of another, how do you create a tree for 
existing content? The form element is clearly not well formed and 
some kind of surgery will be needed, e.g. getting the relevant 
fields to reference a form element via an attribute rather than 
being part of the form element's content.

Note that I was unable to implement the WF2 form attribute on 
Firefox using a script, although it was easy to do so on Opera.

I thought that you were particularly concerned with graceful 
fallback for new content on old browsers with or without scripts 
being enabled.

-- Dave

Received on Monday, 16 April 2007 02:23:01 UTC