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
  • #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