Fixed sf 2.3 compatibility (getAttribute)