Post Archive
› January 18, 2004
Limited child selector support in IE5.0/Win?
Trying to solve a CSS padding problem, I ran into this to me unknown (and maybe undocumented?) feature/bug: it seems like there is some rudimentary support for child selectors (>) in IE5.0/Win. Rudimentary, as you need to use a combination of id and child selectors to make it work.
body>div is ignored, #foo>#anotherfoo seems to be recognized - check this small test page for an example.
Update: actually, it seems like you can replace > with any other character: +, *, etc give exactly the same result. So we're talking about a bug.
Comments
1. January 18, 2004 12:22 PM
2. January 18, 2004 12:53 PM
Quote this comment
Andreas Posted…
It has a similar feel, but Pixy's underscore hack uses _ in front of properties, while in my example the part before the last id selector is ignored. I've added an example to the test page.
liorean Posted…
Isn't this essentially a version of the same bug that allows the underscore hack to work? Try if it doesn't simply treat it as a decentand operator. Also consider the different in interpretation of
html>bodyandhtml > body.