Skip to content

<c-slot> slot data accepts c-bind keys that other tags refuse #647

Open

Description

@JuroOravec

A c-bind key that starts with #c-, or a data-cev-* or x-on:* key, is accepted as slot data on <c-slot>. Component tags, <c-fill> and the built-in tags refuse the same keys.

Slot data stays on the server, so this doesn't reach the browser. It is an inconsistency: the same key is an error in one place and accepted in another. Making <c-slot> refuse it would bring it in line with the other tags.

A related gap with no test yet: _reject_vue_code_from_attrs_hook checks whether a key was already present with key in before, which uses the key's own __eq__ and __hash__. Only extension hooks pass keys there, and extension code is trusted, but a test would pin the behaviour.

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