Bug Tracker

Ticket #2181 (reopened bug)

Opened 1 year ago

Last modified 1 year ago

JQuery fails to execute search in pages containing applets.

Reported by: cesare Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: core
Version: 1.2.1 Keywords:
Cc: Needs: Test Case

Description

When a given page contains an applet, $(query) fails when it traverses the applet node. Probably because it is a special node which does not have the same properties that common HTML nodes. In JQuery 1.1.4 this can be avoided just ignoring tag named "applet" in search routines. The patch in question looks like:


isXMLDoc: function(elem) {

if (elem.tagName && elem.tagName.toLowerCase() == 'applet') return false; // hernan rancati -- patch

return elem.documentElement && !elem.body

elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;

}


thanks, and have a good day,

Hernan Rancati.

Attachments

jquery-1.2.1.js (81.8 kB) - added by cesare 1 year ago.
jquery 1.2.1 patched to work with applets.
test.html (409 bytes) - added by cesare 1 year ago.
test page to reproduce the bug.
jQuery with Applet.zip (31.7 kB) - added by batboyz 1 year ago.

Change History

Changed 1 year ago by davidserduke

  • milestone changed from 1.2.1 to 1.2.3

Changed 1 year ago by cesare

jquery 1.2.1 patched to work with applets.

Changed 1 year ago by cesare

test page to reproduce the bug.

Changed 1 year ago by cesare

in order to reproduce the bug , have to put a working applet in the same directory where html test page is located (eg. excelsos-upload.jar). The file is missing here due to file size limitation.

Changed 1 year ago by flesler

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 1.2.3 to 1.2.4

I don't quite get the:

$("[xBindRows][xCloned]").html()

I just closed another ticket about applets, it turned to be already fixed now.

Could you retry this ?

I'll close for now, reopen if you still find this issue.

Changed 1 year ago by batboyz

  • status changed from closed to reopened
  • resolution deleted

Error: undefined is not a function Line 1166. The error occured on a page containing object tags for applets, using jQuery version 1.2.6.

Changed 1 year ago by batboyz

Additional info: Error only happened on Firefox 2, but not on Firefox 3, IE6/7.

Changed 1 year ago by flesler

  • need changed from Review to Test Case

Hi, don't reopen the ticket if it has nearly no relation to your problem, you can create a new one instead.

You need to give us more details so we can check this out. Can you provide a test case ? that is, a small html file with the minimum html/css/js necessary to reproduce the problem.

Changed 1 year ago by batboyz

Changed 1 year ago by batboyz

Hi, I thought it may be related, since the problem is because there is an applet embedded on the page. I've attached a zip file containing a test html, jQuery 1.2.6, and a sample applet. With this applet the error that I got was

Error: Java class AudioPlayerApplet has no public field or method named "jQuery1216045419515" Line: 666

The error is not the same as what I've mentioned in my previous post, because for some reason there is no such undefined error if I'm using the attached applet.

Note: See TracTickets for help on using tickets.