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 20300 - getItems should use a default value for the optional argument
Summary: getItems should use a default value for the optional argument
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 06:00 UTC by contributor
Modified: 2013-02-09 22:10 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-12-08 06:00:46 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:
getItems should use a default value for the optional argument

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-08 06:01:06 UTC
  NodeList getItems(optional DOMString typeNames = "");

and then the prose doesn't have to worry about it being missing.
Comment 2 Ian 'Hixie' Hickson 2013-02-09 22:08:51 UTC
bz: I bet people will now start filing bugs saying the spec doesn't handle the case of the attribute being omitted and I'll end up having to mention it in the prose redundantly anyway... :-P
Comment 3 contributor 2013-02-09 22:10:04 UTC
Checked in as WHATWG revision r7718.
Check-in comment: Use WebIDL instead of prose.
http://html5.org/tools/web-apps-tracker?from=7717&to=7718