summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_duplicateIDs.js
blob: 38fc17820e5597ce6d5a20e4cc76064efe886279 (plain)
1
2
3
4
5
6
7
8
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;
  });
}