- From: <bugzilla@jessica.w3.org>
- Date: Sun, 07 Nov 2010 20:56:32 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10645 --- Comment #17 from Everett Zufelt <everett@zufelt.ca> 2010-11-07 20:56:32 UTC --- (In reply to comment #16) > (In reply to comment #13) > > I'm curious why this isn't sufficient as a modal dialog feature: > > > > http://dev.w3.org/html5/spec/Overview.html#dom-showmodaldialog > > Why is window.alert() not sufficient. > > 1. although the alert() message is configurable, it is not really very > configurable. What if I want to ask for a name, phone number, e-mail address, > subject and comment in the dialog? > > 2. What if I want users of my CMS to be able to open administrative pages as a > modal dialog while keeping the context of the page from which they launched the > administrative pages in the background? > > 3. What if I want a modal lightbox to present multimedia? > > 4. I do not believe that CSS can be applied to dialogs created by alert(). > > I am sure that there are many other use-cases and drawbacks to using alert. > This would seem to be true based on the number of UI toolkits that provide a > modal dialog UI component. Responded to wrong section of the spec. Why is showmodaldialog() not sufficient. 1. Requires a new browser window. 2. Can be mistaken for a popup window (since it is a new window) see: User agents are expected to disable this method in certain cases to avoid user annoyance (e.g. as part of their popup blocker feature). For instance, a user agent could require that a site be white-listed before enabling this method, or the user agent could be configured to only allow one modal dialog at a time. Thanks -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Sunday, 7 November 2010 20:56:34 UTC