owner.textContent = cssText;
      }
    },

    rulesToCss: function(cssRules) {
      for (var i=0, css=[]; i < cssRules.length; i++) {
        css.push(cssRules[i].cssText);
      }
      return css.join('\n\n');
    },

    SCOPE_ATTR: 'needs-scoping'
  };

  addEventListener('DOMContentLoaded', styleProtector.scopeDocumentSheets());

})();
</script>
