Alex Robinson wrote:

> Because while Microsoft fixed * html they introduced another  
> parsing bug :)
>
> Actually you don't need the :first-child since *+html shouldn't
> select anything and doesn't in other modern browsers. It's just IE7
> that does it.
>
> The only drawback is that if you want to target both IE7 and IE6 et
> al, you need to have a double declaration
>
>     * html { ... }
>     *+html { ... }

MS fixed the mysterious 'super-root' element. But their support for  
those additional selectors in IE 7 reveals another bug, in that  
comments (and the DTD stuff at the top of the page is a SGML comment  
of sorts) are treated as elements, whereas they should be just  
nothing,  at parsing time.
(Probably because they have to support that barbarity that is a  
Conditional Comment).
Deconstructed:
*+html selects an element that immediately follows another one (any  
element), as in
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML>
(and IE 7 only support the adjacent sibling combinator in 'standards  
mode')

> At 10:50 +0000 23/3/07, Chris Ovenden wrote:
>> .clearing { display:none } /* IE 6 & 7 */
>> *|html .clearing { display:block } /* everything else */
>
> I think this is the first sighting of this beast in the wild
>
>     http://frontend.blogsome.com/2007/01/23/the-flispide-of-star-html/
>
> Of course that's invalid in CSS2.1
>
> It is valid CSS3 as far as I can tell...
>
>     http://www.w3.org/TR/css3-namespace/#css-qnames
>
> ... but the W3 vaildator claims that it's not which looks like a bug
> in the validator to me.

The CSS validator doesn't support namespaces, as far as I know.
Try validating this:
<style>
@namespace a url(http://www.example.com/a);

a|b
</style>

<b xmlns='http://www.example.com/a'>foo</b>

Moreover, I don't think browsers should support namespace selectors  
in text/html documents. text/html is not namespace aware (browser do  
support them in practice).


Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to