summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/input/the-placeholder-attribute/multiline.html
blob: 2d7102bd4acd6a29a650f6e11479d7226f4c4327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>input multiline placeholder</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute">
<meta name="assert" content="input element's placeholder strips newlines">
<link rel="match" href="/html/input/the-placeholder-attribute/multiline-ref.html">
<input placeholder="this is
a multiline

placeholder">
<input placeholder="this is&#xa;a multiline&#xa;&#xa;placeholder">
<input id="dynamic">
<script>
  document.querySelector("#dynamic")
          .setAttribute("placeholder", "this is\na multiline\n\nplaceholder");
  document.documentElement.classList.remove("reftest-wait");
</script>
</html>