Bug Tracker

Modify

Ticket #1341 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

jQuery 1.1.3 fails completely in Konqueror 3.5.5 !

Reported by: frando Owned by:
Priority: critical Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: konqueror Cc:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 6 years ago by frando

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

comment:2 Changed 6 years 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/

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

comment:4 Changed 6 years 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/

comment:5 Changed 6 years ago by john

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

Fixed in SVN.

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.