On Mar 25, 2011, at 3:18 AM, Alan Gresley wrote:

> <http://css-class.com/test/css/parsing/invalid-blocks2.htm>
> 
> 
> IE8 and IE9 see this.
> 
> 
>   p [background: blue}
> 
>   .test1 {background: green}
> 
>   .test2 {background: green}
> 
> 
> And all other browsers see this,
> 
> 
>   p [background: blue}]
> 
>   .test1 {background: green}
> 
>   .test2 {background: green}
> 
> 
> by repairing the string [....].  None of this explain why the first <p> with 
> .test1 is also dropped.

No idea what IE 8 + are doing, but -
The Gecko error console flags this:
> "Unexpected token in attribute selector: ‘:’.  Ruleset ignored due to bad 
> selector." {file: "http://css-class.com/test/css/parsing/invalid-blocks2.htm"; 
> line: 12}


The CSS validator returns this
Parse Error [background: blue} .test1]

Basically, in both cases you have an invalid  selector
p [background: blue} .test1
and everything is ignored until the 1st instance of 'green}'

The 1st valid selector after p{} is .test2

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to