Skip to content

Commit

Permalink
reverting the .querySelector->.getElementById change to find the cont…
Browse files Browse the repository at this point in the history
…ainer in .smartLoad
  • Loading branch information
bfontaine committed Apr 7, 2014
1 parent 4ab69b9 commit 6448eba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pjax-standalone.js
Expand Up @@ -242,7 +242,10 @@
if(title)
document.title = title.innerHTML;

var container = document.getElementById(options.container.id);
// Going by caniuse all browsers that support the pushstate API also support querySelector's
// see: http://caniuse.com/#search=push
// see: http://caniuse.com/#search=querySelector
var container = html.querySelector("#" + options.container.id);
if(container !== null) return container;

// If our container was not found, HTML will be returned as is.
Expand Down

0 comments on commit 6448eba

Please sign in to comment.