Suppose I have a simple XHTML document that uses a custom namespace for attributes:
<html xmlns="..." custom:xmlns="http://www.example.com/ns">
...
<div class="foo" custom:attr="bla"/>
...
</html>
How do I match each element that has a certain custom attribute using jQuery? Using
$("div[custom:attr]")
does not work. (Tried with Firefox only, so far.)