#316: isValidContainer() accepts CSS selector