Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • H html-validate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Scheduled maintenance on the database layer will take place on 2022-07-02. We expect GitLab.com to be unavailable for up to 2 hours starting from 06:00 UTC. Kindly follow our status page for updates and read more in our blog post.

  • html-validate
  • html-validate
  • Issues
  • #62
Closed
Open
Created Dec 13, 2019 by David Sveningsson@extsidvindOwner

Handle metadata validation on vuejs component slots

Currently only regular elements are validated using elements metadata but in vuejs it is common to use components with slots. To validate the content och each slot the current workaround is to wrap each slot in a new element:

<my-real-component>
    <template v-slot:first-slot>
      <my-fake-component-first-slot>
        <!-- my real content -->
      </my-fake-component-first-slot>
    </template>
</my-real-component>

Very cumbersome, hard to understand and requires users to write lots of markup only for validation purposes.

Instead if would be useful to somehow add metadata for slots directly for instance using my-real-component:first-slot

Use cases

  • vuejs component developers wanting to enforce usage behaviour
Assignee
Assign to
Time tracking