[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 #18 from Maciej Stachowiak <mjs@apple.com> 2010-11-07 21:00:04 UTC ---
(In reply to comment #17)
> (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:

That may be true but it seems to meet your originally stated requirements. Is
there an additional "must not create a new browser window" requirement?

> 
> 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.

In theory, yes. In practice, no - at most it gets a user gesture limitation
like window.open.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Sunday, 7 November 2010 21:00:08 UTC