Bug Tracker

Modify

Ticket #2181 (closed bug: fixed)

Opened 5 years ago

Last modified 15 months ago

JQuery fails to execute search in pages containing applets.

Reported by: cesare Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.1
Keywords: Cc:
Blocking: Blocked by:

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 Download (81.8 KB) - added by cesare 5 years ago.
jquery 1.2.1 patched to work with applets.
test.html Download (409 bytes) - added by cesare 5 years ago.
test page to reproduce the bug.
jQuery with Applet.zip Download (31.7 KB) - added by batboyz 5 years ago.

Change History

comment:1 Changed 5 years ago by davidserduke

  • Milestone changed from 1.2.1 to 1.2.3

Changed 5 years ago by cesare

jquery 1.2.1 patched to work with applets.

Changed 5 years ago by cesare

test page to reproduce the bug.

comment:2 Changed 5 years 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.

comment:3 Changed 5 years 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.

comment:4 Changed 5 years ago by batboyz

  • Status changed from closed to reopened
  • Resolution fixed 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.

comment:5 Changed 5 years ago by batboyz

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

comment:6 Changed 5 years 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 5 years ago by batboyz

comment:7 Changed 5 years 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.

comment:8 Changed 3 years ago by dmethvin

  • Status changed from reopened to closed
  • Resolution set to invalid

This ticket has a confusing history, but I think the original problem was resolved.

comment:9 Changed 3 years ago by dmethvin

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:10 Changed 3 years ago by dmethvin

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

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.