Bug Tracker

Opened 14 years ago

Last modified 12 years ago

#3703 closed bug

IMG tag creation/append is not working in Opera 9.52 — at Version 3

Reported by: delf Owned by:
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: jsonp, opera Cc:
Blocked by: Blocking:

Description (last modified by davidserduke)

this example from page http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback

$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?",
        function(data){
          $.each(data.items, function(i,item){
            $("<img/>").attr("src", item.media.m).appendTo("#images");
            if ( i == 4 ) return false;
          });
        });

is not working in Opera 9.5

Change History (5)

comment:1 Changed 13 years ago by aaron.gundel

Appears to be relevant in 9.63 also. Does not appear to be related to JSONP though: I tried replicating and found that the JSONP executes properly and returns links to the photos as expected; but the manipulation code appears to be failing.

comment:2 Changed 13 years ago by davidserduke

Component: ajaxcore
Summary: getJSON JSONP is not working in Opera 9.52IMG tag creation/append is not working in Opera 9.52

Aaron appears to be correct and this has nothing to do with JSONP. The URLs seem to be coming back fine and it is the creation of the IMG tags and appending them to the DIV that seems to have the problem.

That being the case I'm going to change the summary to reflect the issue.

Changed 13 years ago by davidserduke

Attachment: jquery_test.html added

comment:3 Changed 13 years ago by davidserduke

Description: modified (diff)
Priority: majorminor

Attached a simplified test case. To my eye this appears to be a browser bug. The test case works in FF2 and IE7, but not Opera 9.52. Also works in Opera 9.26 so hopefully they will fix it. I'm not sure how jQuery could provide a fix so we might have to close this ticket regardless.

Changed 13 years ago by aaron.gundel

Attachment: jquery_test.2.html added

slightly modified replication

Note: See TracTickets for help on using tickets.