UA string.
David Faure
khtml-devel@kde.org
Mon, 24 Feb 2003 22:02:40 +0100
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 24 February 2003 20:49, Harri Porten wrote:
> On Mon, 24 Feb 2003, David Hyatt wrote:
>=20
> > Safari does not support document.all. Only Konqueror does. We do not=
=20
> > plan to unconditionally support document.all. Instead we plan to=20
> > selectively allow access to the .all property based off whether or not=
=20
> > we're using an MSIE-style UA string.
>=20
> We do the same btw:
>=20
> case All:
> // Disable document.all when we try to be Netscape-compatible
> if ( exec->interpreter()->compatMode() =3D=3D
> Interpreter::NetscapeCompat )
> return Undefined();
> return getHTMLCollection(exec,doc.all());
That's not exactly the same.
By default we are neither "IECompat" nor "NetscapeCompat".
When the user chooses a IE useragent, we set the former flag, when (s)he se=
lects
an NS useragent, we set the latter - and only in that case we disable docum=
ent.all.
So at the moment we do support document.all by default.
But given the recent discussions here, and the crazy stuff some sites send =
to
IE (VBScript, ActiveX, etc.), and given also my misunderstanding about=20
document.layers, I'd be fine with this being changed in Konqueror, so that
document.all is only supported in IE mode (this would simply mean changing =
the
above test to
if ( compatMode() !=3D Interpreter::IECompat )
Then we will hopefully get DOM code from (recent enough) websites
instead of IE-specific code.
Nothing's 100% for sure in this web jungle, but it's worth a try ;)
=2D --=20
David FAURE, faure@kde.org, sponsored by TrollTech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
How to write a Makefile.am for KDE/Qt code:
http://developer.kde.org/documentation/other/makefile_am_howto.html
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+Wohw72KcVAmwbhARAr74AKCp+E9FC+RcsomZYvKoR1GSScT4RgCgrFyj
R0KWkpyRV03tfXR2px1gkYE=3D
=3DrK1C
=2D----END PGP SIGNATURE-----