url icon indicating copy to clipboard operation
url copied to clipboard

Instances of split should link to Infra

Open GPHemsley opened this issue 8 years ago • 2 comments

The "IPv4 parser" and the "application/x-www-form-urlencoded parser" both use the word split without defining the algorithm to do so. In particular, this leaves ambiguous the case where the delimiter does not occur in the string or byte sequence.

Infra defines many different types of splits, but it is likely that the "strictly split" algorithm is what is intended here.

One caveat, however, is that the "application/x-www-form-urlencoded parser" operates on bytes, rather than on code points. This might require some finagling.

GPHemsley avatar Jun 11 '17 15:06 GPHemsley

See https://github.com/whatwg/url/pull/300/files#diff-03b21320f26423640f89c447968191e5R2381, https://github.com/whatwg/url/pull/300#issuecomment-297663843, https://github.com/whatwg/infra/issues/91

TimothyGu avatar Jun 12 '17 03:06 TimothyGu

Oh, very good.

GPHemsley avatar Jun 12 '17 04:06 GPHemsley