Issue #2367271 by eshta: Use ignore classes and ids when determining the simple selector.