On Apr 29, 2006, at 8:13 AM, Greg Reimer wrote:

> Is the correct behavior that CSS adjacent sibling selection should NOT
> be affected by HTML comments? I ask because IE7 adjacent sibling
> selection fails when an HTML comment intervenes between the adjacent
> siblings. For example h1+h2 won't select
> <h1>text</h1><!--foo--><h2>text</h2> in the most recent IE7 beta.

If that is what you have in your html, then that should work (it does  
everywhere on my Mac, except IE 5 Mac).
I don't have IE 7 beta to test.

Have you tried to put them on separate lines ?
<h1>test</h1>
<!-- comment -->
<h2> other text</h2>

Maybe it is another incarnation of those odd white-space parsing bugs  
in IE...
Just curious.

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




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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