predefined rule image propagates the class attribute
handle sort attribute for elements rule