Defaultless prompt()s default to "undefined" in IE

Bug #411729 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Fix Released
Medium
David Coles

Bug Description

JavaScript prompt()s without a default value specified appear with the default text "undefined" in IE8. This is undesirable, and considered a blocker for declaring IE8 support.

It doesn't affect WebKit, Gecko or Presto.

This should hopefully be fixed by replacing all uses of prompt() with something better.

Tags: ie8
Revision history for this message
David Coles (dcoles) wrote :

Something better being jQuery UI? I believe that was the plan discussed at some point. Certainly it gives us a lot more flexibility and doesn't take out all open tabs with it's modal demands.

(And surely IE8 shouldn't be rendering null and undefined in this case?)

Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 411729] Re: Defaultless prompt()s default to "undefined" in IE

On Tue, 2009-08-11 at 01:31 +0000, David Coles wrote:
> Something better being jQuery UI? I believe that was the plan discussed
> at some point. Certainly it gives us a lot more flexibility and doesn't
> take out all open tabs with it's modal demands.

Yes, jQuery UI dialogs are the new solution.

> (And surely IE8 shouldn't be rendering null and undefined in this case?)

I suspect they want to discourage developers as much as possible from
using alert() and prompt(); they're utterly awful in IE[78].

Revision history for this message
Matt Giuca (mgiuca) wrote :

Solution to this bug is to change them all to prompt("").

Using jQuery will be considered the solution to Bug #411731.

Changed in ivle:
milestone: none → 1.0
David Coles (dcoles)
Changed in ivle:
status: Triaged → In Progress
assignee: nobody → David Coles (dcoles)
David Coles (dcoles)
Changed in ivle:
status: In Progress → Fix Committed
Revision history for this message
David Coles (dcoles) wrote :

All uses of prompt have been fixed so that they have a default text (usually just "").

William Grant (wgrant)
Changed in ivle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.