fixed/improved hasAttribute and synchronized attribute resolution in non QSA version