From 973d06230f9079fc54e250b03441fc0ad84f720b Mon Sep 17 00:00:00 2001 From: Yoshifumi Inoue Date: Fri, 9 Nov 2018 16:58:46 +0000 Subject: [PATCH] Bug 1503922 [wpt PR 13835] - Make Element#innerText not to emit Tab/Newline for //
itself, a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-testsMake Element#innerText not to emit Tab/Newline for //
itself This patch changes |Element#innerText| not to emit Tab/Newline for ,
, itself to follow the spec change[1] for improving interop. Example: -
.innerText -> "" (was "\n") - abc.innerText -> "abc" (was "abc\t") - abc.innerText -> "abc" (was "abc\n") [1] https://github.com/whatwg/html/pull/4132 Make innerText getter not run the algorithm on the element itself Bug: 897373 Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng Change-Id: I4266ee28df9b44e9044dfa60c2d54257a5f82eeb Reviewed-on: https://chromium-review.googlesource.com/c/1312436 Reviewed-by: Yoichi Osato Commit-Queue: Yoshifumi Inoue Cr-Commit-Position: refs/heads/master@{#604872} -- wpt-commits: ff0b6d883e558c94a2302985d424606a80ed5200 wpt-pr: 13835 --- .../dom/elements/the-innertext-idl-attribute/getter-tests.js | 2 ++ 1 file changed, 2 insertions(+) diff --git 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 index 4dd2b6be2061..6e663ba94316 100644 --- 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 @@ -251,6 +251,8 @@ testText("
abcdef
xy
", "xy", "tfoot not reordered"); testText("
footer
thead
tbody
", "footer\n\ntbody", ""); +testText("", "abc", "No tab on table-cell itself"); +testText("
abcdef
", "abc\tdef", "No newline on table-row itself"); /**** Table captions ****/
abcdef
ghijkl