mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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
This commit is contained in:
parent
090028403b
commit
c49f213fcf
1 changed files with 2 additions and 2 deletions
|
@ -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')));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue