From c49f213fcf659ba96bc2f03ca37ed1ebcd9fb38a Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 30 Nov 2008 05:25:37 +0000 Subject: [PATCH] Adding spaces before self close of meta link elements. W3C recommends a space before />. Fixes #5821 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7899 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index 2e28e03a7..f42cfd44e 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -231,12 +231,12 @@ class HtmlHelper extends AppHelper { if (isset($attributes['link'])) { if (isset($attributes['rel']) && $attributes['rel'] === 'icon') { - $out = sprintf($this->tags['metalink'], $attributes['link'], $this->_parseAttributes($attributes, array('link'))); + $out = sprintf($this->tags['metalink'], $attributes['link'], $this->_parseAttributes($attributes, array('link'), ' ', ' ')); $attributes['rel'] = 'shortcut icon'; } else { $attributes['link'] = $this->url($attributes['link'], true); } - $out .= sprintf($this->tags['metalink'], $attributes['link'], $this->_parseAttributes($attributes, array('link'))); + $out .= sprintf($this->tags['metalink'], $attributes['link'], $this->_parseAttributes($attributes, array('link'), ' ', ' ')); } else { $out = sprintf($this->tags['meta'], $this->_parseAttributes($attributes, array('type'))); }