Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJulien Déramond <julien.deramond@orange.com>2022-07-04 14:12:10 +0300
committerGitHub <noreply@github.com>2022-07-04 14:12:10 +0300
commitc1813ef2bc2a398e5a9bcdd398608f8a021574e3 (patch)
tree49f15607cd0d0fc2c2fb9a1926096aa575d93ace /js
parenta13f432db4c6fe52a5e748ace6357848cb2ed700 (diff)
ref(tests): Minor fix to use self-closing input HTML tag (#36667)
Diffstat (limited to 'js')
-rw-r--r--js/tests/unit/dom/selector-engine.spec.js2
-rw-r--r--js/tests/unit/offcanvas.spec.js2
-rw-r--r--js/tests/unit/util/index.spec.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/unit/dom/selector-engine.spec.js b/js/tests/unit/dom/selector-engine.spec.js
index 38eb3be54d..901aa0e3a6 100644
--- a/js/tests/unit/dom/selector-engine.spec.js
+++ b/js/tests/unit/dom/selector-engine.spec.js
@@ -166,7 +166,7 @@ describe('SelectorEngine', () => {
'<span>lorem</span>',
'<a>lorem</a>',
'<button>lorem</button>',
- '<input />',
+ '<input>',
'<textarea></textarea>',
'<select></select>',
'<details>lorem</details>'
diff --git a/js/tests/unit/offcanvas.spec.js b/js/tests/unit/offcanvas.spec.js
index 0db53ec99c..3c862efca9 100644
--- a/js/tests/unit/offcanvas.spec.js
+++ b/js/tests/unit/offcanvas.spec.js
@@ -603,7 +603,7 @@ describe('Offcanvas', () => {
it('should not prevent event for input', () => {
return new Promise(resolve => {
fixtureEl.innerHTML = [
- '<input type="checkbox" data-bs-toggle="offcanvas" data-bs-target="#offcanvasdiv1" />',
+ '<input type="checkbox" data-bs-toggle="offcanvas" data-bs-target="#offcanvasdiv1">',
'<div id="offcanvasdiv1" class="offcanvas"></div>'
].join('')
diff --git a/js/tests/unit/util/index.spec.js b/js/tests/unit/util/index.spec.js
index 2b24bfaf79..9f28ce0aa0 100644
--- a/js/tests/unit/util/index.spec.js
+++ b/js/tests/unit/util/index.spec.js
@@ -425,8 +425,8 @@ describe('Util', () => {
it('should return true if the element has disabled attribute', () => {
fixtureEl.innerHTML = [
'<div>',
- ' <input id="input" disabled="disabled"/>',
- ' <input id="input1" disabled="disabled"/>',
+ ' <input id="input" disabled="disabled">',
+ ' <input id="input1" disabled="disabled">',
' <button id="button" disabled="true"></button>',
' <button id="button1" disabled="disabled"></button>',
' <button id="button2" disabled></button>',
@@ -460,7 +460,7 @@ describe('Util', () => {
it('should return true if the element has class "disabled" but disabled attribute is false', () => {
fixtureEl.innerHTML = [
'<div>',
- ' <input id="input" class="disabled" disabled="false"/>',
+ ' <input id="input" class="disabled" disabled="false">',
'</div>'
].join('')