• Yoshifumi Inoue's avatar
    Revise inline item and block-level replaced element handling Element#innerText · 315b30a5
    Yoshifumi Inoue authored
    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: default avatarYoichi Osato <yoichio@chromium.org>
    Reviewed-by: default avatarXiaocheng Hu <xiaochengh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#600671}
    315b30a5
canvas-accessibilitynodeobject-expected.txt 1009 Bytes