Query module DuplicateAttributes

name
Duplicate HTML element attributes
description
Specifying the same attribute twice on the same HTML element is redundant and may indicate a copy-paste mistake.
kind
problem
problem.severity
warning
id
js/duplicate-html-attribute
tags
maintainability readability
precision
very-high

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

duplicate

Holds if earlier and later are attribute definitions with the same name and the same value, where earlier appears textually before later.