Implemented bidi checks for attributes