Skip to content

HTML Comment between component root elements prevents applying class to element after comment #2780

@AleksandrSl

Description

@AleksandrSl

Version

3.0.4

Reproduction link

https://codesandbox.io/s/strange-poitras-4jwf8?file=/src/components/HelloWorld.vue

Steps to reproduce

Try to remove comment between divs in HelloWorld component and resulting html will differ. Text I also want to be bold? will become bold

What is expected?

Class should be passed to the root element in both cases (Second component text should also be bold)

What is actually happening?

Due to presence of comment between divs, class is not applied to the second div.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workinghas workaroundA workaround has been found to avoid the problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions