Skip to content

Commit

Permalink
Bug 1754349 [wpt PR 32762] - Wrap for newlines in <input type=button>…
Browse files Browse the repository at this point in the history
…, a=testonly

Automatic update from web-platform-tests
Wrap for newlines in <input type=button>

This is essentially a revert of crrev.com/8dc8d77d8fa1645f44c306062070e5d40af2ba2c
The change was made for a website which somehow didn't show the text
after the newline on an <input type=button> and because that behavior
was what IE did.

This also makes <input type=button> behave more similarly to <button>.

Fixed: 922011
Change-Id: Ic37b7c14e4cb4ed5bebd49e7fcb6e11fca231be9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3440448
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#968780}

--

wpt-commits: e2c3ad1c011f8b4f08ab68a25d9f620c6fe22d6f
wpt-pr: 32762
  • Loading branch information
josepharhar authored and moz-wptsync-bot committed Mar 7, 2022
1 parent 7ef3cfe commit b03d037
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<input type=button value="1">
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=922011">
<link rel=mismatch href="input-type-button-newline-2-mismatch.html">

<input type=button value="1&#10;2">
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<input type=button value="12">
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=922011">
<link rel=mismatch href="input-type-button-newline-mismatch.html">

<input type=button value="1&#10;2">

0 comments on commit b03d037

Please sign in to comment.