Closed Bug 43660 Opened 25 years ago Closed 25 years ago

prompt does not return null cancel selected: NN4 and IE do

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED DUPLICATE of bug 12021

People

(Reporter: gpetruc, Assigned: jst)

Details

Attachments

(1 file)

I'm using Build M16 with talkback on Win2000 and Win98 Second Edition: The window.prompt() method does not return null if I press the Cancel button. It returns a zero-length string instead. This happens with Netscape 6 too (it's mozilla m14). Netscape 4.7 and Internet Explorer 5 (but Even Netscape 3) do return null. You can try by executing alert(prompt("Hi?")). On Client-Side JavaScript 1.3 Reference taken from developer.netscape.com does not specify what should prompt() method return, but null looks more rational.
DOM issue, not JavaScript engine - reassigning
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Summary: prompt does not return null cancel selected: NN4 and IE do → prompt does not return null cancel selected: NN4 and IE do
Attached file Simple testcase
This was fixed some time ago, probably post M16. The fix was done by danm, see bug 12021. Duping... *** This bug has been marked as a duplicate of 12021 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: