There used to be a way to select HTML elements by text using CSS Selectors by making use of :contains(text).