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 27879 - " [NewObject] Uint8Array encode(optional USVStr..."
Summary: " [NewObject] Uint8Array encode(optional USVStr..."
Status: RESOLVED INVALID
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Encoding (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+encodingspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-22 07:39 UTC by Jxck
Modified: 2015-01-22 08:40 UTC (History)
2 users (show)

See Also:


Attachments

Description Jxck 2015-01-22 07:39:16 UTC
https://encoding.spec.whatwg.org/#textencoder

[[
  [NewObject] Uint8Array encode(optional USVString input = "");

]]

it seems a little strange for me.
"input is a optional" is covered under "input is empty string if omitted".

so is it enough to describe with no optional ?

[[
  [NewObject] Uint8Array encode(USVString input = "");

]]

thanks
Jxck
Comment 1 Jxck 2015-01-22 07:40:49 UTC
sorry, I found it was valid webidl notation.

http://www.w3.org/TR/WebIDL/#dfn-optional-argument-default-value

thanks
Jxck