Skip to content

Commit

Permalink
[VarDumper] fixed HtmlDumper to target specific the head tag
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaDens authored and nicolas-grekas committed Aug 25, 2015
1 parent ffdab92 commit cbba074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php
Expand Up @@ -129,7 +129,7 @@ protected function getDumpHeader()
e.addEventListener(n, cb, false);
};
doc.documentElement.firstChild.appendChild(refStyle);
(doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle);
if (!doc.addEventListener) {
addEventListener = function (element, eventName, callback) {
Expand Down

0 comments on commit cbba074

Please sign in to comment.