Skip to content

Commit

Permalink
zloirock#204 Escaping script tags
Browse files Browse the repository at this point in the history
We experienced issues with inlining this code and parsing by facebook parser. So it's indeed safer to incorporate this.
  • Loading branch information
funklos authored Jun 29, 2016
1 parent 60a946b commit f6fd176
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 f6fd176

Please sign in to comment.