Fixes #3325: fixed generated markup for conditional comments

No changelog line since feature was introduced after beta
This commit is contained in:
Alexander Makarov
2014-05-02 15:29:26 +04:00
parent 009238156e
commit a4c644d3a3
2 changed files with 4 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ class BaseHtml
if (isset($options['condition'])) {
$condition = $options['condition'];
unset($options['condition']);
return "<!--[if $condition]-->\n" . static::tag('link', '', $options) . "\n<![endif]-->";
return "<!--[if $condition]>\n" . static::tag('link', '', $options) . "\n<![endif]-->";
} else {
return static::tag('link', '', $options);
}
@@ -243,7 +243,7 @@ class BaseHtml
if (isset($options['condition'])) {
$condition = $options['condition'];
unset($options['condition']);
return "<!--[if $condition]-->\n" . static::tag('script', '', $options) . "\n<![endif]-->";
return "<!--[if $condition]>\n" . static::tag('script', '', $options) . "\n<![endif]-->";
} else {
return static::tag('script', '', $options);
}