Created by: janklimo
Bootstrap v5 introduced a regression wherein an unhandled DOMException
would be thrown if initialising a dropdown element on an anchor tag with a standard URL in the href
tag.
This is a realistic scenario when the UI shows dropdown on hover but still allows the user to click the link.
This PR adds error handling for this scenario and a spec to cover the change, essentially reimplementing how this is handled in v4: