newline-normalization-manual.html (438B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Newline normalization in simple dialogs</title> 4 <link rel="help" href="https://html.spec.whatwg.org/multipage/#simple-dialogs"> 5 6 <p>The dialogs should all contain text looking like:</p> 7 8 <pre>Line 1.1 9 Line 1.2 10 Line 1.3 11 Line 1.4 12 13 Line 2.1</pre> 14 15 <script> 16 "use strict"; 17 18 for (const func of [alert, confirm, prompt]) { 19 func('Line 1.1\nLine 1.2\rLine 1.3\r\nLine 1.4\n\rLine 2.1'); 20 } 21 </script>