Permalink
Browse files

comment

  • Loading branch information...
1 parent 294a1ec commit fb6acaaf55e450fb237cff0eca6be6ca28a8b428 @dbrans dbrans committed Mar 17, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/helpers.js
View
2 test/helpers.js
@@ -29,6 +29,8 @@ var innerHtml = function(el) {
//return el.innerHTML.replace(/(\r\n)?<script[^>]*>[\s\S]*?<\/script>(\r\n)?/ig, '');
var html = el.innerHTML
.replace(/\.js\?0\.\d+/g, '.js')
+ // The contents of iframes gets doubly-escaped because we pass the expected value through innerHTML.
+ // So we ignore it.
.replace(/(<iframe[^>]*>)[\s\S]*?(<\/iframe>)/ig, '$1$2');
return ignoreScripts ?
// remove all scripts (IE7/8, FF)

0 comments on commit fb6acaa

Please sign in to comment.