Proposed fix for #5706 - .attr() fails with TypeError when used on foreign elements, such as SVG

Proposed fix for #5706 - .attr() fails with TypeError when used on foreign elements, such as SVG

<div>Please review.</div><div>
</div><div><a href="http://dev.jquery.com/ticket/5706">http://dev.jquery.com/ticket/5706</a></div><div>
</div><div>Ticket has full description as well as two patches on github, one for jQuery, one for Sizzle. Thanks.</div>
<div>
</div><div>- Richard</div><div>
</div>


--