DescriptionEncoding API: ignore leading/trailing whitespace in labels
Per spec, matching of labels should be done after removing leading and
trailing ASCII whitespace[1]. A specific definition of whitespace is
given in the spec[2].
Test was adapted from web-platform-tests[3] but extended to cover
failure more cases and the encoder side; this will be
upstreamed/deduped eventually.
[1] https://encoding.spec.whatwg.org/#names-and-labels
[2] https://encoding.spec.whatwg.org/#ascii-whitespace
[3] https://github.com/w3c/web-platform-tests/blob/master/encoding/textdecoder-labels.html
R=jshin@chromium.org
BUG=479785
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194676
Patch Set 1 #
Messages
Total messages: 7 (1 generated)
|