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
    • Menu
    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 21
    • Issues 21
    • 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

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • html-validate
  • html-validate
  • Issues
  • #96
Closed
Open
Created Oct 08, 2020 by David Sveningsson@extsidvindOwner

no-dup-id does not classify text as dynamic

When interpolating the id attribute the value is incorrectly marked as duplicate.

Reduced test-case

<div id="{{ ... }}"></div>
<div id="{{ ... }}"></div>

Configuration

{
    "extends": [
        "htmlvalidate:recommended"
    ],
    "elements": ["html5"],
    "transform": {
        "^.*\\.js$": "html-validate-angular/js",
        "^.*\\.html$": "html-validate-angular/html"
    }
}

Expected result

No error.

Actual result

2:10 error Duplicate ID "{{ ... }}" no-dup-id

Version

  • html-validate:
  • html-validate-angular:
  • html-validate-vue:
  • html-validate-protractor: . any other relevant plugin:
Assignee
Assign to
Time tracking