diff --git a/webform.module b/webform.module index a0be5e2..89645b6 100644 --- a/webform.module +++ b/webform.module @@ -3591,6 +3591,11 @@ function theme_webform_element($variables) { } } + if (!empty($element['#description'])) { + $description_id = $element['#id'] . '--description'; + $element['#children'] = str_replace('aria-describedby="--WEBFORM-PLACEHOLDER--"', 'aria-describedby="' . $description_id . '"', $element['#children']); + } + switch ($element['#title_display']) { case 'inline': case 'before': @@ -3612,7 +3617,7 @@ function theme_webform_element($variables) { } if (!empty($element['#description'])) { - $output .= '