[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    Bug#45996: The behavior of the "with" statement
From:       mattias () sudac ! org
Date:       2002-07-31 14:28:50
[Download RAW message or body]

Package: kjs
Version: KDE 3.0.1 
Severity: normal
Installed from:    Debian testing/unstable Packages
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

This javascript does not behave as in IE, Mozilla and Opera. The input objects of the \
form seams to be one level to high in the DOM tree.

Example:

<html>
<head>
<script>
function test()
{
        var foo = "bla";

        // the local variable foo will be overided by the input box named foo 
        with(document)
                dummyform.bar.value = foo;
}
</script>
</head>
<body>
<form name="dummyform">
foo:<input type="text" name="foo"><br>
bar:<input type="text" name="bar"><br>
<input type="button" value="Click" onClick="test()">
</form>
</body>
</html>


(Submitted via bugs.kde.org)


(Complete bug history is available at http://bugs.kde.org/db/45/45996.html)
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
http://mail.kde.org/mailman/listinfo/konq-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic