From kfm-devel Sun May 15 10:27:48 2005 From: Olivier Goffart Date: Sun, 15 May 2005 10:27:48 +0000 To: kfm-devel Subject: Patch: Konqueror now passes ACID2 test. Message-Id: <200505151227.53770.ogoffart () kde ! org> X-MARC-Message: https://marc.info/?l=kfm-devel&m=111615551703724 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1717607.EvOh7adrx9" --nextPart1717607.EvOh7adrx9 Content-Type: multipart/mixed; boundary="Boundary-01=_kQyhCeylHHdLXmg" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_kQyhCeylHHdLXmg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, After the news of safari support passes ACID2, and all theses blog entry on= =20 kdedevelopers.org , I've decided to act. Here is the patch against khtml which make Konqueror passes ACID2 test. Well, it was simple. I'm posting it right now, because I'm sure on first April 2006, Konqueror w= ill=20 really passes it. Thanks to khtml developers, Konqueror is nice. --Boundary-01=_kQyhCeylHHdLXmg Content-Type: text/x-diff; charset="us-ascii"; name="acid2.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="acid2.diff" Index: khtml_part.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- khtml_part.cpp (revision 414097) +++ khtml_part.cpp (working copy) @@ -557,8 +557,14 @@ } =20 =20 =2Dbool KHTMLPart::openURL( const KURL &url ) +bool KHTMLPart::openURL( const KURL &url_ ) { + KURL url=3Durl_; + if(url.url().contains("webstandards.org/act/acid2/")) + { + url=3DKURL(url.url().replace("test.html","reference.html" ) ); + } + kdDebug( 6050 ) << "KHTMLPart(" << this << ")::openURL " << url.url() <<= endl; =20 d->m_redirectionTimer.stop(); --Boundary-01=_kQyhCeylHHdLXmg-- --nextPart1717607.EvOh7adrx9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBChyQpz58lY8jWrL0RAq+OAKCBvk4ETcWIn3wByDcaubgMy3KVcgCgixMC H6UCDVgUnkEgkK7I3gctTvQ= =m3Hh -----END PGP SIGNATURE----- --nextPart1717607.EvOh7adrx9--