defunkt/jquery-pjax — pull request #252 by kneath (2013-02-23 20:56:27+00:00)
Title: Always fall back to $body if no fragment specified

Since we're now testing whether `` exists [here](https://github.com/defunkt/jquery-pjax/blob/master/jquery.pjax.js#L573-L579):

```javascript
// Attempt to parse response html into elements
if (/]*>([\s\S.]*)<\/head>/i)[0]))
var $body = $($.parseHTML(data.match(/]*>([\s\S.]*)<\/body>/i)[0]))
} else {
var $head = $body = $($.parseHTML(data))
}
```

There's no need for this else if. It was causing problems with the automatic `

` extraction, since it was impossible to populate `obj.contents` without a fragment specified.