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.
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.