JavaScript memory leaks - test

Intro

Explanation

Leaks.

window.onload = init;

function init()
{
	createLinks();
	var x = document.getElementsByTagName('a');
	for (var i=0;i<x.length;i+=2)
	{
		if (!x[i].nextSibling) continue;
		x[i].relatedElement = x[i].nextSibling;
		x[i].nextSibling.relatedElement = x[i];
	}
}

Test