mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
![]() The `prev()` function doesn't take nodes other than elements into account. Also we could simplify things a lot using the `previousElementSibling` property. This property isn't fully supported in IE, it only works for elements, but since the `element` variable is an element, we can safely use it here. I've also added an additional test. I don't think we had this issue in v4, since we relied on jQuery back then. Ref. https://developer.mozilla.org/en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling |
||
---|---|---|
.. | ||
dom | ||
util | ||
.eslintrc.json | ||
alert.spec.js | ||
button.spec.js | ||
carousel.spec.js | ||
collapse.spec.js | ||
dropdown.spec.js | ||
modal.spec.js | ||
popover.spec.js | ||
scrollspy.spec.js | ||
tab.spec.js | ||
toast.spec.js | ||
tooltip.spec.js |