Skip to content

Commit

Permalink
make use of documentElement.outerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
twalker committed Sep 10, 2014
1 parent 1b606af commit 6843735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ require(['inline-styles', 'text!example.html'], function(inlineStyles, fixture){
console.time('inlineStyles');
inlineStyles(doc);
console.timeEnd('inlineStyles')
form.querySelector('[name="dest"]').value = doc.head.outerHTML + '\n' + doc.body.outerHTML;
form.querySelector('[name="dest"]').value = doc.documentElement.outerHTML;

var inputLength = form.querySelector('[name="src"]').value.length
var outputLength = form.querySelector('[name="dest"]').value.length
Expand Down

0 comments on commit 6843735

Please sign in to comment.