10000 Linter Rule: Disallow duplicate id attributes · Issue #183 · marcoroth/herb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Linter Rule: Disallow duplicate id attributes #183
Open
@NotGrm

Description

@NotGrm

Rule: html-no-duplicate-id

Description

Ensure that id attribute is not duplicated

Rationale

Valid HTML requires that id attribute values are unique

Examples

✅ Good
<div id="footer"></div>
<div id="<%= dom_id(:foobar) %>"></div>
🚫 Bad
<div id="id-00"></div><div id="id-00"></div>
<div id="<%= dom_id(:foobar) %>"></div><div id="<%= dom_id(:foobar) %>"></div>

References

Inspired by ember-template-lint

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0