-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML <title> text is replaced by <title> in SVG content #459
Comments
Hi, I just stumbled over this issue when using sprig 1.8.0 (which uses htmx 1.5.0) and it seems like the document title is still replaced by the svg title putyourlightson/craft-sprig#144 I am using https://craftcms.com/docs/3.x/dev/functions.html#svg within a sprig component Please let me know if you need any other details thank you ! |
Since the sprig component is just a small partial of the whole site there is no document title in the output. |
Ok I see, I think I misunderstood, am testing now. |
I've created an issue specifically for this at #576. |
When htmx loads content that includes SVG content including a
<title>
, it updates the containing HTML document's<title>
.This was introduced in 0f72543, where it selects the first available title tag regardless of context.
My initial thought was to add
hx-preserve
to the HTML<title>
, which doesn't seem to work, but it might be a reasonable fix.The text was updated successfully, but these errors were encountered: