diff -u b/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php b/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php --- b/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php +++ b/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php @@ -85,25 +85,19 @@ ); $tags[] = array($element, "
value
\n"); - // Ensure that #value, #value_prefix and #value_suffix are not filtered if - // they marked as safe. + // Ensure that #value is not filtered if it is marked as safe. $element = array( '#tag' => 'p', '#value' => SafeString::create(''), - '#value_prefix' => SafeString::create(''), - '#value_suffix' => SafeString::create(''), ); - $tags[] = array($element, "\n"); + $tags[] = array($element, "\n"); - // Ensure that #value, #value_prefix and #value_suffix are filtered if they - // are not safe. + // Ensure that #value is filtered if they are not safe. $element = array( '#tag' => 'p', '#value' => '', - '#value_prefix' => '', - '#value_suffix' => '', ); - $tags[] = array($element, "alert()valuealert()
\n"); + $tags[] = array($element, "value
\n"); return $tags; }