Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>input multiline placeholder</title>
<meta name="assert" content="input element's placeholder strips newlines">
<link rel="match" href="multiline-placeholder-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>