From: Martin W. <mwe...@pl...> - 2003-11-07 10:48:50
|
On Thursday 06 November 2003 17:18, Raymond Irving wrote: > Yes we would love to hear about your findings. =46rom what I learned about the relation between safari and konqueror fr= om=20 public sources I expected them to be more or less the same. Apple also to= ok=20 the JS part from the kde project, but now it seems to me that they have d= one=20 many modfications. As apple sends back their work to the kde people there= =20 should be a convergence between these two. Nobody actually claimed but I=20 thought first outcomes of would be implemented in konqueror in 3.Q. this = year.=20 I still must get kde3.2 to check. With my version 3.0.3: if I leave the the user agent to the default strin= g=20 (Mozilla/5.0 (compatible; Konqueror/3; Linux) almost none of the examples= =20 work. Changing ua to Mozilla M18 ("Mozilla/5.0 (Windows; U; WinNT4.0; en-= US;=20 m18) Gecko/2001010") gives he same effect.=20 Best results I do get if I set ua to IE5.5 Win2000 ("Mozilla/4.0 (compati= ble;=20 MSIE 5.5;Windows NT 5.0)"), the last thing I expected ... The 'basic' and= =20 most important examples work (and - besides - my web-mapping projects)= =2E Ok, what I did - bad, bad - I fumbled with dynapi.js : [... ] =20 this.safari =3D ua.indexOf("safari")>-1; // always check for safari & o= pera=20 // may be next line was me or it was in one of the snapshots this.konqueror =3D ua.indexOf("konqueror")>-1; this.opera =3D ua.indexOf("opera")>-1; // before ns or ie [...] }else if (this.safari) { // safari part untouched this.ns6 =3D (this.v>=3D5); // ns6 compatible correct? this.b =3D "Safari"; }else if (this.konqueror) { // my quirk this.ie =3D this.ie6 =3D true; this.v =3D 6; this.b =3D "MSIE"; }=20 [...] this.win32 =3D ((ua.indexOf("win")>-1) || this.konqueror); [...] Sure the kde people like to kill me for that Maybe it would be enough to : [ ... ] }else if (this.safari || this.konqueror)) { =20 this.ns6 =3D (this.v>=3D5); // ns6 compatible correct? (this.safari)?this.b =3D "Safari":this.b =3D "Konqueror";=20 [ ... ] Cheers, Martin |