Version 2.0.9.
Steps
htmx.config.ignoreTitle = true is set.
- The web page has an OOB-swappable
title tag in head block: <title hx-swap-oob="outerHTML" id="document-title">One</title>.
- Perform an htmx swap where the response contains
<title hx-swap-oob="outerHTML" id="document-title">Two</title> as one of the "top" tags in the response.
Expected
The tab title is Two.
Actual
The tab title is One.
Why is this needed?
I use OOB-swappable titles as a workaround for another bug: #3726. And htmx.config.ignoreTitle = true is set to nudge the developers to use this pattern consistently until the bug is fixed.
Notes
Setting htmx.config.ignoreTitle = false or wrapping the title in the response with, say, div helps.
Version 2.0.9.
Steps
htmx.config.ignoreTitle = trueis set.titletag inheadblock:<title hx-swap-oob="outerHTML" id="document-title">One</title>.<title hx-swap-oob="outerHTML" id="document-title">Two</title>as one of the "top" tags in the response.Expected
The tab title is
Two.Actual
The tab title is
One.Why is this needed?
I use OOB-swappable titles as a workaround for another bug: #3726. And
htmx.config.ignoreTitle = trueis set to nudge the developers to use this pattern consistently until the bug is fixed.Notes
Setting
htmx.config.ignoreTitle = falseor wrapping thetitlein the response with, say,divhelps.