mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-13 23:17:57 +00:00
9 lines
201 B
JavaScript
9 lines
201 B
JavaScript
function test() {
|
|
var ids = {};
|
|
Array.forEach(document.querySelectorAll("[id]"), function (node) {
|
|
var id = node.id;
|
|
ok(!(id in ids), id + " should be unique");
|
|
ids[id] = null;
|
|
});
|
|
}
|