Query module AmbiguousIdAttribute

name
Ambiguous HTML id attribute
description
If an HTML document contains two elements with the same id attribute, it may be interpreted differently by different browsers.
kind
problem
problem.severity
warning
id
js/duplicate-html-id
tags
maintainability correctness
precision
very-high

Imports

javascript

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

Predicates

elementAt

Holds if elt defines a DOM element with the given id under document root at the given line and column.

sameId

Holds if elements earlier and later have the same id and belong to the same document, and earlier appears textually before later.