Bug Tracker

Modify

Ticket #2325 (closed bug: fixed)

Opened 6 years ago

Last modified 4 years ago

curCSS doesn't recognize frame scope

Reported by: jmcgraw Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

Running the following lines should produce the same result, but don't:

$("#default",top[frame name].document).css("background-color");
top[frame name].getComputedStyle(top[frame name].document.getElementById("default"), null).getPropertyValue("background-color");

After browsing the source for jQuery 1.2.3, looks like curCSS() uses the hard coded document variable and not one scoped for the current query.

Attachments

jquery_css_iframe_bug.zip Download (30.1 KB) - added by jmcgraw 6 years ago.
Example of css() iframe bug

Change History

Changed 6 years ago by jmcgraw

Example of css() iframe bug

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

Switched to elem.ownerDocument in 1.4.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.