зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503922 [wpt PR 13835] - Make Element#innerText not to emit Tab/Newline for <td>/<tr>/<br> itself, a=testonly
Automatic update from web-platform-testsMake Element#innerText not to emit Tab/Newline for <td>/<tr>/<br> itself This patch changes |Element#innerText| not to emit Tab/Newline for <td>, <br>, <tr> itself to follow the spec change[1] for improving interop. Example: - <br>.innerText -> "" (was "\n") - <td>abc</td>.innerText -> "abc" (was "abc\t") - <tr><td>abc</td></tr>.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 <yoichio@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#604872} -- wpt-commits: ff0b6d883e558c94a2302985d424606a80ed5200 wpt-pr: 13835
This commit is contained in:
Родитель
85ecf206a3
Коммит
973d06230f
|
@ -251,6 +251,8 @@ testText("<div><table style='border-collapse:collapse'><tr><td>abc<td>def</table
|
|||
testText("<div><table><tfoot>x</tfoot><tbody>y</tbody></table>", "xy", "tfoot not reordered");
|
||||
testText("<table><tfoot><tr><td>footer</tfoot><thead><tr><td style='visibility:collapse'>thead</thead><tbody><tr><td>tbody</tbody></table>",
|
||||
"footer\n\ntbody", "");
|
||||
testText("<table><tr><td id=target>abc</td><td>def</td>", "abc", "No tab on table-cell itself");
|
||||
testText("<table><tr id=target><td>abc</td><td>def</td></tr><tr id=target><td>ghi</td><td>jkl</td></tr>", "abc\tdef", "No newline on table-row itself");
|
||||
|
||||
/**** Table captions ****/
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче