Skip to content

Doesn't throw on invalid code like <template v-if :key=""> #11322

Open
@so1ve

Description

@so1ve

Vue version

3.4.31

Link to minimal reproduction

https://play.vuejs.org/#eNp9UT1PwzAQ/SvWzSUIwRSVSoA6wAAIGL1E6SW4dWzLPoegKv+9Z1dNO7Td/L6s9+wtPDlX9BGhhDlh53RFuJBGiAmJ/kY1jxLIR5Qgyg3+M5KwmN9eDDTWs0cJZcTd5cwJgBlQqK1pVFusgzVcZ5sulVDbzimN/sORsiZIKEVWklZpbf/eMpfazQ58/Yv15gy/DkPiJHx6DOh73jNpVPkWaS8vv99x4PMkdnYVNbuviF8YrI6p4972HM2Ka5/4ctvXzllPyrQ/YTkQmnAYlZ+XnWP2S+A/ebky/Vj3vnjIOWlGGHeRE5b/

Steps to reproduce

Parse the code

<template>
  <template v-if="true" :key=""></template>
  <template v-for="i in 1" :key=""></template>
</template>

What is expected?

Should throw v-bind is missing expression.

What is actually happening?

No errors, and producing invalid code: vuejs/language-tools#4539 (comment)

System Info

No response

Any additional comments?

vuejs/language-tools#4539

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