This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
sorry, I found it was valid webidl notation. http://www.w3.org/TR/WebIDL/#dfn-optional-argument-default-value thanks Jxck