Javascript Dom access attributes cross browser

Works on ie and firefox not safari
activateSlot(slots[this.firstChild.attributes['id'].value].slot);

Works on all three(firefox,safari and ie)
activateSlot(slots[this.firstChild.getAttribute('id')].slot);

Comments

Popular posts from this blog

Vim vi how to reload a file your editing