[jQuery] id same as name confuses JQuery?

[jQuery] id same as name confuses JQuery?


Given this element...
<div id="foo" name="foo"></div>
...why this does not match the element...
${'#foo'}
If I change or remove the name attribute, it does match. Is this by
design or a bug?