diff --git a/core/includes/common.inc b/core/includes/common.inc index c47494e8827..e7ebd1f4cdd 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -4012,9 +4012,6 @@ function drupal_pre_render_scripts($elements) { '#type' => 'html_tag', '#tag' => 'script', '#value' => '', - '#attributes' => array( - 'type' => 'text/javascript', - ), ); // Loop through each group. diff --git a/core/modules/filter/lib/Drupal/filter/Tests/FilterUnitTest.php b/core/modules/filter/lib/Drupal/filter/Tests/FilterUnitTest.php index 7dab9f6c6df..250b583a1bf 100644 --- a/core/modules/filter/lib/Drupal/filter/Tests/FilterUnitTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterUnitTest.php @@ -859,15 +859,15 @@ www.example.com with a newline in comments --> $f = _filter_htmlcorrector('
دروبال'); $this->assertEqual($f, '
دروبال
', t('HTML corrector -- Encoding is correctly kept.')); - $f = _filter_htmlcorrector(''); - $this->assertEqual($f, ''); + $this->assertEqual($f, '', t('HTML corrector -- CDATA added to script element')); - $f = _filter_htmlcorrector(''); - $this->assertEqual($f, ''); + $this->assertEqual($f, ''); - $this->assertEqual($filtered_data, ''); - $this->assertEqual($filtered_data, '' . "\n"; + $output .= '' . "\n"; $output .= "