event-handler-javascript.html (534B)
1 <!DOCTYPE html> 2 <title>Event handler with labels</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <body onload="javascript: 6 for (var i = 0; i < 2; ++i) { 7 for (var j = 0; j < 2; ++j) { 8 t.step(function() { 9 assert_equals(i, 0); 10 assert_equals(j, 0); 11 }); 12 break javascript; 13 } 14 } 15 t.done(); 16 "> 17 <div id="log"></div> 18 <script> 19 var t = async_test("Event handlers starting with 'javascript:' should treat that as a label."); 20 </script>