Debugger.Source.prototype.element.html (865B)
1 <head> 2 <!-- Static (not dynamically inserted) inline script. --> 3 <script id='franz'> 4 /* exported franz */ 5 "use strict"; 6 7 function franz() { 8 // eslint-disable-next-line no-debugger 9 debugger; 10 } 11 </script> 12 13 <!-- Static out-of-line script element. --> 14 <script id='heinrich' src='Debugger.Source.prototype.element.js'></script> 15 </head> 16 17 <!-- HTML requires some body element onfoo attributes to add handlers to the 18 *window*, not the element --- but Debugger.Source.prototype.element should 19 return the element. Here, that rule should apply to the body's 'onresize' 20 handler. (For the reason for the 'cancelable' check, see the code that 21 sends the event.) --> 22 <body onresize='if (event.cancelable) debugger;'> 23 <!-- Ordinary content element with event handler. --> 24 <div id='heidi' onclick='heinrichFun();'>Heidi</div> 25 </body>