Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
14.10.12
-
Chrome 114
-
Integration
-
High
-
Easy
-
N/A
-
N/A
-
Description
Follow these steps to reproduce:
- go to "Wiki Administration / Content / PDF Export" and set the Chrome Docker container name to "%^&*" (without the quotes)
- click outside the text input in order to lose the focus and trigger the client-side validation
Expected: the text input border turns red to indicate that its value is not valid.
Actual: the text input border remains blue, and the value is considered valid
This is a regression caused by a change in the Chrome behaviour between v113 and v114. If you check the JavaScript console:
- on v113 we get the following warning:
Pattern attribute value [a-zA-Z0-9][a-zA-Z0-9_.-]+ is valid with the RegExp `u` flag, but not with the `v` flag: Uncaught SyntaxError: Invalid regular expression: /[a-zA-Z0-9][a-zA-Z0-9_.-]+/v: Invalid character in character class. See https://crbug.com/1412729
- on v114 we get the following error:
Pattern attribute value [a-zA-Z0-9][a-zA-Z0-9_.-]+ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /[a-zA-Z0-9][a-zA-Z0-9_.-]+/v: Invalid character in character class
The linked Chrome issue is https://bugs.chromium.org/p/chromium/issues/detail?id=1412729 .