Konqueror...

Konqueror...


I've been messing around trying to get jquery to support konqueror.
Don't know if you all have discussed this, but one hack that seems to
work well is to treat it as part of safari. The following is the hack
that
I've had success with, since konqueror is most like safari and shares
code
with same.
In particular this fixes problems in jquery.history.js which is one
place
where konqueror and safari are identical in their quirks.
Tested on both konqueror 3.5.9 and 4.0.5, and works well in both.
With this hack the version number is irrational to code expecting a
safari
like 3 digit version number. Oh well.
// Line 1233 in jquery-1.2.6.js
// change is on line beginning with 'safari:'
jQuery.browser = {
    version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])
[1],
    safari: /webkit/.test( userAgent ) || /konqueror/.test( userAgent),
    opera: /opera/.test( userAgent ),
    msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
    mozilla: /mozilla/.test( userAgent ) && !/(compatible|
webkit)/.test( userAgent )
};
Enjoy,
Phil