Closed Bug 300062 Opened 19 years ago Closed 19 years ago

warn when page uses the id multiple times

Categories

(Core :: DOM: Core & HTML, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bugzilla, Unassigned)

Details

if would be cool if mozilla could warn a user in the javascript console of
multiple use of id's
like the following html:
<div id="test"></div><div id="test"></div>

a warning could be written to the console saying:
"id "test" used multiple times in page at http://test.test.invalid"
Doing this in general would require a performance hit on various DOM operations and pageload that we don't really want.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.