This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In http://encoding.spec.whatwg.org/#textencoder [[ Uint8Array encode(optional [EnsureUTF16] DOMString input = "", optional TextEncodeOptions options); ]] the extended attribute is expected before the "optional" keyword.
This seems poor from a readability perspective as the annotation is about the type.
https://github.com/whatwg/encoding/commit/18661066238357d6f2da5b8ca59b4055f00fad3d