W3C home > Mailing lists > Public > public-html-comments@w3.org > June 2009

Re: HTML 5 window.showModalDialog parameters

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 3 Jun 2009 20:12:40 +0000 (UTC)
To: "Smith, Jeremy" <jeremys@qualcomm.com>
Cc: "public-html-comments@w3.org" <public-html-comments@w3.org>
Message-ID: <Pine.LNX.4.62.0906032011100.1648@hixie.dreamhostps.com>
On Thu, 9 Apr 2009, Smith, Jeremy wrote:
> The 
> sFeatures<http://msdn.microsoft.com/en-us/library/ms536759(VS.85).aspx> 
> (IE) or 
> options<https://developer.mozilla.org/en/DOM/window.showModalDialog> 
> (FF) parameter to window.showModalDialog appears to be missing in the 
> HTML 5 spec for this API.  I'm wondering how the user of the API will 
> then be able to control the size and placement of the dialog, for 
> example?

The user agent is able to control the placement and size of the dialog for 
the optimal user experience; the author doesn't have to give a position at 
all. (Indeed, the author is in no position to know what the best size 
should be, since it could vary based on the user's preferences, font 
settings, etc.)

> I'm also curious as to why the signature does not match the currently 
> implemented version of the API in most major browsers (Chrome, Safari, 
> IE, FF)?

Since the features argument is the last argument, and it does nothing in 
HTML5, I figured it was simpler to just omit it (extra arguments are 

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 3 June 2009 20:13:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:25 UTC