Skip to main content

Bug Tracker

Side navigation

#11553 closed bug (wontfix)

Opened April 03, 2012 07:21PM UTC

Closed April 04, 2012 12:07AM UTC

Error removing attributes in IE7 using a star-selector if you have an iframe with external content

Reported by: Simon Schick Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi, All

I have an error that occurs in IE less-than 8:

If I have a document where I have an iframe loading an external resource (internal - from the same domain - works) and I do something with element-attributes and use the star-selector in there, I'll get an error-message like "permission denied".

Here's a screenshot where I tried to debug this error:

http://s7.directupload.net/file/d/2849/g9wgubfm_png.htm

Here's the full-code used in the page to produce the screenshot:

http://pastebin.de/24419

This is a small example (just to change and rerun it quickly)

http://jsfiddle.net/cAuud/

And here's an example without using the star-selector and you'll see that it does not break.

http://jsfiddle.net/cAuud/1

I personally think that jQuery somehow tries to access content inside the iframe, which is denied for stuff loaded from another (sub-)domain.

Attachments (0)
Change History (1)

Changed April 04, 2012 12:07AM UTC by dmethvin comment:1

resolution: → wontfix
status: newclosed

I agree that you should technically be able do that without an error, but you don't want to do that anyway.

One, you don't want to use the * selector. Since IE7 doesn't support querySelectorAll, Sizzle will ask IE for *every* element on the page. That will be very slow. Use button or input as appropriate.

Two, you probably want to use .prop() and not .attr() if you simply want to enable the button. That is the correct cross-browser way to do it.

So consider the error to be a warning that there is a much better way to accomplish the goal.