A first hierarchy of a first type of elements of a user interface is received from an application. A second application presents the user interface including a set of the first type of elements and a set of a second type of elements at a client. A second hierarchy of the second type of elements used in a system-specific presentation of the user interface is received from the application. A first element of the first type in the first hierarchy is determined to violate a condition specified in a compliance rule, and that a second element of the second type in the second hierarchy is related to the first element. An evaluation is made that an attribute of the second element causes the condition to be violated. The second element is reported.