Bartosz Dziewoński
|
33d69e26c9
|
tests: Fix different whitespace trimming in PHP and JS
Notably, JS trims the no-break space, while PHP doesn't. There are
some other differences that don't come up in our tests. What we really
want is to trim the ASCII whitespace as defined in the HTML spec.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim
https://www.php.net/manual/en/function.trim.php
https://infra.spec.whatwg.org/#ascii-whitespace
Change-Id: I95b8fb38878716a2fa7ec84c9f2e8065ebe77c0d
|
2020-05-14 21:37:26 +00:00 |
|