diff --git a/includes/common.inc b/includes/common.inc
index fbad974..e1b1c9a 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -310,8 +310,7 @@ function _drupal_default_html_head() {
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array(
- 'http-equiv' => 'Content-Type',
- 'content' => 'text/html; charset=utf-8',
+ 'charset' => 'utf-8',
),
// Security: This always has to be output first.
'#weight' => -1000,
@@ -3218,16 +3217,12 @@ function drupal_pre_render_styles($elements) {
'#type' => 'html_tag',
'#tag' => 'link',
'#attributes' => array(
- 'type' => 'text/css',
'rel' => 'stylesheet',
),
);
$style_element_defaults = array(
'#type' => 'html_tag',
'#tag' => 'style',
- '#attributes' => array(
- 'type' => 'text/css',
- ),
);
// Loop through each group.
@@ -4133,9 +4128,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS
$element = array(
'#tag' => 'script',
'#value' => '',
- '#attributes' => array(
- 'type' => 'text/javascript',
- ),
+ '#attributes' => array(),
);
foreach ($items as $item) {
$query_string = empty($item['version']) ? $default_query_string : $js_version_string . $item['version'];
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index 6cee722..9bad125 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -653,7 +653,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase {
*/
function testRenderInlinePreprocess() {
$css = 'body { padding: 0px; }';
- $css_preprocessed = '';
+ $css_preprocessed = '';
drupal_add_css($css, array('type' => 'inline'));
$styles = drupal_get_css();
$this->assertEqual(trim($styles), $css_preprocessed, t('Rendering preprocessed inline CSS adds it to the page.'));