Add missing getAttribute method