Forum How do I...?

:contains() on generated content?

whit537
Can I match a :contains selector on generated content?
mikeday
No, it is only used to match the original document content. Otherwise this could be used to create infinite loops:
span:contains('foo') { content: 'bar' }
span:contains('bar') { content: 'foo' }