mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
ref(tests): Minor fix to use self-closing input HTML tag (#36667)
This commit is contained in:
parent
a13f432db4
commit
c1813ef2bc
@ -166,7 +166,7 @@ describe('SelectorEngine', () => {
|
||||
'<span>lorem</span>',
|
||||
'<a>lorem</a>',
|
||||
'<button>lorem</button>',
|
||||
'<input />',
|
||||
'<input>',
|
||||
'<textarea></textarea>',
|
||||
'<select></select>',
|
||||
'<details>lorem</details>'
|
||||
|
@ -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('')
|
||||
|
||||
|
@ -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('')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user