Add title when calling createHTMLDocument

document.implementation.createHTMLDocument in IE10 (possibly other versions) throws an exception if no argument is provided.
This commit is contained in:
Mike du Heaume
2014-09-10 15:13:17 -06:00
parent 54ed7a276c
commit 2b4c614890

View File

@@ -339,7 +339,7 @@
} }
, loadContent: function(html, options) { , loadContent: function(html, options) {
var tmpEl = document.implementation.createHTMLDocument() var tmpEl = document.implementation.createHTMLDocument("")
// parse HTML attributes to copy them // parse HTML attributes to copy them
// since we are forced to use documentElement.innerHTML (outerHTML can't be used for <html>) // since we are forced to use documentElement.innerHTML (outerHTML can't be used for <html>)