can change if the title is ignored for a given response code8ms ‣
var originalResponseHandling = htmx.config.responseHandling
var originalTitle = document.title
try {
htmx.config.responseHandling = originalResponseHandling.slice()
htmx.config.responseHandling.unshift({ code: '444', swap: true, ignoreTitle: true })
var responseCode = null
this.server.respondWith('GET', '/test', function(xhr, id) {
xhr.respond(responseCode, { 'Content-Type': 'text/html' }, '<title>Should Not Be Set</title>' + responseCode)
})
responseCode = 444
var btn = make('<button hx-get="/test">Click Me!</button>')
btn.click()
this.server.respond()
btn.innerHTML.should.equal('444')
document.title.should.equal(originalTitle)
} finally {
htmx.config.responseHandling = originalResponseHandling
}