There is absolutely no reason why we should have to use the contains() function to filter an element based on an attribute value. But it's marked as an incorrect answer in various levels.
There are better uses of contains() or matches(), though... :-)
There is absolutely no reason why we should have to use the
contains()function to filter an element based on an attribute value. But it's marked as an incorrect answer in various levels.There are better uses of
contains()ormatches(), though... :-)