467,080 Members | 1,006 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,080 developers. It's quick & easy.

IE7 attribute and child selector support

Does IE7 support attribute and child selectors?

Jeff
May 19 '06 #1
  • viewed: 2323
Share:
9 Replies
Jeff wrote:
Does IE7 support attribute and child selectors?


The quick friendly answer is: child selectors; yes. attribute
selectors; not as far as I can see. It's only a beta so this may change.

The longer (for you) and more abrasive answer is: why don't you download
it and see for yourself.

--
Brian O'Connor (ironcorona)
May 19 '06 #2
ironcorona <ir*********@gmail.com> wrote:
Jeff wrote:
Does IE7 support attribute and child selectors?
The quick friendly answer is: child selectors; yes. attribute
selectors; not as far as I can see.


Attribute selectors are implemented, see
<http://blogs.msdn.com/ie/archive/2006/02/02/523679.aspx>
The longer (for you) and more abrasive answer is: why don't you
download it and see for yourself.


How do you know that he has a supported OS?

--
David Håsäther
May 19 '06 #3
ironcorona <ir*********@gmail.com> wrote:
Jeff wrote:
Does IE7 support attribute and child selectors?


The quick friendly answer is: child selectors; yes. attribute
selectors; not as far as I can see. It's only a beta so this may change.


My tests with attribute selectors show that they are supported. I've
only tested basic stuff like p[id] and p[lang="en"] but that seems to
be working okay. This is with 7.0.5346.5

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
May 19 '06 #4
Steve Pugh wrote:
ironcorona <ir*********@gmail.com> wrote:
Jeff wrote:
Does IE7 support attribute and child selectors?

The quick friendly answer is: child selectors; yes. attribute
selectors; not as far as I can see. It's only a beta so this may change.


My tests with attribute selectors show that they are supported. I've
only tested basic stuff like p[id] and p[lang="en"] but that seems to
be working okay. This is with 7.0.5346.5


Yep, sorry, you're right. I messed up the CSS when I was trying it.
--
Brian O'Connor (ironcorona)
May 19 '06 #5
David Håsäther wrote:
The longer (for you) and more abrasive answer is: why don't you
download it and see for yourself.


How do you know that he has a supported OS?


That was meant as a joke. Not very clear I'll admit.

--
Brian O'Connor (ironcorona)
May 19 '06 #6
On Sat, 20 May 2006 04:33:06 +0800 ironcorona <ir*********@gmail.com> wrote:
| David H?s?ther wrote:
|
|>> The longer (for you) and more abrasive answer is: why don't you
|>> download it and see for yourself.
|>
|> How do you know that he has a supported OS?
|
| That was meant as a joke. Not very clear I'll admit.

Too many people that are totally ignorant of the existance of other systems
might well post something like that. So it's probably something best not
posted, unless you add an appropriate caveat or smiley.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 19 '06 #7
ph**************@ipal.net wrote:
Too many people that are totally ignorant of the existance of other systems
might well post something like that. So it's probably something best not
posted, unless you add an appropriate caveat or smiley.


Are you now going to post back to every one of my posts? That's called
spam.
--
Brian O'Connor (ironcorona)
May 20 '06 #8
ironcorona wrote:
Jeff wrote:
Does IE7 support attribute and child selectors?

The quick friendly answer is: child selectors; yes. attribute
selectors; not as far as I can see. It's only a beta so this may change.

The longer (for you) and more abrasive answer is: why don't you download
it and see for yourself.


It's a pain to run two IE versions on the same box and I don't
remember where the instructions for making your own bonus version.

I was actually wondering about the trick of a hiding a style from IE6
and whether it worked on IE7.

What I'm really doing is this:

<div>
<img ... style="float: left (or right)" class="img">
<p>...

This is CMS generated.
In every browser except IE6 the top of the text lines up with the
top of the image. In IE6 it's maybe 10px (I don't know whether IE7 does
that.) down, so:

..img{margin-top: 10px}
div > .img {margin-top: 0px}

I'm running win2000 and OSX and the usual assortment of relatively
common browsers (IE, NS, Moz, FireFox, Safari, Opera).

Jeff

May 21 '06 #9
Jeff wrote:
I was actually wondering about the trick of a hiding a style from IE6
and whether it worked on IE7.


Yes you can still use conditional comments
Try:
http://www.positioniseverything.net/...-dehacker.html [about
half way down the page.]

--
Brian O'Connor (ironcorona)
May 21 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Chris Sharman | last post: by
3 posts views Thread by patrizio.trinchini@googlemail.com | last post: by
2 posts views Thread by pstachy | last post: by
6 posts views Thread by _googlepost@oberst.ca | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.