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 20286 - Document.open() method should use default values to simplify spec prose
Summary: Document.open() method should use default values to simplify spec prose
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: 2013 Q2
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-07 07:35 UTC by contributor
Modified: 2013-04-12 22:55 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-12-07 07:35:01 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html
Multipage: http://www.whatwg.org/C#the-document-object
Complete: http://www.whatwg.org/c#the-document-object

Comment:
Document.open() method should use default values to simplify spec prose

Posted from: 173.48.81.109 by bzbarsky@mit.edu
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-07 07:36:02 UTC
The first overload of Document.open should probably look like this:

  Document open(optional DOMString type = "text/html",
                optional DOMString replace = "");

so that the prose doesn't have to worry about missing values.
Comment 2 Boris Zbarsky 2012-12-07 07:56:12 UTC
And the second overload should be:

  WindowProxy open(DOMString url, DOMString name, DOMString features,
                   optional boolean replace = false);
Comment 3 Ian 'Hixie' Hickson 2012-12-07 22:32:47 UTC
Yeah, but let me get back to this in a few months.
Comment 4 contributor 2013-04-12 22:55:53 UTC
Checked in as WHATWG revision r7822.
Check-in comment: Use more WebIDL (and some minor editorial fixes I forgot to commit before making the WebIDL change)
http://html5.org/tools/web-apps-tracker?from=7821&to=7822