Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12823 closed bug (wontfix)

IE7 Iframe content style selector not working (ref: ticket 12586)

Reported by: Teddos Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

Hello,

I also pasted the text below in the ticket number mentioned in the Summary of this message; my apologies for that.

I have another issue with IE7 and Iframes. Unfortunatly we have many desktops still using IE7 :( and I totally did not took it into consideration. Next selector does not work: 'a[style='mso-comment-reference: MO_1']'

Below is the jsFiddle. The jsFiddle should work in IE8 but currently gives a 'Display' error: http://jsfiddle.net/qUXD7/3/ The iframe in this fiddle is cross domain for demo purposes but the iframe in my environment is in the same domain.

I hope you can help out!

Change History (4)

comment:1 Changed 7 years ago by timmywil

Component: unfiledselector
Resolution: notabug
Status: newclosed

Single quotes within single quotes breaks the string. This works:

http://jsfiddle.net/timmywil/qUXD7/5/

comment:2 Changed 7 years ago by timmywil

Resolution: notabug
Status: closedreopened

Sorry, no it doesn't. This is a case-sensitive issue. IE lowercases everything.

comment:3 Changed 7 years ago by timmywil

Resolution: wontfix
Status: reopenedclosed

http://jsfiddle.net/timmywil/qUXD7/6/

The spec stipulates that the style attribute is not subject to case-sensitivity nor case-insensitivity, defaulting it to case-sensitivity in selectors.

http://www.w3.org/TR/html4/present/styles.html#adef-style

Since all browsers are case-sensitive when using the style attribute and there is only an issue because IE messes with the style property in ways we don't want to predict (sometimes it uppercases style property names too), I don't think we will want to put in code for this edge case.

Beware of using the style property in selectors.

comment:4 Changed 7 years ago by Teddos

Thanks a million!

You solution just worked like a charm :o)

Note: See TracTickets for help on using tickets.