Re: ISSUE-54 (html5-doctype-vs-xslt): XSLT 1.0 can not generate HTML5 documents [HTML 5 spec]

Simon Pieters wrote:
> Some quirks can be copied to standards mode without breaking anything.

Possibly, but should they?

>> 1) <body bgcolor="ffff00">, et. al. works in quirks mode but
>>     not standards
> 
> This one can be changed in standards mode to match quirks (they do in IE 
> and Opera).

Sort of.  For example, consider this:

   <body bgcolor="deepbluegreen">

(a color that's not an HTML4 color so parsed as quirky hex by browsers). 
  Try that in your browser of choice.  In quirks mode, IE6 and IE8b2 
gives a magenta background, as does Safari.  Gecko has a bright orange 
(which is odd, 'cause I could have sworn we matched IE here in at least 
a wide range of cases).  Opera does a kinda-tan color. 
bgcolor="deepblue" comes out red in all of Firefox, IE, Safari, still 
tan in Opera.

In standards mode, Opera and Gecko ignore the bgcolor.  Safari still 
does magenta, as does IE6.  And yes, sites do this sort of thing 
somewhat commonly, according to our bug reports....

I do see Opera applying 6-digit hashless hex colors even in standards 
mode, so apparently the quirk in Opera is limited to things that contain 
invalid hex digits?

>> 4) height="100%" on <img>, <td>, and so forth.
> 
> This is probably possible to copy to standards mode, but that would need 
> a change to the CSS spec.

It'd require pretty serious changes, actually....  The way it works in 
quirks mode really doesn't fit well into the CSS model.

>> 7) rowspan/colspan="0" handled differently in quirks mode
> 
> I think rowspan and colspan can work the same in both (as specced in 
> HTML5).

I haven't had a chance to look at the html5 spec, but treating 
rowspan/colspan="0" per HTML4 spec in quirks mode caused a lot of grief 
last time it was tried.

-Boris

Received on Wednesday, 3 September 2008 14:32:26 UTC