You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reviewing #876 and the related #576. I think we can make some improvements, and also maintain backwards compatibility:
(done) for :contains(text), normalize the selector text in the same way that the text() and ownText() methods work. That directly fixes this issue. I conceptually like the neatness of using :contains("text") to use a non-normalized search, but that's a bit stringly typed, and maybe backwards in-compat.
(done) introduce :containsWholeText and :containsWholeOwnText which uses wholeText() and wholeOwnText() and no normalization to either the input or the query. That way we can find content including newlines, tabs, repeated spaces, etc
After reviewing #876 and the related #576. I think we can make some improvements, and also maintain backwards compatibility:
:contains(text)
, normalize the selector text in the same way that thetext()
andownText()
methods work. That directly fixes this issue. I conceptually like the neatness of using:contains("text")
to use a non-normalized search, but that's a bit stringly typed, and maybe backwards in-compat.:containsWholeText
and :containsWholeOwnText which useswholeText()
andwholeOwnText()
and no normalization to either the input or the query. That way we can find content including newlines, tabs, repeated spaces, etc:matchesWholeText
and:matchesWholeOwnText
, to work similarly for regular expressionsThe text was updated successfully, but these errors were encountered: