mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
9 lines
200 B
JavaScript
9 lines
200 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;
|
|
});
|
|
}
|