Skip to content

HTML <title> text is replaced by <title> in SVG content #459

@alc

Description

@alc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions