dynamic-content-change-rendering.html (912B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title>Invalidation test on resetting <select></title> 4 <link rel="help" href="https://html.spec.whatwg.org/C/#concept-option-label"> 5 <link rel="help" href="http://crbug.com/1090806"> 6 <link rel="match" href="dynamic-content-change-rendering-ref.html"> 7 <meta name=fuzzy content="maxDifference=0-3;totalPixels=0-20"> 8 <body> 9 10 <select id="dropdown"> 11 <option></option> 12 </select> 13 14 <select id="listbox" multiple> 15 <option></option> 16 </select> 17 18 <script> 19 const selects = document.querySelectorAll('select'); 20 21 const span0 = document.createElement('span'); 22 selects[0].options[0].appendChild(span0); 23 24 const span1 = document.createElement('span'); 25 selects[1].options[0].appendChild(span1); 26 27 document.documentElement.addEventListener('TestRendered', e => { 28 span0.textContent = 'foo'; 29 span1.textContent = 'bar'; 30 e.target.removeAttribute('class'); 31 }); 32 </script> 33 </body> 34 </html>