forked from mirrors/gecko-dev
		
	# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D36041 --HG-- extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			223 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			223 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
function test() {
 | 
						|
  var ids = {};
 | 
						|
  Array.prototype.forEach.call(document.querySelectorAll("[id]"), function(
 | 
						|
    node
 | 
						|
  ) {
 | 
						|
    var id = node.id;
 | 
						|
    ok(!(id in ids), id + " should be unique");
 | 
						|
    ids[id] = null;
 | 
						|
  });
 | 
						|
}
 |