I don't think that * is a valid tag. Strange that it works in FF and such.
Your code looks ok to me, the only thing that can cause the problem is your document.getElementsByTagName("*") call.
Since you seem to be in a learning mood, I can tell you that your loop is quite "slow". The items.length call is expensive timewise. And you make that call in every loop iteration. The fastest way would be:
javascript Code:
for (var i=0,l=items.length;i < l; i++){
alert(items[i].nodeName);
}
Before alerting the nodeName, you should check the nodeType. Because IE will return a line break in your code as a text-node. This can cause you errors.