File tree 1 file changed +5
-5
lines changed
html/semantics/forms/the-select-element/customizable-select
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 104
104
const outerSelect = document . getElementById ( 'nested1' ) ;
105
105
const innerSelect = document . getElementById ( 'expectafter1' ) ;
106
106
const nextDiv = document . getElementById ( 'expectafter1b' ) ;
107
- assert_true ( ! ! outerSelect && ! ! innerSelect ) ;
108
- assert_equals ( outerSelect . nextSibling , innerSelect , 'Nested select should be pushed out as the next sibling ' ) ;
109
- assert_equals ( innerSelect . nextElementSibling , nextDiv , 'Subsequent content is there too' ) ;
107
+ assert_true ( ! ! outerSelect ) ;
108
+ assert_equals ( innerSelect , null , 'Nested select should be removed ' ) ;
109
+ assert_equals ( outerSelect . nextElementSibling , nextDiv , 'Subsequent content is there too' ) ;
110
110
} , 'Nested selects should be retained 1' ) ;
111
111
112
112
test ( ( ) => {
113
113
const outerSelect = document . getElementById ( 'nested2' ) ;
114
114
const innerSelect = document . getElementById ( 'expectafter2' ) ;
115
- assert_true ( ! ! outerSelect && ! ! innerSelect ) ;
116
- assert_equals ( outerSelect . nextSibling , innerSelect , 'Nested select should be pushed out as the next sibling' ) ;
115
+ assert_true ( ! ! outerSelect ) ;
116
+ assert_equals ( innerSelect , null , 'Nested select should be pushed out as the next sibling' ) ;
117
117
} , 'Nested selects should be retained 2' ) ;
118
118
</ script >
You can’t perform that action at this time.
0 commit comments