1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/js/tests/unit
Martijn Cuppens 7d8c7c4ba8
prev() function fails when non-element nodes are present (#30117)
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
2020-03-09 17:21:04 +02:00
..
dom prev() function fails when non-element nodes are present (#30117) 2020-03-09 17:21:04 +02:00
util Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
.eslintrc.json Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
alert.spec.js Corrected grammatical error in test descriptions (#30150) 2020-02-10 09:35:13 +02:00
button.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
carousel.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
collapse.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
dropdown.spec.js tests: Remove button hrefs (#30119) 2020-02-01 20:39:18 +02:00
modal.spec.js Close modal with keyboard=true & backdrop=static (#29986) 2020-01-10 11:06:12 +02:00
popover.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
scrollspy.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
tab.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
toast.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00
tooltip.spec.js Rename "js/tests/units" to "js/tests/unit". (#29503) 2019-10-09 01:27:43 +03:00