github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/pkg/spyglass/lenses/html/testdata/TestRenderBody_With_multiple_of_same_name-1.yaml (about) 1 2 <table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp"> 3 4 <tr class="header section-expander"> 5 <td class="mdl-data-table__cell--non-numeric expander failed" colspan="1"><h6>File 2</h6></td> 6 <td class="mdl-data-table__cell--non-numeric expander"><i class="icon-button material-icons arrow-icon noselect">expand_less</i></td> 7 </tr> 8 9 <tr class="initial" id="file.html-0-tr"> 10 <td colspan="2" style="border: 0px; padding: 0px;"> 11 <iframe srcdoc="<div id="wrapper"><head><title>File 2</title><body></body></div><script type="text/javascript"> 12 window.addEventListener("load", function(){ 13 if(window.self === window.top) return; // if w.self === w.top, we are not in an iframe 14 send_height_to_parent_function = function(){ 15 var height = document.getElementById("wrapper").offsetHeight; 16 parent.postMessage({"height" : height , "id": "file.html-0"}, "*"); 17 } 18 send_height_to_parent_function(); //whenever the page is loaded 19 window.addEventListener("resize", send_height_to_parent_function); // whenever the page is resized 20 var observer = new MutationObserver(send_height_to_parent_function); // whenever DOM changes PT1 21 var config = { attributes: true, childList: true, characterData: true, subtree:true}; // PT2 22 observer.observe(window.document, config); // PT3 23 }); 24 </script>" title="file.html" sandbox="allow-scripts allow-popups allow-same-origin" id="file.html-0" width="100%" scrolling="no"></iframe> 25 </td> 26 </tr> 27 28 </table>