document hasn't getAttribute method