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 20302 - Document.execCommand should use optional arguments with default values
Summary: Document.execCommand should use optional arguments with default values
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - HTML Editing APIs (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: HTML Editing APIs spec bugbot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 06:35 UTC by contributor
Modified: 2015-09-02 15:21 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2012-12-08 06:35:21 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#the-document-object
Complete: http://www.whatwg.org/c#the-document-object

Comment:
Document.execCommand should use optional arguments with default values

Posted from: 173.48.81.109
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20121203 Firefox/20.0
Comment 1 Boris Zbarsky 2012-12-08 06:36:52 UTC
Something like:

  boolean execCommand(DOMString commandId, optional boolean showUI = false,
                      optional DOMString value = "");

Then http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#execcommand%28%29 wouldn't need to the first two steps it has right now.
Comment 2 Ian 'Hixie' Hickson 2012-12-31 05:11:33 UTC
Aryeh, do you want to just take execCommand entirely using a partial interface definition, rather than us having to coordinate IDL changes?

Alternatively, do you want this IDL change?
Comment 3 Aryeh Gregor 2012-12-31 12:53:26 UTC
I'm not maintaining the editing spec actively right now, so if you want to keep the IDLs entirely to yourself, please do and I'll update the editing spec (at some point) to normatively reference HTML for the IDL definitions.  This change seems like a good idea if there are no compat constraints.
Comment 4 Ian 'Hixie' Hickson 2013-03-06 20:26:31 UTC
Ok, I changed this. Reassigning to you to take care of any updates on your side.
Comment 5 contributor 2013-03-06 20:44:45 UTC
Checked in as WHATWG revision r7734.
Check-in comment: tweak IDL to be shorter
http://html5.org/tools/web-apps-tracker?from=7733&to=7734
Comment 6 Anne 2015-09-02 15:21:12 UTC
Removing the URL so it's no longer tracked by the HTML Standard since it's fixed there.