From 1081f570bd2a0114dcd76bf0fd2da18227bdfd70 Mon Sep 17 00:00:00 2001 From: zepumph Date: Mon, 22 Jul 2019 13:48:13 -0800 Subject: [PATCH] added TODO< https://github.com/phetsims/chipper/issues/779 --- js/common/ChipperStringUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/common/ChipperStringUtils.js b/js/common/ChipperStringUtils.js index e9913e53d..4edfa25f5 100644 --- a/js/common/ChipperStringUtils.js +++ b/js/common/ChipperStringUtils.js @@ -135,6 +135,7 @@ if ( element.hasOwnProperty( 'value' ) ) { // remove leading/trailing whitespace, see chipper#619. Do this before addDirectionalFormatting + // TODO: some a11y strings have leading/trailing whitespace purposefully, perhaps we should formalize that somehow, https://github.com/phetsims/chipper/issues/779 element.value = element.value.trim(); element.value = ChipperStringUtils.addDirectionalFormatting( element.value, isRTL ); }