]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
ref(tests): Minor fix to use self-closing input HTML tag (#36667)
authorJulien Déramond <julien.deramond@orange.com>
Mon, 4 Jul 2022 11:12:10 +0000 (13:12 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Jul 2022 11:12:10 +0000 (14:12 +0300)
js/tests/unit/dom/selector-engine.spec.js
js/tests/unit/offcanvas.spec.js
js/tests/unit/util/index.spec.js

index 38eb3be54d84e303f5ed293bd1c2c12f86d2d636..901aa0e3a6a21f92242a498042c32e0eb617ea24 100644 (file)
@@ -166,7 +166,7 @@ describe('SelectorEngine', () => {
         '<span>lorem</span>',
         '<a>lorem</a>',
         '<button>lorem</button>',
-        '<input />',
+        '<input>',
         '<textarea></textarea>',
         '<select></select>',
         '<details>lorem</details>'
index 0db53ec99c66c02349f3038830c89bcc54816594..3c862efca98d2aaa5f1104ee0a69f969702760ba 100644 (file)
@@ -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('')
 
index 2b24bfaf790b44f130b7ebc042446affbe75c522..9f28ce0aa092b020c5f38de256fcbf7cf6470c4e 100644 (file)
@@ -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('')