tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

multiline-placeholder-crlf.html (888B)


      1 <!doctype html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>textarea multiline placeholder (CRLF)</title>
      5 <link rel="help" href="https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-placeholder">
      6 <meta name="assert" content="textarea element's placeholder preserves newlines (CRLF)">
      7 <link rel="match" href="multiline-placeholder-ref.html">
      8 <link rel="stylesheet" href="support/placeholder.css">
      9 <textarea rows="5" placeholder="this is
     10 a multiline
     11 
     12 placeholder"></textarea>
     13 <textarea rows="5" placeholder="this is&#xd;&#xa;a multiline&#xd;&#xa;&#xd;&#xa;placeholder"></textarea>
     14 <textarea rows="5" id="dynamic"></textarea>
     15 <script>
     16  document.querySelector("#dynamic")
     17          .setAttribute("placeholder", "this is\r\na multiline\r\n\r\nplaceholder");
     18  document.documentElement.classList.remove("reftest-wait");
     19 </script>
     20 </html>