Skip to content

CompilerDOM.compile incorrectly parsing <template v-if="true" :key> #11321

Open
@so1ve

Description

@so1ve

Vue version

3.4.31

Link to minimal reproduction

https://ast.sxzz.moe/#eNpVjMEKwjAQRH8l7KWXBg/eQu03eDceJK4STDZLsimW0n83UhDLXGaGx1sggIGpIvTAWzvqe4rapcg+fG/X7kEwcrgJjpaU+i01af84WZBc0YIyL5zH4fDH7kZzpebKKDWTWixZ2YJvzliKT3QO9empGHXpZGYsLnuW7to3llZYP8C1PHY=

Steps to reproduce

<template>
  <template v-if="true" :key></template>
</template>

What is expected?

Should produce userKey in ast.

What is actually happening?

It doesn't

System Info

No response

Any additional comments?

No response

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