Decoration not DOM

Generated Content is not a solution for accessibility

Generated content is decoration and purely visual. It is not recognized by screen readers. Don't depend on it for accessible links. That said, the following rules can make a legacy site easier to use for sighted visitors.

The :contains("foo") pseudo-class notation represents an element whose textual contents contain the given substring.