mathiasbynens/jquery-details — pull request #19 by mamhoff (2014-07-27 13:46:46+00:00)
Title: Do not trigger on summary > a, summary > button

The spec for the summary element states that it can contain links. When clicking on a link though, the details should not be shown if the link is meant to be clicked (as that probably be unintended behaviour). This patch - while not particularly superclean - prevents opening the details box if the element that's been clicked or one of its ancestors is a button or a link.