| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <meta charset="utf-8"> | |
| 3 <title>HTML Test: marquee-stop</title> | |
| 4 <link rel="author" title="Intel" href="http://www.intel.com/"> | |
| 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/multipage/obsolete
.html#the-marquee-element"> | |
| 6 <meta name="flags" content="interact"> | |
| 7 <meta name="assert" content="Check the stop operation of HTMLMarqueeElement inte
rface"> | |
| 8 <h2>Steps:</h2> | |
| 9 <ol> | |
| 10 <li>Click the 'Start' button to start the marquee element.</li> | |
| 11 </ol> | |
| 12 <h2>Expected result:</h2> | |
| 13 <ul> | |
| 14 <li>The text "Test Marquee" stop moving when the 'Stop' button is clicked.</li
> | |
| 15 </ul> | |
| 16 <input type="button" id="stop" value="Stop" /> | |
| 17 <marquee id="test">Test Marquee</marquee> | |
| 18 <script> | |
| 19 document.getElementById("stop").addEventListener("click", function(evt) { | |
| 20 document.getElementById("test").stop(); | |
| 21 }, false); | |
| 22 </script> | |
| OLD | NEW |