Skip to content

Commit

Permalink
Order stylesheet attributes the same as link attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Sep 16, 2016
1 parent c5102ea commit 6a433b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/document/renderer/html/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function fetchHead($document)
// Generate stylesheet links
foreach ($document->_styleSheets as $strSrc => $strAttr)
{
$buffer .= $tab . '<link rel="stylesheet" href="' . $strSrc . '"';
$buffer .= $tab . '<link href="' . $strSrc . '" rel="stylesheet"';

if (!is_null($strAttr['mime']) && (!$document->isHtml5() || !in_array($strAttr['mime'], $defaultCssMimes)))
{
Expand Down

0 comments on commit 6a433b7

Please sign in to comment.