Permalink
Browse files

HTML validation tweak: append style to <head>

This avoids spurious HTML validation errors caused by stylebot appending
stylesheets into the document body.
  • Loading branch information...
1 parent d755404 commit a52462bbf07bd28bbba40203d515d78d591df6d4 @acdha committed Feb 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 stylebot/js/libs/css-utils.js
@@ -70,7 +70,7 @@ var CSSUtils = {
if (id != undefined)
style.setAttribute("id", id);
style.appendChild(document.createTextNode(css));
- document.documentElement.appendChild(style);
+ document.head.appendChild(style);
},
// parser object is that returned by JSCSSP

0 comments on commit a52462b

Please sign in to comment.