Fix Element.matches() when selector contains a comma.

We need to loop through all the comma-separated selectors to see if any
of them match.