This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23427 - Dialog element method names need to be aligned better.
Summary: Dialog element method names need to be aligned better.
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Macintosh All
: P3 normal
Target Milestone: ---
Assignee: Edward O'Connor
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 18:43 UTC by ben
Modified: 2015-06-17 03:41 UTC (History)
4 users (show)

See Also:


Attachments

Description ben 2013-10-02 18:43:16 UTC
"show()" and "close()" don't make a very obvious pair in terms of method names. This is pretty bad from a semantics point of view.

How about show(), showModal() and hide() ? Or open(), openModal() and close() ?

I'm also not convinced of the value of show() on its own. What is there here that can't be done better and more clearly with one line of jQuery, in terms of form elements in the DOM

 The really useful part of this spec is the pending dialog stack. I think "show()" should be axed, and "showModal()" should be renamed "open()".
Comment 1 Michael[tm] Smith 2015-06-17 03:41:42 UTC
We are past the point where it's possible to make naming changes here.