I suggest to restore the snapshot profile and add there :contains() and pseudo-classes which may cause infinity loops if detecting them really requires significant changes in browser architectures and is problematic (it is better to ask browser developers how it is for now).