URI icon indicating copy to clipboard operation
URI copied to clipboard

Why does return value of querystring() contain the ?

Open bpanulla opened this issue 14 years ago • 1 comments

More of a question than an issue, but why not strip off the question mark character from the value returned by querystring()? I always saw that as more of a delimiter than part of the value. I'll need to strip it off in my code, but is there a reason why the library method couldn't (or more likely shouldn't) do it?

bpanulla avatar Jun 27 '11 16:06 bpanulla

bpanulla wrote:

More of a question than an issue, but why not strip off the question mark character from the value returned by querystring()? I always saw that as more of a delimiter than part of the value. I'll need to strip it off in my code, but is there a reason why the library method couldn't do it?

http://example.org/foo#

how else would you know there was an empty fragment?

webr3 avatar Jun 27 '11 16:06 webr3