Modify ↓
Ticket #5530 (closed bug: invalid)
load method: In IE7/8 incoming and current document selectors must be different!
| Reported by: | pjstarifa | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | unfiled | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
- Use the jQuery load(url) method and specify a jQuery selector in the url to filter the incoming document.
- If the incoming selector is the same as the calling document selector then nothing will be injected into the calling document's DOM when using browser IE7/8.
$('#status').load('data.asp?random=' + (newDate()).getTime() + ' #status');
- If the incoming and calling selectors are different then IE7/8 acts as expected.
$('#status').load('data.asp?random=' + (newDate()).getTime() + ' #statusEX');
- In FireFox 3.08 and Chrome 3.0. both of the above calls act as expected and inject the filtered calling document into the calling documents DOM
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

That would create duplicate #status ids and create an invalid document, so it seems reasonable that it might break. If I haven't understood that code correctly, please reopen with a test case.