var pjax = new Pjax({ selectors: ["head title", "body"] }) but it works the same if I remove the head title
Hi, any idea why this would be happening?

`var pjax = new Pjax({ selectors: ["head title", "body"] })` but it works the same if I remove the `head title`
I believe this is being caused by the issue described here:
We can’t replace body.outerHTML or head.outerHTML. It creates a bug where a new body or new head are created in the DOM. If you set head.outerHTML, a new body tag is appended, so the DOM gets 2 bodys, & it break the switchFallback which replaces head & body.
See here for more information about why this happens.
The code there is supposed to prevent that by using this.switchElementsAlt() instead of the default outerHTML switch. However, I don't see switchElementsAlt() defined anywhere.
I believe this is being caused by the issue described [here](https://github.com/MoOx/pjax/blob/a7b584c469d412ae7333a795a0ac8d3616a96a1f/lib/proto/parse-options.js#L25-L28):
>We can’t replace `body.outerHTML` or `head.outerHTML`. It creates a bug where a new `body` or new `head` are created in the DOM. If you set `head.outerHTML`, a new `body` tag is appended, so the DOM gets 2 `body`s, & it break the `switchFallback` which replaces `head` & `body`.
See [here](https://stackoverflow.com/a/27854343/8037425) for more information about why this happens.
The code [there](https://github.com/MoOx/pjax/blob/a7b584c469d412ae7333a795a0ac8d3616a96a1f/lib/proto/parse-options.js#L28-L34) is supposed to prevent that by using `this.switchElementsAlt()` instead of the default `outerHTML` switch. However, I don't see `switchElementsAlt()` defined anywhere.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hi, any idea why this would be happening?
var pjax = new Pjax({ selectors: ["head title", "body"] })but it works the same if I remove thehead titleYou can inspect it here also: http://saulesinterjerai.lt/ same problem same code
Still an issue?
I believe this is being caused by the issue described here:
See here for more information about why this happens.
The code there is supposed to prevent that by using
this.switchElementsAlt()instead of the defaultouterHTMLswitch. However, I don't seeswitchElementsAlt()defined anywhere.