Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • 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 35
    • Issues 35
    • 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 and registries
    • Packages and 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
  • html-validate
  • html-validate
  • Issues
  • #95
Closed
Open
Issue created Aug 31, 2020 by Kristoffer Nordström@kristoffer.nordstrom

Non-registered component used in elements.json and permittedDescendents/exclude doesn't trigger error

Provide a broad description of the bug.

If componentC is not valid as a permittedDescendents within componentA (i.e used with exclude) and componentC is not registered in elements.json, then html-validate will not fail when encountering componentC as descendent of componentA.

Reduced test-case

Show the smallest possible markup that fails.

Configuration

Use html-validate --print-config FILENAME or show the content of all relevant .htmlvalidate.json files.

"componentA": { "permittedDescendants": [{ "exclude": "componentC" }] }

Expected result

Given the provided example, what did you expect would happen?

The expected result would be for html-validate to fail and to report the line in which componentC was found.

Actual result

What happened instead?

html-validate executes and finished with a success code (i.e echo $? results in 0)

Version

  • html-validate: 2.23.0
  • html-validate-angular: N/A
  • html-validate-vue: 3.1.0
  • html-validate-protractor: N/A . any other relevant plugin:
Assignee
Assign to
Time tracking