use .getAttribute() to keep DOM Exception 18 happy