diff --git a/core/includes/form.inc b/core/includes/form.inc index 3383ead668..d507c978a8 100644 --- a/core/includes/form.inc +++ b/core/includes/form.inc @@ -416,7 +416,7 @@ function template_preprocess_textarea(&$variables) { * creates children elements that have their own labels and required markers, * but the parent element should have neither. Use this carefully because a * field without an associated label can cause accessibility challenges. - + * * To associate the label with a different field, set the #label_for property * to the ID of the desired field. * diff --git a/core/modules/file/src/Tests/FileFieldDisplayTest.php b/core/modules/file/src/Tests/FileFieldDisplayTest.php index 2a27e24812..629eee7288 100644 --- a/core/modules/file/src/Tests/FileFieldDisplayTest.php +++ b/core/modules/file/src/Tests/FileFieldDisplayTest.php @@ -109,7 +109,7 @@ public function testNodeDisplay() { // Regression test. Verify the file fields don't contain duplicate HTML IDs. // @todo The ajax wrapper has a duplicate ID and is skipped in this test. // @see https://www.drupal.org/node/2346893 - $this->assertNoDuplicateIds('', 'Other', ["edit-$field_name-ajax-wrapper"]); + $this->assertNoDuplicateIds('File fields do not contain duplicate IDs.', 'Other', ["edit-$field_name-ajax-wrapper"]); } /**