Bug 1497327 [wpt PR 13376] - Make Element#innerText to collapse white spaces after <br>, a=testonly
authorYoshifumi Inoue <yosin@chromium.org>
Thu, 11 Oct 2018 09:30:45 +0000
changeset 499463 06f46420815f27c2f9534343e84058f1fa9568ca
parent 499462 dc4eff83928ec4f3fb8aada355edc95bcef13fae
child 499464 a798aebf9902cbc103a71142c8d9119b3b8b6a41
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1497327, 13376, 892491, 1263638, 597004
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1497327 [wpt PR 13376] - Make Element#innerText to collapse white spaces after <br>, a=testonly Automatic update from web-platform-testsMake Element#innerText to collapse white spaces after <br> This patch makes Element#innerText to collapse white space after <br> to avoid emitting extra space for improving interop. Bug: 892491 Cq-Include-Trybots: luci.chromium.try‚Äč:linux_layout_tests_layout_ng Change-Id: I8dd429a8af6ecd2e6d5195d6a6ec7b0214c6345c Reviewed-on: https://chromium-review.googlesource.com/c/1263638 Reviewed-by: Yoichi Osato <yoichio@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#597004} -- wpt-commits: 39e7ba97f48a930f5263148fc60387c449bc9945 wpt-pr: 13376
testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
--- a/testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
+++ b/testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
@@ -4,16 +4,17 @@ testText("<div>abc", "abc", "Simplest po
 
 testText("<div> abc", "abc", "Leading whitespace removed");
 testText("<div>abc ", "abc", "Trailing whitespace removed");
 testText("<div>abc  def", "abc def", "Internal whitespace compressed");
 testText("<div>abc\ndef", "abc def", "\\n converted to space");
 testText("<div>abc\rdef", "abc def", "\\r converted to space");
 testText("<div>abc\tdef", "abc def", "\\t converted to space");
 testText("<div>abc <br>def", "abc\ndef", "Trailing whitespace before hard line break removed");
+testText("<div>abc<br> def", "abc\ndef", "Leading whitespace after hard line break removed");
 
 /**** <pre> ****/
 
 testText("<pre> abc", " abc", "Leading whitespace preserved");
 testText("<pre>abc ", "abc ", "Trailing whitespace preserved");
 testText("<pre>abc  def", "abc  def", "Internal whitespace preserved");
 testText("<pre>abc\ndef", "abc\ndef", "\\n preserved");
 testText("<pre>abc\rdef", "abc\ndef", "\\r converted to newline");