keep this div after the last test case

Summary

Harness status: OK

Found 15 tests

Details

ResultTest NameMessage
Fail<div>s, <button>s, and <datalist>s should be allowed in <select>assert_equals: expected "<div>div1</div><button>button</button><div>div2</div><datalist><option>option</option></datalist><div>div3</div>" but got "div1buttondiv2<option>option</option>div3"
    at Test.<anonymous> (https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:109:3
    at NodeList.forEach (<anonymous>)
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Fail
assert_equals("div1buttondiv2<option>option</option>div3", "<div>div1</div><button>button</button><div>div2</div><datalist><option>option</option></datalist><div>div3</div>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
Fail</select> should close <button>assert_equals: expected "<button>button</button>" but got "button"
    at Test.<anonymous> (https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:109:3
    at NodeList.forEach (<anonymous>)
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Fail
assert_equals("button", "<button>button</button>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
Fail</select> should close <datalist>assert_equals: expected "<datalist>datalist</datalist>" but got "datalist"
    at Test.<anonymous> (https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:109:3
    at NodeList.forEach (<anonymous>)
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Fail
assert_equals("datalist", "<datalist>datalist</datalist>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
Fail<select> in <button> in <select> should remove inner <select>assert_equals: expected "<button></button>" but got ""
    at Test.<anonymous> (https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:109:3
    at NodeList.forEach (<anonymous>)
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Fail
assert_equals("", "<button></button>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
Fail<select> in <select><button><div> should remove inner <select>assert_equals: expected "<button><div></div></button>" but got ""
    at Test.<anonymous> (https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:109:3
    at NodeList.forEach (<anonymous>)
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Fail
assert_equals("", "<button><div></div></button>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
PassJS added nested <select> should be ignored
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Pass
assert_equals("<option>TheInitialOption</option>", "<option>TheInitialOption</option>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
PassJS added nested <select>s should be ignored
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Pass
assert_equals("<option>TheInitialOption</option>", "<option>TheInitialOption</option>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
FailDivs and imgs should be allowed as direct children of select and within options without a datalistassert_equals: expected "<div><option><img>option</option></div>" but got "<option>option</option>"
    at Test.<anonymous> (https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:109:3
    at NodeList.forEach (<anonymous>)
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Fail
assert_equals("<option>option</option>", "<div><option><img>option</option></div>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
PassInput tags should not parse inside select instead of closing the select
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Pass
assert_equals("", "")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
Pass
assert_true(true)
    at  /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:108:3
Failtextarea tags should parse inside select instead of closing the selectassert_equals: expected "<textarea></textarea>" but got ""
    at Test.<anonymous> (https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:109:3
    at NodeList.forEach (<anonymous>)
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:112:5)
Fail
assert_equals("", "<textarea></textarea>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:113:5)
PassThe last test should not leave any tags open after parsing
Asserts run
Pass
assert_equals(Element node <body>  <select class="test" data-description="<div>s, <b..., Element node <body>  <select class="test" data-description="<div>s, <b...)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:118:3)
PassNested selects should be retained 1
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:125:3)
Pass
assert_equals(null, null, "Nested select should be removed")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:126:3)
Pass
assert_equals(Element node <div id="expectafter1b"></div>, Element node <div id="expectafter1b"></div>, "Subsequent content is there too")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:127:3)
PassNested selects should be retained 2
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:133:3)
Pass
assert_equals(null, null, "Nested select should be pushed out as the next sibling")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:134:3)
PassJS added nested select should be ignored
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:138:3)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:142:3)
Pass
assert_equals("<option>The New Option</option>", "<option>The New Option</option>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:144:3)
PassJS added nested selects should be ignored
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:148:3)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:152:3)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:154:3)
Pass
assert_equals("<option>The New Option</option>", "<option>The New Option</option>")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/customizable-select/select-parsing.tentative.html:156:3)