It seems like the selector ":link" is not supported by jQuery’s filter() or is() function. For instance, if I evaluate $(":link") on a page it returns multiple links. If I evaluate $(":link").filter(":link") or $(":link").is(":link"), an error is thrown. The error message is “Syntax error, unrecognized expression: link”.
Is this by design? Do filter() and is() not support the same CSS selectors is jQuery does generally? Is there documentation as to the difference?
Patrick commented that jQuery defaults in some cases to the browser’s built in querySelector or querySelectorAll where it exists. So,
:linkappears to work on some browsers, but I wouldn’t suggest using it as it seems to produce wonderfully bizarre results.Demo: http://jsfiddle.net/xWPw7/4