Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions libraries/src/Document/Renderer/Html/HeadRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,23 +223,23 @@ public function fetchHead($document)
$buffer .= ' type="' . $type . '"';
}

$buffer .= '>' . $lnEnd;
$buffer .= '>';

// This is for full XHTML support.
if ($document->_mime != 'text/html')
{
$buffer .= $tab . $tab . '/*<![CDATA[*/' . $lnEnd;
}

$buffer .= $content . $lnEnd;
$buffer .= $content;

// See above note
if ($document->_mime != 'text/html')
{
$buffer .= $tab . $tab . '/*]]>*/' . $lnEnd;
}

$buffer .= $tab . '</style>' . $lnEnd;
$buffer .= '</style>' . $lnEnd;
}

// Generate scripts options
Expand Down Expand Up @@ -348,23 +348,23 @@ public function fetchHead($document)
$buffer .= ' type="' . $type . '"';
}

$buffer .= '>' . $lnEnd;
$buffer .= '>';

// This is for full XHTML support.
if ($document->_mime != 'text/html')
{
$buffer .= $tab . $tab . '//<![CDATA[' . $lnEnd;
}

$buffer .= $content . $lnEnd;
$buffer .= $content;

// See above note
if ($document->_mime != 'text/html')
{
$buffer .= $tab . $tab . '//]]>' . $lnEnd;
}

$buffer .= $tab . '</script>' . $lnEnd;
$buffer .= '</script>' . $lnEnd;
}

// Output the custom tags - array_unique makes sure that we don't output the same tags twice
Expand Down