Skip to content

A bare ., @ or : attribute name passes the template parser #648

Open

Description

@JuroOravec

An attribute written as a bare ., @ or :, such as <c-slot .="v" /> or <c-child @="v" />, passes the parser. The grammar accepts the name, and the len(key) > 1 guard in _vue_directive_name lets it through without treating it as a Vue directive.

Only the template author can write it, and it doesn't reach the browser as code. The template should still get a clear error at load time instead of an attribute that means nothing.

Found while reviewing #625.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    next-sprint
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnext-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions