diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php
index de68c6861fb..3e8ff83fcd4 100644
--- a/cake/libs/view/helpers/html.php
+++ b/cake/libs/view/helpers/html.php
@@ -237,7 +237,7 @@ function meta($type, $url = null, $attributes = array(), $inline = true) {
}
$out .= sprintf($this->tags['metalink'], $attributes['link'], $this->_parseAttributes($attributes, array('link'), ' ', ' '));
} else {
- $out = sprintf($this->tags['meta'], $this->_parseAttributes($attributes, array('type')));
+ $out = sprintf($this->tags['meta'], $this->_parseAttributes($attributes, array('type'), ' ', ' '));
}
if ($inline) {
diff --git a/cake/tests/cases/libs/view/helpers/html.test.php b/cake/tests/cases/libs/view/helpers/html.test.php
index 2ade552ad64..d6d3be54ee0 100644
--- a/cake/tests/cases/libs/view/helpers/html.test.php
+++ b/cake/tests/cases/libs/view/helpers/html.test.php
@@ -844,6 +844,8 @@ function testMeta() {
$result = $this->Html->meta('keywords', 'these, are, some, meta, keywords');
$this->assertTags($result, array('meta' => array('name' => 'keywords', 'content' => 'these, are, some, meta, keywords')));
+ $this->assertPattern('/\s+\/>$/', $result);
+
$result = $this->Html->meta('description', 'this is the meta description');
$this->assertTags($result, array('meta' => array('name' => 'description', 'content' => 'this is the meta description')));