From 2b4c61489037302ff7e1aaece06d0b07c4ca7155 Mon Sep 17 00:00:00 2001 From: Mike du Heaume Date: Wed, 10 Sep 2014 15:13:17 -0600 Subject: [PATCH] Add title when calling createHTMLDocument document.implementation.createHTMLDocument in IE10 (possibly other versions) throws an exception if no argument is provided. --- src/pjax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pjax.js b/src/pjax.js index 8bc95f2..637323d 100644 --- a/src/pjax.js +++ b/src/pjax.js @@ -339,7 +339,7 @@ } , loadContent: function(html, options) { - var tmpEl = document.implementation.createHTMLDocument() + var tmpEl = document.implementation.createHTMLDocument("") // parse HTML attributes to copy them // since we are forced to use documentElement.innerHTML (outerHTML can't be used for )