Side navigation
#2181 closed bug (fixed)
Opened January 16, 2008 06:08PM UTC
Closed June 20, 2010 05:09PM UTC
Last modified March 14, 2012 06:54AM UTC
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: | ||
Blocked by: | Blocking: |
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 (3)
Change History (10)
Changed January 16, 2008 08:24PM UTC by comment:1
milestone: | 1.2.1 → 1.2.3 |
---|
Changed January 17, 2008 10:50PM UTC by comment:2
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 May 16, 2008 06:24PM UTC by comment:3
milestone: | 1.2.3 → 1.2.4 |
---|---|
resolution: | → fixed |
status: | new → closed |
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 July 14, 2008 04:54AM UTC by comment:4
resolution: | fixed |
---|---|
status: | closed → reopened |
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 July 14, 2008 04:57AM UTC by comment:5
Additional info: Error only happened on Firefox 2, but not on Firefox 3, IE6/7.
Changed July 14, 2008 12:53PM UTC by comment:6
need: | Review → 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 July 14, 2008 02:34PM UTC by comment:7
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.
Changed June 20, 2010 05:09PM UTC by comment:8
resolution: | → invalid |
---|---|
status: | reopened → closed |
This ticket has a confusing history, but I think the original problem was resolved.
Changed June 20, 2010 05:09PM UTC by comment:9
resolution: | invalid |
---|---|
status: | closed → reopened |
Changed June 20, 2010 05:09PM UTC by comment:10
resolution: | → fixed |
---|---|
status: | reopened → closed |