Issue #2354395 by eshta: Add data validation for CSS selector.