normalize-space xpath function normalize full width space to half width space
Reported by
buzz.ta...@gmail.com,
Oct 10
|
||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Steps to reproduce the problem:
1. Evaluate `document.evaluate('normalize-space("い ろ は")', document).stringValue`.
2. It returns `"い ろ は"`.
What is the expected behavior?
Expected result is `"い ろ は"`.
What went wrong?
I think that normalize-space should not normalize full width space.
https://www.w3.org/TR/xpath-functions-31/#func-normalize-space wrote:
> The whitespace characters are defined in the metasymbol S (Production 3) of [Extensible Markup Language (XML) 1.0 (Fifth Edition)].
And https://www.w3.org/TR/xml/#NT-S wrote:
> S (white space) consists of one or more space (#x20) characters, carriage returns, line feeds, or tabs.
> [3] S ::= (#x20 | #x9 | #xD | #xA)+
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 69.0.3497.100 Channel: stable
OS Version:
Flash Version:
,
Oct 15
Able to reproduce the issue on Mac 10.13.3, Win-10 and Ubuntu 14.04 using chrome reported version #69.0.3497.100 and latest canary #72.0.3581.0. This is a non-regression issue as it is observed from M60 old builds. Hence, marking it as untriaged to get more inputs from dev team. Thanks...!! |
||
►
Sign in to add a comment |
||
Comment 1 by swarnasree.mukkala@chromium.org
, Oct 10