diff --git a/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html b/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html index 1a5b059997bac4..e2d39ff3995373 100644 --- a/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html +++ b/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html @@ -55,60 +55,57 @@ // The document.body check here and in the other tests is to make sure that a // previous test case didn't leave the HTML parser open on another element. assert_equals(document.getElementById('s1').parentNode, document.body); - assert_equals(document.getElementById('s1').innerHTML, ` -
div 1
+ assert_equals(document.getElementById('s1').innerHTML.trim(), + `
div 1
div 2
-
div 3
-`); +
div 3
`); }, '
s, `); }, ' should remove inner in .'); test(() => { assert_equals(document.getElementById('s6').parentNode, document.body); - assert_equals(document.getElementById('s6').innerHTML, ` -
+ assert_equals(document.getElementById('s6').innerHTML.trim(), + `
-
-`); +
`); }, 'Divs and imgs should be allowed as direct children of select and within options without a datalist.'); test(() => { assert_equals(document.getElementById('s7').parentNode, document.body); - assert_equals(document.getElementById('s7').innerHTML, ` - -`); + assert_equals(document.getElementById('s7').innerHTML.trim(), + ``); }, 'Input tags should parse inside select instead of closing the select.'); test(() => {