Skip to content

Commit

Permalink
Merge pull request #1 from funklos/funklos-patch-#204
Browse files Browse the repository at this point in the history
Escaping script tags
  • Loading branch information
funklos authored Jun 29, 2016
2 parents 60a946b + 04a7805 commit ea663c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/_object-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var createDict = function(){
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write('<script>document.F=Object</script' + gt);
iframeDocument.write('<\script>document.F=Object<\/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
Expand All @@ -37,4 +37,4 @@ module.exports = Object.create || function create(O, Properties){
result[IE_PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : dPs(result, Properties);
};
};

0 comments on commit ea663c7

Please sign in to comment.