0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/js/tests/unit/util
GeoSot 6e1c9096f0
Move get element functionality to a helper (#33327)
Looking around on js components I found out many checks, different expressed but with same purpose.
Some of them are trying to parse string to element, others, jQuery element to js simple nodeElement etc

With this Pr, I am trying to give a standard way to parse an element

So this pr:

* Creates `getElement` helper that tries to parse an argument to element or null
* Changes `isElement` to make  explicit checks and return Boolean 
* fixes tests deficiencies
2021-05-13 18:17:20 +03:00
..
backdrop.spec.js Fix backdrop rootElement not initialized in Modal (#33853) 2021-05-10 21:17:53 +03:00
index.spec.js Move get element functionality to a helper (#33327) 2021-05-13 18:17:20 +03:00
sanitizer.spec.js Adjust regex SAFE_URL_PATTERN for use with test method of regexes. (#33136) 2021-02-19 10:24:53 +02:00
scrollbar.spec.js Scrollbar: respect the initial body overflow value (#33706) 2021-04-25 06:50:16 +03:00