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 21642 - "Percent decode" problem with "remaining"
Summary: "Percent decode" problem with "remaining"
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-09 19:09 UTC by Ian 'Hixie' Hickson
Modified: 2013-04-24 16:16 UTC (History)
2 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-04-09 19:09:54 UTC
"remaining" is set to "string" in step 2, and never modified, so all the escape sequences are decoded looking at the first two characters. :-)

You probably want to define the term somehow, rather than setting its value ("let ... be ..."). (Compare this algorithm to other algorithms that use "let". We consistently use "let" to mean a static assignment action, rather than a general definition.)
Comment 1 Ian 'Hixie' Hickson 2013-04-09 19:12:44 UTC
Same problem with "c".

You defined "pointer" ok, because you "let pointer be ... zero", and then you modify its value explicitly.
Comment 2 Anne 2013-04-24 16:16:13 UTC
https://github.com/whatwg/url/commit/4a0d68acecacc27d1b87fdde8b388cd4048d6f37

I defined them as generic parser concepts now.