Bug Tracker

Ticket #1341 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

jQuery 1.1.3 fails completely in Konqueror 3.5.5 !

Reported by: frando Assigned to: anonymous
Type: bug Priority: critical
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords: konqueror
Cc: Needs: Patch

Description

Konqueror always had its problems with Javascript and jQuery. With 1.1.2, most stuff worked, though. 1.1.3 now doesn't work at all. Everything fails. I think it doesn't even get unpacked correctly.

Here's what Konqueror reports when visiting jQuery.com (in the JavaScript errors window):

Error: http://code.jquery.com/jquery-latest.pack.js: TypeError?: Null value Error: http://static.jquery.com/files/design/js/jqbrowser2.js: TypeError?: Value undefined (result of expression jQuery.find) is not an object. Cannot be called. Error: http://static.jquery.com/files/design/js/jquery-site.js: TypeError?: Value undefined (result of expression $(document).ready) is not an object. Cannot be called.

Attachments

Change History

Changed 1 year ago by frando

It's not related to the packer, using the uncompressed version results in the same error.

Changed 1 year ago by batiste

Hello,

Compression slowness in konqueror have been fixed with Konqueror 3.5.7 but it's broken again.

Beside this I am not sure that javascript compression is realy a good idea :

http://batiste.dosimple.ch/blog/2007-07-02-1/

Changed 1 year ago by batiste

Hello again,

I toke 5 minutes this morning and I changed this line

version: b.match(/.+(?:rv|it|ra|ie|la)[\/: ]([\d.]+)/)[1],

In this one

version: b.match(/.+(?:rv|it|ra|ie|ml)[\/: ]([\d.]+)/)[1],

And jQuery seems to work again on Konqueror ...

Changed 1 year ago by aportale

Cool! Thanks, it really seems to work. In order to explain the fix, Konqueror (on kubuntu) returns a user agent string:

mozilla/5.0 (compatible; konqueror/3.5; linux) khtml/3.5.6 (like gecko)(kubuntu)

The fix takes the version number after khtml/

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN.

Note: See TracTickets for help on using tickets.