Revise inline item and block-level replaced element handling Element#innerText
This patch changes inline item and block-level replaced handling in Element#innerText for improving interrop with adding test cases to WPT test file. Examples: * abc <img> def => "abc def"; not collapse spaces around <img> * <canvas></canvas> abc => " abc"; not collapse space after <canvas> * abc <img style="display:block"> def => "abc\ndef"; recognize block with style This patch also updates of layout test expectations since existing expectations were produced by Element#innerText with bug fixed by this patch. Bug: 894701 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I72d7eec3436d0cfa0226b5efa3adbc4c990f06c5 Reviewed-on: https://chromium-review.googlesource.com/c/1277802 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Yoichi Osato <yoichio@chromium.org> Reviewed-by:
Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#600671}
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment