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 27873 - statement "Replace outputPair’s name and value with the result of running encode on them" doesn't much types.
Summary: statement "Replace outputPair’s name and value with the result of running enc...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 11:25 UTC by Jxck
Modified: 2015-08-13 08:08 UTC (History)
3 users (show)

See Also:


Attachments

Description Jxck 2015-01-21 11:25:26 UTC
at https://url.spec.whatwg.org/#concept-urlencoded-serializer

step 3-2 says

"Replace outputPair’s name and value with the result of running encode on them using encoding override, respectively."

outpuPair's name and value is USVString,
but encoded result is byte stream.

so "replace" doesn't fit, and it seems  better to let new variable for here.

thanks
Jxck
Comment 1 Anne 2015-01-21 12:35:36 UTC
That depends on the language, no? For English it seems fine for variables to not require static typing :-)