[Bug 10645] Add a modal attribute to html5 to indicate a modal segment of the DOM (modal dialog)

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10645

--- Comment #16 from Everett Zufelt <everett@zufelt.ca> 2010-11-07 20:50:02 UTC ---
(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.

-- 
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:50:04 UTC