diff --git a/index.js b/index.js index a548998..efa2517 100644 --- a/index.js +++ b/index.js @@ -94,7 +94,12 @@ Pjax.prototype = { matches.shift() matches.forEach(function(htmlAttrib) { var attr = htmlAttrib.trim().split("=") - tmpEl.documentElement.setAttribute(attr[0], attr[1].slice(1, -1)) + if (attr.length === 1) { + tmpEl.documentElement.setAttribute(attr[0], true) + } + else { + tmpEl.documentElement.setAttribute(attr[0], attr[1].slice(1, -1)) + } }) } }