Am I missing something in Javascript ?
David Faure
david at mandrakesoft.com
Wed Nov 13 21:01:04 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 13 November 2002 19:43, CP Hennessy wrote:
> Hi,
> While trying to debug some javascript which does not
> work in Konqueror but does work in both Mozilla and IE,
> I tried to open a "debug window" and write some status
> messages to it.
> However this also does not work correctly in Konq, but does
> in IE and Moz!
>
> I'm attaching 2 very trivial html files :
> original.html contains very little and a small piece of JavaScript
> to open a new window with the contents fo the 2nd file, and then
> write a message to that window.
> empty.html contains only 3 lines of html.
>
> Is this a known bug or am I doing something really stupid ?
This is exactly #37007.
The two missing things for this testcase to work are:
1. using src='' instead of src='empty.html'
2. using <p> </p> around the text in document.writeln
Reason for 1. : we load urls asynchronously. So you first write into the
new window, and THEN empty.html gets loaded, overwriting what you
wrote into it. Not sure if this should be changed.... we surely can't block
the caller script until the URL is loaded, in general (think HTTP and very
slow servers). I guess other browsers just do it immediately for local files,
whereas the KIO architecture makes even file:// asynchronous.
Reason for 2. : dunno. Looks like a bug in the tokenizer.
> P.S. Another strange thing is that in both IE and Moz all of
> the menu's and other window decoration is anabled by default
> but not in Konq!
Ouch - sounds like a bug. Unspecified argument for the settings should mean
default, nor none. I'll check that later.
- --
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE90r2R72KcVAmwbhARAqm1AJkBg5+8MuAatApKuJ0C/cY9e590VwCgnktr
mHAkIVRtFMF1HkBALGR1ZnI=
=j9fp
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list