Skip to content

When are self-closing tags expanded and not, unreliable and unpredictable (bug?) - web components (latest version thymeleaf with Spring boot) #1054

@gregjotau

Description

@gregjotau
<div slot="header" th:text="#{project}"/>
        <wa-button data-dialog="open project-dialog" size="small"
                   slot="header-actions"
                   th:text="#{project.create}" variant="brand"></wa-button>
        <div>
        <wa-button data-dialog="open project-dialog" size="small"
                   slot="header-actions"
                   th:text="#{project.create}" variant="brand"/>

I feel like most of the times self-closing tags are opened up when Thymeleaf renders it. But not always.

I like using self-closing tags on web components like the above example, but it must be expanded as the web components does not work as self-closing tags.

So my question is why Thymeleaf is only sometimes expanding wa-button : https://webawesome.com/docs/components/button

Note that I'm only talking about cases where th:text is used, in these cases Thymeleaf should expand the tag since otherwise it would not be able to put in the value inside the tags.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions