[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

eric at webkit.org eric at webkit.org
Wed Dec 22 11:10:03 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit fb701375ee6f41cf4b4490522b28321a8dbd7588
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jul 14 08:59:30 2010 +0000

    2010-07-14  Eric Seidel  <eric at webkit.org>
    
            Reviewed by Nikolas Zimmermann.
    
            Selection dumping code should not dump body's offset in the document
            https://bugs.webkit.org/show_bug.cgi?id=42238
    
            Update results now that we're no longer dumping
            body's offset within HTML as part of selection dumps.
            I used a little python script to do all these updates.
            Basically it was just:
            s/child \d {BODY} .* of document/body/i
    
            LayoutTests will be updated across several commits to keep the SVN server happy.
    
            Commit number 2, update qt results.
    
            * platform/qt/editing/deleting/4845371-expected.txt:
            * platform/qt/editing/deleting/4922367-expected.txt:
            * platform/qt/editing/deleting/5026848-1-expected.txt:
            * platform/qt/editing/deleting/5026848-2-expected.txt:
            * platform/qt/editing/deleting/5026848-3-expected.txt:
            * platform/qt/editing/deleting/5032066-expected.txt:
            * platform/qt/editing/deleting/5091898-expected.txt:
            * platform/qt/editing/deleting/5099303-expected.txt:
            * platform/qt/editing/deleting/5115601-expected.txt:
            * platform/qt/editing/deleting/5126166-expected.txt:
            * platform/qt/editing/deleting/5144139-2-expected.txt:
            * platform/qt/editing/deleting/5156801-2-expected.txt:
            * platform/qt/editing/deleting/5168598-expected.txt:
            * platform/qt/editing/deleting/5206311-1-expected.txt:
            * platform/qt/editing/deleting/5206311-2-expected.txt:
            * platform/qt/editing/deleting/5272440-expected.txt:
            * platform/qt/editing/deleting/5300379-expected.txt:
            * platform/qt/editing/deleting/5369009-expected.txt:
            * platform/qt/editing/deleting/5390681-expected.txt:
            * platform/qt/editing/deleting/5408255-expected.txt:
            * platform/qt/editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3608430-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3608445-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3608462-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3775172-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3800834-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3857753-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3865854-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3928305-fix-expected.txt:
            * platform/qt/editing/deleting/delete-3959464-fix-expected.txt:
            * platform/qt/editing/deleting/delete-4038408-fix-expected.txt:
            * platform/qt/editing/deleting/delete-4083333-fix-expected.txt:
            * platform/qt/editing/deleting/delete-after-span-ws-001-expected.txt:
            * platform/qt/editing/deleting/delete-after-span-ws-002-expected.txt:
            * platform/qt/editing/deleting/delete-after-span-ws-003-expected.txt:
            * platform/qt/editing/deleting/delete-and-undo-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
            * platform/qt/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
            * platform/qt/editing/deleting/delete-at-start-or-end-expected.txt:
            * platform/qt/editing/deleting/delete-block-contents-001-expected.txt:
            * platform/qt/editing/deleting/delete-block-contents-002-expected.txt:
            * platform/qt/editing/deleting/delete-block-contents-003-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-001-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-002-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-003-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-004-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-005-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-006-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-007-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-008-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-009-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-010-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-011-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-012-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-013-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-014-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-015-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-016-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-017-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-018-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-019-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-020-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-021-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-022-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-023-expected.txt:
            * platform/qt/editing/deleting/delete-block-merge-contents-024-expected.txt:
            * platform/qt/editing/deleting/delete-block-table-expected.txt:
            * platform/qt/editing/deleting/delete-br-001-expected.txt:
            * platform/qt/editing/deleting/delete-br-002-expected.txt:
            * platform/qt/editing/deleting/delete-br-003-expected.txt:
            * platform/qt/editing/deleting/delete-br-004-expected.txt:
            * platform/qt/editing/deleting/delete-br-005-expected.txt:
            * platform/qt/editing/deleting/delete-br-006-expected.txt:
            * platform/qt/editing/deleting/delete-br-007-expected.txt:
            * platform/qt/editing/deleting/delete-br-008-expected.txt:
            * platform/qt/editing/deleting/delete-br-009-expected.txt:
            * platform/qt/editing/deleting/delete-br-010-expected.txt:
            * platform/qt/editing/deleting/delete-br-011-expected.txt:
            * platform/qt/editing/deleting/delete-br-012-expected.txt:
            * platform/qt/editing/deleting/delete-by-word-001-expected.txt:
            * platform/qt/editing/deleting/delete-by-word-002-expected.txt:
            * platform/qt/editing/deleting/delete-character-001-expected.txt:
            * platform/qt/editing/deleting/delete-contiguous-ws-001-expected.txt:
            * platform/qt/editing/deleting/delete-first-list-item-expected.txt:
            * platform/qt/editing/deleting/delete-hr-expected.txt:
            * platform/qt/editing/deleting/delete-image-001-expected.txt:
            * platform/qt/editing/deleting/delete-image-002-expected.txt:
            * platform/qt/editing/deleting/delete-image-003-expected.txt:
            * platform/qt/editing/deleting/delete-image-004-expected.txt:
            * platform/qt/editing/deleting/delete-leading-ws-001-expected.txt:
            * platform/qt/editing/deleting/delete-line-001-expected.txt:
            * platform/qt/editing/deleting/delete-line-002-expected.txt:
            * platform/qt/editing/deleting/delete-line-003-expected.txt:
            * platform/qt/editing/deleting/delete-line-004-expected.txt:
            * platform/qt/editing/deleting/delete-line-005-expected.txt:
            * platform/qt/editing/deleting/delete-line-006-expected.txt:
            * platform/qt/editing/deleting/delete-line-007-expected.txt:
            * platform/qt/editing/deleting/delete-line-008-expected.txt:
            * platform/qt/editing/deleting/delete-line-009-expected.txt:
            * platform/qt/editing/deleting/delete-line-010-expected.txt:
            * platform/qt/editing/deleting/delete-line-011-expected.txt:
            * platform/qt/editing/deleting/delete-line-012-expected.txt:
            * platform/qt/editing/deleting/delete-line-013-expected.txt:
            * platform/qt/editing/deleting/delete-line-014-expected.txt:
            * platform/qt/editing/deleting/delete-line-015-expected.txt:
            * platform/qt/editing/deleting/delete-line-016-expected.txt:
            * platform/qt/editing/deleting/delete-line-017-expected.txt:
            * platform/qt/editing/deleting/delete-line-end-ws-001-expected.txt:
            * platform/qt/editing/deleting/delete-line-end-ws-002-expected.txt:
            * platform/qt/editing/deleting/delete-link-1-expected.txt:
            * platform/qt/editing/deleting/delete-listitem-001-expected.txt:
            * platform/qt/editing/deleting/delete-listitem-002-expected.txt:
            * platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt:
            * platform/qt/editing/deleting/delete-select-all-001-expected.txt:
            * platform/qt/editing/deleting/delete-select-all-002-expected.txt:
            * platform/qt/editing/deleting/delete-select-all-003-expected.txt:
            * platform/qt/editing/deleting/delete-selection-001-expected.txt:
            * platform/qt/editing/deleting/delete-tab-001-expected.txt:
            * platform/qt/editing/deleting/delete-tab-002-expected.txt:
            * platform/qt/editing/deleting/delete-tab-003-expected.txt:
            * platform/qt/editing/deleting/delete-tab-004-expected.txt:
            * platform/qt/editing/deleting/delete-to-select-table-expected.txt:
            * platform/qt/editing/deleting/delete-trailing-ws-001-expected.txt:
            * platform/qt/editing/deleting/delete-trailing-ws-002-expected.txt:
            * platform/qt/editing/deleting/delete-ws-fixup-001-expected.txt:
            * platform/qt/editing/deleting/delete-ws-fixup-002-expected.txt:
            * platform/qt/editing/deleting/delete-ws-fixup-003-expected.txt:
            * platform/qt/editing/deleting/delete-ws-fixup-004-expected.txt:
            * platform/qt/editing/deleting/deletionUI-single-instance-expected.txt:
            * platform/qt/editing/deleting/forward-delete-expected.txt:
            * platform/qt/editing/deleting/list-item-1-expected.txt:
            * platform/qt/editing/deleting/merge-different-styles-expected.txt:
            * platform/qt/editing/deleting/merge-endOfParagraph-expected.txt:
            * platform/qt/editing/deleting/merge-into-empty-block-1-expected.txt:
            * platform/qt/editing/deleting/merge-into-empty-block-2-expected.txt:
            * platform/qt/editing/deleting/merge-no-br-expected.txt:
            * platform/qt/editing/deleting/merge-unrendered-space-expected.txt:
            * platform/qt/editing/deleting/merge-whitespace-pre-expected.txt:
            * platform/qt/editing/deleting/non-smart-delete-expected.txt:
            * platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt:
            * platform/qt/editing/deleting/pruning-after-merge-2-expected.txt:
            * platform/qt/editing/deleting/smart-delete-001-expected.txt:
            * platform/qt/editing/deleting/smart-delete-002-expected.txt:
            * platform/qt/editing/deleting/smart-delete-003-expected.txt:
            * platform/qt/editing/deleting/smart-delete-004-expected.txt:
            * platform/qt/editing/deleting/table-cells-expected.txt:
            * platform/qt/editing/deleting/transpose-empty-expected.txt:
            * platform/qt/editing/deleting/whitespace-pre-1-expected.txt:
            * platform/qt/editing/execCommand/4580583-1-expected.txt:
            * platform/qt/editing/execCommand/4580583-2-expected.txt:
            * platform/qt/editing/execCommand/4641880-1-expected.txt:
            * platform/qt/editing/execCommand/4641880-2-expected.txt:
            * platform/qt/editing/execCommand/4747450-expected.txt:
            * platform/qt/editing/execCommand/4786404-1-expected.txt:
            * platform/qt/editing/execCommand/4786404-2-expected.txt:
            * platform/qt/editing/execCommand/4916402-expected.txt:
            * platform/qt/editing/execCommand/4916541-expected.txt:
            * platform/qt/editing/execCommand/4920488-expected.txt:
            * platform/qt/editing/execCommand/4920742-1-expected.txt:
            * platform/qt/editing/execCommand/4924441-expected.txt:
            * platform/qt/editing/execCommand/5049671-expected.txt:
            * platform/qt/editing/execCommand/5062376-expected.txt:
            * platform/qt/editing/execCommand/5080333-1-expected.txt:
            * platform/qt/editing/execCommand/5080333-2-expected.txt:
            * platform/qt/editing/execCommand/5136770-expected.txt:
            * platform/qt/editing/execCommand/5138441-expected.txt:
            * platform/qt/editing/execCommand/5142012-1-expected.txt:
            * platform/qt/editing/execCommand/5142012-2-expected.txt:
            * platform/qt/editing/execCommand/5190926-expected.txt:
            * platform/qt/editing/execCommand/create-list-from-range-selection-expected.txt:
            * platform/qt/editing/execCommand/create-list-with-hr-expected.txt:
            * platform/qt/editing/execCommand/findString-2-expected.txt:
            * platform/qt/editing/execCommand/findString-expected.txt:
            * platform/qt/editing/execCommand/format-block-expected.txt:
            * platform/qt/editing/execCommand/format-block-from-range-selection-expected.txt:
            * platform/qt/editing/execCommand/format-block-with-braces-expected.txt:
            * platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt:
            * platform/qt/editing/execCommand/hilitecolor-expected.txt:
            * platform/qt/editing/execCommand/indent-empty-root-expected.txt:
            * platform/qt/editing/execCommand/indent-list-item-expected.txt:
            * platform/qt/editing/execCommand/indent-selection-expected.txt:
            * platform/qt/editing/execCommand/insert-list-and-stitch-expected.txt:
            * platform/qt/editing/execCommand/insert-list-empty-div-expected.txt:
            * platform/qt/editing/execCommand/insertImage-expected.txt:
            * platform/qt/editing/execCommand/outdent-selection-expected.txt:
            * platform/qt/editing/execCommand/print-expected.txt:
            * platform/qt/editing/execCommand/remove-formatting-2-expected.txt:
            * platform/qt/editing/execCommand/remove-formatting-expected.txt:
            * platform/qt/editing/execCommand/remove-list-from-range-selection-expected.txt:
            * platform/qt/editing/execCommand/remove-list-item-1-expected.txt:
            * platform/qt/editing/execCommand/selectAll-expected.txt:
            * platform/qt/editing/inserting/12882-expected.txt:
            * platform/qt/editing/inserting/4278698-expected.txt:
            * platform/qt/editing/inserting/4840662-expected.txt:
            * platform/qt/editing/inserting/4875189-1-expected.txt:
            * platform/qt/editing/inserting/4875189-2-expected.txt:
            * platform/qt/editing/inserting/4959067-expected.txt:
            * platform/qt/editing/inserting/4960120-1-expected.txt:
            * platform/qt/editing/inserting/4960120-2-expected.txt:
            * platform/qt/editing/inserting/5002441-expected.txt:
            * platform/qt/editing/inserting/5058163-1-expected.txt:
            * platform/qt/editing/inserting/5058163-2-expected.txt:
            * platform/qt/editing/inserting/5156401-2-expected.txt:
            * platform/qt/editing/inserting/5418891-expected.txt:
            * platform/qt/editing/inserting/5510537-expected.txt:
            * platform/qt/editing/inserting/5549929-2-expected.txt:
            * platform/qt/editing/inserting/5549929-3-expected.txt:
            * platform/qt/editing/inserting/6703873-expected.txt:
            * platform/qt/editing/inserting/before-after-input-element-expected.txt:
            * platform/qt/editing/inserting/break-blockquote-after-delete-expected.txt:
            * platform/qt/editing/inserting/editable-html-element-expected.txt:
            * platform/qt/editing/inserting/editable-inline-element-expected.txt:
            * platform/qt/editing/inserting/edited-whitespace-1-expected.txt:
            * platform/qt/editing/inserting/editing-empty-divs-expected.txt:
            * platform/qt/editing/inserting/insert-3654864-fix-expected.txt:
            * platform/qt/editing/inserting/insert-3659587-fix-expected.txt:
            * platform/qt/editing/inserting/insert-3775316-fix-expected.txt:
            * platform/qt/editing/inserting/insert-3778059-fix-expected.txt:
            * platform/qt/editing/inserting/insert-3786362-fix-expected.txt:
            * platform/qt/editing/inserting/insert-3800346-fix-expected.txt:
            * platform/qt/editing/inserting/insert-3851164-fix-expected.txt:
            * platform/qt/editing/inserting/insert-3907422-fix-expected.txt:
            * platform/qt/editing/inserting/insert-after-delete-001-expected.txt:
            * platform/qt/editing/inserting/insert-at-end-01-expected.txt:
            * platform/qt/editing/inserting/insert-at-end-02-expected.txt:
            * platform/qt/editing/inserting/insert-br-001-expected.txt:
            * platform/qt/editing/inserting/insert-br-002-expected.txt:
            * platform/qt/editing/inserting/insert-br-003-expected.txt:
            * platform/qt/editing/inserting/insert-br-004-expected.txt:
            * platform/qt/editing/inserting/insert-br-005-expected.txt:
            * platform/qt/editing/inserting/insert-br-006-expected.txt:
            * platform/qt/editing/inserting/insert-br-007-expected.txt:
            * platform/qt/editing/inserting/insert-br-008-expected.txt:
            * platform/qt/editing/inserting/insert-br-009-expected.txt:
            * platform/qt/editing/inserting/insert-br-at-tabspan-001-expected.txt:
            * platform/qt/editing/inserting/insert-br-at-tabspan-002-expected.txt:
            * platform/qt/editing/inserting/insert-br-at-tabspan-003-expected.txt:
            * platform/qt/editing/inserting/insert-br-quoted-001-expected.txt:
            * platform/qt/editing/inserting/insert-br-quoted-002-expected.txt:
            * platform/qt/editing/inserting/insert-br-quoted-003-expected.txt:
            * platform/qt/editing/inserting/insert-br-quoted-004-expected.txt:
            * platform/qt/editing/inserting/insert-br-quoted-005-expected.txt:
            * platform/qt/editing/inserting/insert-br-quoted-006-expected.txt:
            * platform/qt/editing/inserting/insert-div-001-expected.txt:
            * platform/qt/editing/inserting/insert-div-002-expected.txt:
            * platform/qt/editing/inserting/insert-div-003-expected.txt:
            * platform/qt/editing/inserting/insert-div-004-expected.txt:
            * platform/qt/editing/inserting/insert-div-005-expected.txt:
            * platform/qt/editing/inserting/insert-div-006-expected.txt:
            * platform/qt/editing/inserting/insert-div-007-expected.txt:
            * platform/qt/editing/inserting/insert-div-008-expected.txt:
            * platform/qt/editing/inserting/insert-div-009-expected.txt:
            * platform/qt/editing/inserting/insert-div-010-expected.txt:
            * platform/qt/editing/inserting/insert-div-011-expected.txt:
            * platform/qt/editing/inserting/insert-div-012-expected.txt:
            * platform/qt/editing/inserting/insert-div-013-expected.txt:
            * platform/qt/editing/inserting/insert-div-014-expected.txt:
            * platform/qt/editing/inserting/insert-div-015-expected.txt:
            * platform/qt/editing/inserting/insert-div-016-expected.txt:
            * platform/qt/editing/inserting/insert-div-017-expected.txt:
            * platform/qt/editing/inserting/insert-div-018-expected.txt:
            * platform/qt/editing/inserting/insert-div-019-expected.txt:
            * platform/qt/editing/inserting/insert-div-020-expected.txt:
            * platform/qt/editing/inserting/insert-div-021-expected.txt:
            * platform/qt/editing/inserting/insert-div-022-expected.txt:
            * platform/qt/editing/inserting/insert-div-023-expected.txt:
            * platform/qt/editing/inserting/insert-div-024-expected.txt:
            * platform/qt/editing/inserting/insert-div-025-expected.txt:
            * platform/qt/editing/inserting/insert-div-026-expected.txt:
            * platform/qt/editing/inserting/insert-div-027-expected.txt:
            * platform/qt/editing/inserting/insert-paragraph-01-expected.txt:
            * platform/qt/editing/inserting/insert-paragraph-02-expected.txt:
            * platform/qt/editing/inserting/insert-paragraph-03-expected.txt:
            * platform/qt/editing/inserting/insert-paragraph-04-expected.txt:
            * platform/qt/editing/inserting/insert-paragraph-05-expected.txt:
            * platform/qt/editing/inserting/insert-space-in-empty-doc-expected.txt:
            * platform/qt/editing/inserting/insert-tab-001-expected.txt:
            * platform/qt/editing/inserting/insert-tab-002-expected.txt:
            * platform/qt/editing/inserting/insert-tab-003-expected.txt:
            * platform/qt/editing/inserting/insert-tab-004-expected.txt:
            * platform/qt/editing/inserting/insert-text-at-tabspan-001-expected.txt:
            * platform/qt/editing/inserting/insert-text-at-tabspan-002-expected.txt:
            * platform/qt/editing/inserting/insert-text-at-tabspan-003-expected.txt:
            * platform/qt/editing/inserting/insert-text-with-newlines-expected.txt:
            * platform/qt/editing/inserting/line-break-expected.txt:
            * platform/qt/editing/inserting/paragraph-separator-01-expected.txt:
            * platform/qt/editing/inserting/paragraph-separator-02-expected.txt:
            * platform/qt/editing/inserting/paragraph-separator-03-expected.txt:
            * platform/qt/editing/inserting/paragraph-separator-in-table-1-expected.txt:
            * platform/qt/editing/inserting/paragraph-separator-in-table-2-expected.txt:
            * platform/qt/editing/inserting/redo-expected.txt:
            * platform/qt/editing/inserting/return-key-with-selection-001-expected.txt:
            * platform/qt/editing/inserting/return-key-with-selection-002-expected.txt:
            * platform/qt/editing/inserting/return-key-with-selection-003-expected.txt:
            * platform/qt/editing/inserting/typing-001-expected.txt:
            * platform/qt/editing/inserting/typing-002-expected.txt:
            * platform/qt/editing/inserting/typing-003-expected.txt:
            * platform/qt/editing/inserting/typing-around-br-001-expected.txt:
            * platform/qt/editing/inserting/typing-around-image-001-expected.txt:
            * platform/qt/editing/pasteboard/3976872-expected.txt:
            * platform/qt/editing/pasteboard/4076267-3-expected.txt:
            * platform/qt/editing/pasteboard/4242293-1-expected.txt:
            * platform/qt/editing/pasteboard/4242293-expected.txt:
            * platform/qt/editing/pasteboard/4631972-expected.txt:
            * platform/qt/editing/pasteboard/4641033-expected.txt:
            * platform/qt/editing/pasteboard/4700297-expected.txt:
            * platform/qt/editing/pasteboard/4806874-expected.txt:
            * platform/qt/editing/pasteboard/4944770-1-expected.txt:
            * platform/qt/editing/pasteboard/4944770-2-expected.txt:
            * platform/qt/editing/pasteboard/4989774-expected.txt:
            * platform/qt/editing/pasteboard/5006779-expected.txt:
            * platform/qt/editing/pasteboard/5027857-expected.txt:
            * platform/qt/editing/pasteboard/5028447-expected.txt:
            * platform/qt/editing/pasteboard/5032095-expected.txt:
            * platform/qt/editing/pasteboard/5065605-expected.txt:
            * platform/qt/editing/pasteboard/5071074-2-expected.txt:
            * platform/qt/editing/pasteboard/5071074-expected.txt:
            * platform/qt/editing/pasteboard/5075944-2-expected.txt:
            * platform/qt/editing/pasteboard/5075944-3-expected.txt:
            * platform/qt/editing/pasteboard/5075944-expected.txt:
            * platform/qt/editing/pasteboard/5089327-expected.txt:
            * platform/qt/editing/pasteboard/5134759-expected.txt:
            * platform/qt/editing/pasteboard/5156401-1-expected.txt:
            * platform/qt/editing/pasteboard/5247341-expected.txt:
            * platform/qt/editing/pasteboard/5368833-expected.txt:
            * platform/qt/editing/pasteboard/5387578-expected.txt:
            * platform/qt/editing/pasteboard/5478250-expected.txt:
            * platform/qt/editing/pasteboard/5483567-expected.txt:
            * platform/qt/editing/pasteboard/5601583-1-expected.txt:
            * platform/qt/editing/pasteboard/8145-1-expected.txt:
            * platform/qt/editing/pasteboard/8145-2-expected.txt:
            * platform/qt/editing/pasteboard/8145-3-expected.txt:
            * platform/qt/editing/pasteboard/bad-placeholder-expected.txt:
            * platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt:
            * platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt:
            * platform/qt/editing/pasteboard/cut-text-001-expected.txt:
            * platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt:
            * platform/qt/editing/pasteboard/displaced-placeholder-expected.txt:
            * platform/qt/editing/pasteboard/display-block-on-spans-expected.txt:
            * platform/qt/editing/pasteboard/drag-drop-dead-frame-expected.txt:
            * platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt:
            * platform/qt/editing/pasteboard/input-field-1-expected.txt:
            * platform/qt/editing/pasteboard/interchange-newline-1-expected.txt:
            * platform/qt/editing/pasteboard/interchange-newline-3-expected.txt:
            * platform/qt/editing/pasteboard/interchange-newline-4-expected.txt:
            * platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt:
            * platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt:
            * platform/qt/editing/pasteboard/merge-after-delete-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-1-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-2-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-3-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-4-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-5-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-borders-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-list-expected.txt:
            * platform/qt/editing/pasteboard/merge-end-table-expected.txt:
            * platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt:
            * platform/qt/editing/pasteboard/merge-start-list-expected.txt:
            * platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt:
            * platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt:
            * platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt:
            * platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt:
            * platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt:
            * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt:
            * platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt:
            * platform/qt/editing/pasteboard/paste-list-001-expected.txt:
            * platform/qt/editing/pasteboard/paste-match-style-001-expected.txt:
            * platform/qt/editing/pasteboard/paste-match-style-002-expected.txt:
            * platform/qt/editing/pasteboard/paste-pre-001-expected.txt:
            * platform/qt/editing/pasteboard/paste-pre-002-expected.txt:
            * platform/qt/editing/pasteboard/paste-table-001-expected.txt:
            * platform/qt/editing/pasteboard/paste-table-003-expected.txt:
            * platform/qt/editing/pasteboard/paste-table-cells-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-002-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-003-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-004-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-005-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-006-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-007-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-009-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-010-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-011-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-012-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-013-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-014-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-015-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-016-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-017-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-018-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-019-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
            * platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
            * platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt:
            * platform/qt/editing/pasteboard/paste-xml-expected.txt:
            * platform/qt/editing/pasteboard/pasting-object-expected.txt:
            * platform/qt/editing/pasteboard/pasting-tabs-expected.txt:
            * platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt:
            * platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt:
            * platform/qt/editing/pasteboard/select-element-1-expected.txt:
            * platform/qt/editing/pasteboard/smart-paste-001-expected.txt:
            * platform/qt/editing/pasteboard/smart-paste-002-expected.txt:
            * platform/qt/editing/pasteboard/smart-paste-003-expected.txt:
            * platform/qt/editing/pasteboard/smart-paste-004-expected.txt:
            * platform/qt/editing/pasteboard/smart-paste-005-expected.txt:
            * platform/qt/editing/pasteboard/smart-paste-006-expected.txt:
            * platform/qt/editing/pasteboard/smart-paste-007-expected.txt:
            * platform/qt/editing/pasteboard/styled-element-markup-expected.txt:
            * platform/qt/editing/pasteboard/testcase-9507-expected.txt:
            * platform/qt/editing/pasteboard/undoable-fragment-removes-expected.txt:
            * platform/qt/editing/pasteboard/unrendered-br-expected.txt:
            * platform/qt/editing/selection/13804-expected.txt:
            * platform/qt/editing/selection/3690703-2-expected.txt:
            * platform/qt/editing/selection/3690703-expected.txt:
            * platform/qt/editing/selection/3690719-expected.txt:
            * platform/qt/editing/selection/4397952-expected.txt:
            * platform/qt/editing/selection/4402375-expected.txt:
            * platform/qt/editing/selection/4818145-expected.txt:
            * platform/qt/editing/selection/4866671-expected.txt:
            * platform/qt/editing/selection/4889598-expected.txt:
            * platform/qt/editing/selection/4895428-2-expected.txt:
            * platform/qt/editing/selection/4895428-3-expected.txt:
            * platform/qt/editing/selection/4932260-1-expected.txt:
            * platform/qt/editing/selection/4932260-2-expected.txt:
            * platform/qt/editing/selection/4932260-3-expected.txt:
            * platform/qt/editing/selection/4960116-expected.txt:
            * platform/qt/editing/selection/4983858-expected.txt:
            * platform/qt/editing/selection/5007143-2-expected.txt:
            * platform/qt/editing/selection/5007143-expected.txt:
            * platform/qt/editing/selection/5076323-1-expected.txt:
            * platform/qt/editing/selection/5076323-2-expected.txt:
            * platform/qt/editing/selection/5076323-3-expected.txt:
            * platform/qt/editing/selection/5081257-1-expected.txt:
            * platform/qt/editing/selection/5081257-2-expected.txt:
            * platform/qt/editing/selection/5099303-expected.txt:
            * platform/qt/editing/selection/5131716-1-expected.txt:
            * platform/qt/editing/selection/5131716-2-expected.txt:
            * platform/qt/editing/selection/5131716-3-expected.txt:
            * platform/qt/editing/selection/5131716-4-expected.txt:
            * platform/qt/editing/selection/5195166-2-expected.txt:
            * platform/qt/editing/selection/5234383-1-expected.txt:
            * platform/qt/editing/selection/5234383-2-expected.txt:
            * platform/qt/editing/selection/5240265-expected.txt:
            * platform/qt/editing/selection/6476-expected.txt:
            * platform/qt/editing/selection/7152-1-expected.txt:
            * platform/qt/editing/selection/7152-2-expected.txt:
            * platform/qt/editing/selection/addRange-expected.txt:
            * platform/qt/editing/selection/after-line-wrap-expected.txt:
            * platform/qt/editing/selection/caret-before-select-expected.txt:
            * platform/qt/editing/selection/caret-rtl-2-expected.txt:
            * platform/qt/editing/selection/caret-rtl-expected.txt:
            * platform/qt/editing/selection/display-table-text-expected.txt:
            * platform/qt/editing/selection/editable-html-element-expected.txt:
            * platform/qt/editing/selection/editable-non-editable-crash-expected.txt:
            * platform/qt/editing/selection/end-of-document-expected.txt:
            * platform/qt/editing/selection/extend-by-character-001-expected.txt:
            * platform/qt/editing/selection/extend-by-character-002-expected.txt:
            * platform/qt/editing/selection/extend-by-character-003-expected.txt:
            * platform/qt/editing/selection/extend-by-character-004-expected.txt:
            * platform/qt/editing/selection/extend-by-character-005-expected.txt:
            * platform/qt/editing/selection/extend-by-character-006-expected.txt:
            * platform/qt/editing/selection/extend-by-sentence-001-expected.txt:
            * platform/qt/editing/selection/extend-by-word-001-expected.txt:
            * platform/qt/editing/selection/extend-by-word-002-expected.txt:
            * platform/qt/editing/selection/focus-body-expected.txt:
            * platform/qt/editing/selection/focus_editable_html-expected.txt:
            * platform/qt/editing/selection/iframe-expected.txt:
            * platform/qt/editing/selection/image-before-linebreak-expected.txt:
            * platform/qt/editing/selection/inline-table-expected.txt:
            * platform/qt/editing/selection/leave-requested-block-expected.txt:
            * platform/qt/editing/selection/line-wrap-1-expected.txt:
            * platform/qt/editing/selection/line-wrap-2-expected.txt:
            * platform/qt/editing/selection/mixed-editability-2-expected.txt:
            * platform/qt/editing/selection/mixed-editability-3-expected.txt:
            * platform/qt/editing/selection/mixed-editability-4-expected.txt:
            * platform/qt/editing/selection/mixed-editability-5-expected.txt:
            * platform/qt/editing/selection/mixed-editability-6-expected.txt:
            * platform/qt/editing/selection/mixed-editability-7-expected.txt:
            * platform/qt/editing/selection/mixed-editability-8-expected.txt:
            * platform/qt/editing/selection/mixed-editability-9-expected.txt:
            * platform/qt/editing/selection/move-3875618-fix-expected.txt:
            * platform/qt/editing/selection/move-3875641-fix-expected.txt:
            * platform/qt/editing/selection/move-backwords-by-word-001-expected.txt:
            * platform/qt/editing/selection/move-between-blocks-no-001-expected.txt:
            * platform/qt/editing/selection/move-between-blocks-yes-001-expected.txt:
            * platform/qt/editing/selection/move-by-character-001-expected.txt:
            * platform/qt/editing/selection/move-by-character-002-expected.txt:
            * platform/qt/editing/selection/move-by-character-003-expected.txt:
            * platform/qt/editing/selection/move-by-character-004-expected.txt:
            * platform/qt/editing/selection/move-by-character-005-expected.txt:
            * platform/qt/editing/selection/move-by-character-6-expected.txt:
            * platform/qt/editing/selection/move-by-line-001-expected.txt:
            * platform/qt/editing/selection/move-by-line-002-expected.txt:
            * platform/qt/editing/selection/move-by-sentence-001-expected.txt:
            * platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt:
            * platform/qt/editing/selection/move-by-word-001-expected.txt:
            * platform/qt/editing/selection/node-removal-2-expected.txt:
            * platform/qt/editing/selection/previous-line-position-expected.txt:
            * platform/qt/editing/selection/range-between-block-and-inline-expected.txt:
            * platform/qt/editing/selection/replace-selection-1-expected.txt:
            * platform/qt/editing/selection/replaced-boundaries-1-expected.txt:
            * platform/qt/editing/selection/replaced-boundaries-2-expected.txt:
            * platform/qt/editing/selection/replaced-boundaries-3-expected.txt:
            * platform/qt/editing/selection/select-all-001-expected.txt:
            * platform/qt/editing/selection/select-all-002-expected.txt:
            * platform/qt/editing/selection/select-all-003-expected.txt:
            * platform/qt/editing/selection/select-all-004-expected.txt:
            * platform/qt/editing/selection/select-all-005-expected.txt:
            * platform/qt/editing/selection/select-all-006-expected.txt:
            * platform/qt/editing/selection/select-box-expected.txt:
            * platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt:
            * platform/qt/editing/selection/select-missing-image-expected.txt:
            * platform/qt/editing/selection/select-text-overflow-ellipsis-expected.txt:
            * platform/qt/editing/selection/selection-3748164-fix-expected.txt:
            * platform/qt/editing/selection/table-caret-1-expected.txt:
            * platform/qt/editing/selection/table-caret-2-expected.txt:
            * platform/qt/editing/selection/table-caret-3-expected.txt:
            * platform/qt/editing/selection/unrendered-001-expected.txt:
            * platform/qt/editing/selection/unrendered-002-expected.txt:
            * platform/qt/editing/selection/unrendered-003-expected.txt:
            * platform/qt/editing/selection/unrendered-004-expected.txt:
            * platform/qt/editing/selection/unrendered-005-expected.txt:
            * platform/qt/editing/selection/unrendered-space-expected.txt:
            * platform/qt/editing/spelling/spelling-expected.txt:
            * platform/qt/editing/style/4916887-expected.txt:
            * platform/qt/editing/style/5017613-1-expected.txt:
            * platform/qt/editing/style/5017613-2-expected.txt:
            * platform/qt/editing/style/5046875-1-expected.txt:
            * platform/qt/editing/style/5046875-2-expected.txt:
            * platform/qt/editing/style/5065910-expected.txt:
            * platform/qt/editing/style/5084241-expected.txt:
            * platform/qt/editing/style/5228141-expected.txt:
            * platform/qt/editing/style/5279521-expected.txt:
            * platform/qt/editing/style/apple-style-editable-mix-expected.txt:
            * platform/qt/editing/style/block-style-001-expected.txt:
            * platform/qt/editing/style/block-style-002-expected.txt:
            * platform/qt/editing/style/block-style-003-expected.txt:
            * platform/qt/editing/style/block-style-004-expected.txt:
            * platform/qt/editing/style/block-style-005-expected.txt:
            * platform/qt/editing/style/block-style-006-expected.txt:
            * platform/qt/editing/style/block-styles-007-expected.txt:
            * platform/qt/editing/style/create-block-for-style-001-expected.txt:
            * platform/qt/editing/style/create-block-for-style-002-expected.txt:
            * platform/qt/editing/style/create-block-for-style-003-expected.txt:
            * platform/qt/editing/style/create-block-for-style-004-expected.txt:
            * platform/qt/editing/style/create-block-for-style-005-expected.txt:
            * platform/qt/editing/style/create-block-for-style-006-expected.txt:
            * platform/qt/editing/style/create-block-for-style-007-expected.txt:
            * platform/qt/editing/style/create-block-for-style-008-expected.txt:
            * platform/qt/editing/style/create-block-for-style-009-expected.txt:
            * platform/qt/editing/style/create-block-for-style-010-expected.txt:
            * platform/qt/editing/style/create-block-for-style-011-expected.txt:
            * platform/qt/editing/style/create-block-for-style-012-expected.txt:
            * platform/qt/editing/style/create-block-for-style-013-expected.txt:
            * platform/qt/editing/style/designmode-expected.txt:
            * platform/qt/editing/style/font-family-with-space-expected.txt:
            * platform/qt/editing/style/fontsize-1-expected.txt:
            * platform/qt/editing/style/highlight-expected.txt:
            * platform/qt/editing/style/non-inheritable-styles-expected.txt:
            * platform/qt/editing/style/relative-font-size-change-001-expected.txt:
            * platform/qt/editing/style/relative-font-size-change-002-expected.txt:
            * platform/qt/editing/style/relative-font-size-change-003-expected.txt:
            * platform/qt/editing/style/relative-font-size-change-004-expected.txt:
            * platform/qt/editing/style/smoosh-styles-001-expected.txt:
            * platform/qt/editing/style/smoosh-styles-002-expected.txt:
            * platform/qt/editing/style/smoosh-styles-003-expected.txt:
            * platform/qt/editing/style/style-3681552-fix-001-expected.txt:
            * platform/qt/editing/style/style-3690704-fix-expected.txt:
            * platform/qt/editing/style/style-3998892-fix-expected.txt:
            * platform/qt/editing/style/style-boundary-001-expected.txt:
            * platform/qt/editing/style/style-boundary-002-expected.txt:
            * platform/qt/editing/style/style-boundary-003-expected.txt:
            * platform/qt/editing/style/style-boundary-004-expected.txt:
            * platform/qt/editing/style/style-boundary-005-expected.txt:
            * platform/qt/editing/style/table-selection-expected.txt:
            * platform/qt/editing/style/typing-style-001-expected.txt:
            * platform/qt/editing/style/typing-style-002-expected.txt:
            * platform/qt/editing/style/typing-style-003-expected.txt:
            * platform/qt/editing/style/unbold-in-bold-expected.txt:
            * platform/qt/editing/undo/4063751-expected.txt:
            * platform/qt/editing/undo/5378473-expected.txt:
            * platform/qt/editing/undo/redo-typing-001-expected.txt:
            * platform/qt/editing/undo/undo-combined-delete-boundary-expected.txt:
            * platform/qt/editing/undo/undo-combined-delete-expected.txt:
            * platform/qt/editing/undo/undo-delete-boundary-expected.txt:
            * platform/qt/editing/undo/undo-delete-expected.txt:
            * platform/qt/editing/undo/undo-forward-delete-boundary-expected.txt:
            * platform/qt/editing/undo/undo-forward-delete-expected.txt:
            * platform/qt/editing/undo/undo-misspellings-expected.txt:
            * platform/qt/editing/undo/undo-typing-001-expected.txt:
            * platform/qt/editing/unsupported-content/list-delete-001-expected.txt:
            * platform/qt/editing/unsupported-content/list-delete-003-expected.txt:
            * platform/qt/editing/unsupported-content/list-type-after-expected.txt:
            * platform/qt/editing/unsupported-content/list-type-before-expected.txt:
            * platform/qt/editing/unsupported-content/table-delete-001-expected.txt:
            * platform/qt/editing/unsupported-content/table-delete-002-expected.txt:
            * platform/qt/editing/unsupported-content/table-delete-003-expected.txt:
            * platform/qt/editing/unsupported-content/table-type-after-expected.txt:
            * platform/qt/editing/unsupported-content/table-type-before-expected.txt:
            * platform/qt/fast/backgrounds/solid-color-context-restore-expected.txt:
            * platform/qt/fast/css-generated-content/hover-style-change-expected.txt:
            * platform/qt/fast/css/layerZOrderCrash-expected.txt:
            * platform/qt/fast/css/universal-hover-quirk-expected.txt:
            * platform/qt/fast/dom/delete-contents-expected.txt:
            * platform/qt/fast/dynamic/selection-highlight-adjust-expected.txt:
            * platform/qt/fast/events/label-focus-expected.txt:
            * platform/qt/fast/forms/input-appearance-focus-expected.txt:
            * platform/qt/fast/forms/input-appearance-readonly-expected.txt:
            * platform/qt/fast/forms/input-appearance-selection-expected.txt:
            * platform/qt/fast/forms/input-double-click-selection-gap-bug-expected.txt:
            * platform/qt/fast/forms/input-maxlength-2-expected.txt:
            * platform/qt/fast/forms/input-paste-undo-expected.txt:
            * platform/qt/fast/forms/input-text-click-inside-expected.txt:
            * platform/qt/fast/forms/input-text-option-delete-expected.txt:
            * platform/qt/fast/forms/input-text-self-emptying-click-expected.txt:
            * platform/qt/fast/forms/plaintext-mode-2-expected.txt:
            * platform/qt/fast/forms/textfield-overflow-expected.txt:
            * platform/qt/fast/frames/take-focus-from-iframe-expected.txt:
            * platform/qt/fast/inline-block/14498-positionForCoordinates-expected.txt:
            * platform/qt/fast/lists/markers-in-selection-expected.txt:
            * platform/qt/fast/overflow/image-selection-highlight-expected.txt:
            * platform/qt/fast/overflow/overflow-focus-ring-expected.txt:
            * platform/qt/fast/overflow/overflow-text-hit-testing-expected.txt:
            * platform/qt/fast/repaint/4776765-expected.txt:
            * platform/qt/fast/repaint/delete-into-nested-block-expected.txt:
            * platform/qt/fast/repaint/inline-outline-repaint-expected.txt:
            * platform/qt/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt:
            * platform/qt/fast/repaint/selection-after-delete-expected.txt:
            * platform/qt/fast/repaint/selection-after-remove-expected.txt:
            * platform/qt/fast/replaced/selection-rect-expected.txt:
            * platform/qt/fast/replaced/selection-rect-in-table-cell-expected.txt:
            * platform/qt/fast/selectors/159-expected.txt:
            * platform/qt/fast/selectors/177a-expected.txt:
            * platform/qt/fast/table/click-near-anonymous-table-expected.txt:
            * platform/qt/fast/text/atsui-kerning-and-ligatures-expected.txt:
            * platform/qt/fast/text/atsui-partial-selection-expected.txt:
            * platform/qt/fast/text/delete-hard-break-character-expected.txt:
            * platform/qt/fast/text/international/khmer-selection-expected.txt:
            * platform/qt/fast/text/international/rtl-caret-expected.txt:
            * platform/qt/fast/text/justified-selection-at-edge-expected.txt:
            * platform/qt/fast/text/justified-selection-expected.txt:
            * platform/qt/fast/text/should-use-atsui-expected.txt:
            * platform/qt/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt:
            * platform/qt/svg/text/foreignObject-text-clipping-bug-expected.txt:
            * platform/qt/svg/text/selection-background-color-expected.txt:
            * platform/qt/svg/text/selection-styles-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63292 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 07272ea..bb7daec 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -13,6 +13,696 @@
 
         LayoutTests will be updated across several commits to keep the SVN server happy.
 
+        Commit number 2, update qt results.
+
+        * platform/qt/editing/deleting/4845371-expected.txt:
+        * platform/qt/editing/deleting/4922367-expected.txt:
+        * platform/qt/editing/deleting/5026848-1-expected.txt:
+        * platform/qt/editing/deleting/5026848-2-expected.txt:
+        * platform/qt/editing/deleting/5026848-3-expected.txt:
+        * platform/qt/editing/deleting/5032066-expected.txt:
+        * platform/qt/editing/deleting/5091898-expected.txt:
+        * platform/qt/editing/deleting/5099303-expected.txt:
+        * platform/qt/editing/deleting/5115601-expected.txt:
+        * platform/qt/editing/deleting/5126166-expected.txt:
+        * platform/qt/editing/deleting/5144139-2-expected.txt:
+        * platform/qt/editing/deleting/5156801-2-expected.txt:
+        * platform/qt/editing/deleting/5168598-expected.txt:
+        * platform/qt/editing/deleting/5206311-1-expected.txt:
+        * platform/qt/editing/deleting/5206311-2-expected.txt:
+        * platform/qt/editing/deleting/5272440-expected.txt:
+        * platform/qt/editing/deleting/5300379-expected.txt:
+        * platform/qt/editing/deleting/5369009-expected.txt:
+        * platform/qt/editing/deleting/5390681-expected.txt:
+        * platform/qt/editing/deleting/5408255-expected.txt:
+        * platform/qt/editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3608430-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3608445-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3608462-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3775172-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3800834-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3857753-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3865854-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3928305-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-3959464-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-4038408-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-4083333-fix-expected.txt:
+        * platform/qt/editing/deleting/delete-after-span-ws-001-expected.txt:
+        * platform/qt/editing/deleting/delete-after-span-ws-002-expected.txt:
+        * platform/qt/editing/deleting/delete-after-span-ws-003-expected.txt:
+        * platform/qt/editing/deleting/delete-and-undo-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
+        * platform/qt/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
+        * platform/qt/editing/deleting/delete-at-start-or-end-expected.txt:
+        * platform/qt/editing/deleting/delete-block-contents-001-expected.txt:
+        * platform/qt/editing/deleting/delete-block-contents-002-expected.txt:
+        * platform/qt/editing/deleting/delete-block-contents-003-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-001-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-002-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-003-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-004-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-005-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-006-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-007-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-008-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-009-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-010-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-011-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-012-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-013-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-014-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-015-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-016-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-017-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-018-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-019-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-020-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-021-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-022-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-023-expected.txt:
+        * platform/qt/editing/deleting/delete-block-merge-contents-024-expected.txt:
+        * platform/qt/editing/deleting/delete-block-table-expected.txt:
+        * platform/qt/editing/deleting/delete-br-001-expected.txt:
+        * platform/qt/editing/deleting/delete-br-002-expected.txt:
+        * platform/qt/editing/deleting/delete-br-003-expected.txt:
+        * platform/qt/editing/deleting/delete-br-004-expected.txt:
+        * platform/qt/editing/deleting/delete-br-005-expected.txt:
+        * platform/qt/editing/deleting/delete-br-006-expected.txt:
+        * platform/qt/editing/deleting/delete-br-007-expected.txt:
+        * platform/qt/editing/deleting/delete-br-008-expected.txt:
+        * platform/qt/editing/deleting/delete-br-009-expected.txt:
+        * platform/qt/editing/deleting/delete-br-010-expected.txt:
+        * platform/qt/editing/deleting/delete-br-011-expected.txt:
+        * platform/qt/editing/deleting/delete-br-012-expected.txt:
+        * platform/qt/editing/deleting/delete-by-word-001-expected.txt:
+        * platform/qt/editing/deleting/delete-by-word-002-expected.txt:
+        * platform/qt/editing/deleting/delete-character-001-expected.txt:
+        * platform/qt/editing/deleting/delete-contiguous-ws-001-expected.txt:
+        * platform/qt/editing/deleting/delete-first-list-item-expected.txt:
+        * platform/qt/editing/deleting/delete-hr-expected.txt:
+        * platform/qt/editing/deleting/delete-image-001-expected.txt:
+        * platform/qt/editing/deleting/delete-image-002-expected.txt:
+        * platform/qt/editing/deleting/delete-image-003-expected.txt:
+        * platform/qt/editing/deleting/delete-image-004-expected.txt:
+        * platform/qt/editing/deleting/delete-leading-ws-001-expected.txt:
+        * platform/qt/editing/deleting/delete-line-001-expected.txt:
+        * platform/qt/editing/deleting/delete-line-002-expected.txt:
+        * platform/qt/editing/deleting/delete-line-003-expected.txt:
+        * platform/qt/editing/deleting/delete-line-004-expected.txt:
+        * platform/qt/editing/deleting/delete-line-005-expected.txt:
+        * platform/qt/editing/deleting/delete-line-006-expected.txt:
+        * platform/qt/editing/deleting/delete-line-007-expected.txt:
+        * platform/qt/editing/deleting/delete-line-008-expected.txt:
+        * platform/qt/editing/deleting/delete-line-009-expected.txt:
+        * platform/qt/editing/deleting/delete-line-010-expected.txt:
+        * platform/qt/editing/deleting/delete-line-011-expected.txt:
+        * platform/qt/editing/deleting/delete-line-012-expected.txt:
+        * platform/qt/editing/deleting/delete-line-013-expected.txt:
+        * platform/qt/editing/deleting/delete-line-014-expected.txt:
+        * platform/qt/editing/deleting/delete-line-015-expected.txt:
+        * platform/qt/editing/deleting/delete-line-016-expected.txt:
+        * platform/qt/editing/deleting/delete-line-017-expected.txt:
+        * platform/qt/editing/deleting/delete-line-end-ws-001-expected.txt:
+        * platform/qt/editing/deleting/delete-line-end-ws-002-expected.txt:
+        * platform/qt/editing/deleting/delete-link-1-expected.txt:
+        * platform/qt/editing/deleting/delete-listitem-001-expected.txt:
+        * platform/qt/editing/deleting/delete-listitem-002-expected.txt:
+        * platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt:
+        * platform/qt/editing/deleting/delete-select-all-001-expected.txt:
+        * platform/qt/editing/deleting/delete-select-all-002-expected.txt:
+        * platform/qt/editing/deleting/delete-select-all-003-expected.txt:
+        * platform/qt/editing/deleting/delete-selection-001-expected.txt:
+        * platform/qt/editing/deleting/delete-tab-001-expected.txt:
+        * platform/qt/editing/deleting/delete-tab-002-expected.txt:
+        * platform/qt/editing/deleting/delete-tab-003-expected.txt:
+        * platform/qt/editing/deleting/delete-tab-004-expected.txt:
+        * platform/qt/editing/deleting/delete-to-select-table-expected.txt:
+        * platform/qt/editing/deleting/delete-trailing-ws-001-expected.txt:
+        * platform/qt/editing/deleting/delete-trailing-ws-002-expected.txt:
+        * platform/qt/editing/deleting/delete-ws-fixup-001-expected.txt:
+        * platform/qt/editing/deleting/delete-ws-fixup-002-expected.txt:
+        * platform/qt/editing/deleting/delete-ws-fixup-003-expected.txt:
+        * platform/qt/editing/deleting/delete-ws-fixup-004-expected.txt:
+        * platform/qt/editing/deleting/deletionUI-single-instance-expected.txt:
+        * platform/qt/editing/deleting/forward-delete-expected.txt:
+        * platform/qt/editing/deleting/list-item-1-expected.txt:
+        * platform/qt/editing/deleting/merge-different-styles-expected.txt:
+        * platform/qt/editing/deleting/merge-endOfParagraph-expected.txt:
+        * platform/qt/editing/deleting/merge-into-empty-block-1-expected.txt:
+        * platform/qt/editing/deleting/merge-into-empty-block-2-expected.txt:
+        * platform/qt/editing/deleting/merge-no-br-expected.txt:
+        * platform/qt/editing/deleting/merge-unrendered-space-expected.txt:
+        * platform/qt/editing/deleting/merge-whitespace-pre-expected.txt:
+        * platform/qt/editing/deleting/non-smart-delete-expected.txt:
+        * platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt:
+        * platform/qt/editing/deleting/pruning-after-merge-2-expected.txt:
+        * platform/qt/editing/deleting/smart-delete-001-expected.txt:
+        * platform/qt/editing/deleting/smart-delete-002-expected.txt:
+        * platform/qt/editing/deleting/smart-delete-003-expected.txt:
+        * platform/qt/editing/deleting/smart-delete-004-expected.txt:
+        * platform/qt/editing/deleting/table-cells-expected.txt:
+        * platform/qt/editing/deleting/transpose-empty-expected.txt:
+        * platform/qt/editing/deleting/whitespace-pre-1-expected.txt:
+        * platform/qt/editing/execCommand/4580583-1-expected.txt:
+        * platform/qt/editing/execCommand/4580583-2-expected.txt:
+        * platform/qt/editing/execCommand/4641880-1-expected.txt:
+        * platform/qt/editing/execCommand/4641880-2-expected.txt:
+        * platform/qt/editing/execCommand/4747450-expected.txt:
+        * platform/qt/editing/execCommand/4786404-1-expected.txt:
+        * platform/qt/editing/execCommand/4786404-2-expected.txt:
+        * platform/qt/editing/execCommand/4916402-expected.txt:
+        * platform/qt/editing/execCommand/4916541-expected.txt:
+        * platform/qt/editing/execCommand/4920488-expected.txt:
+        * platform/qt/editing/execCommand/4920742-1-expected.txt:
+        * platform/qt/editing/execCommand/4924441-expected.txt:
+        * platform/qt/editing/execCommand/5049671-expected.txt:
+        * platform/qt/editing/execCommand/5062376-expected.txt:
+        * platform/qt/editing/execCommand/5080333-1-expected.txt:
+        * platform/qt/editing/execCommand/5080333-2-expected.txt:
+        * platform/qt/editing/execCommand/5136770-expected.txt:
+        * platform/qt/editing/execCommand/5138441-expected.txt:
+        * platform/qt/editing/execCommand/5142012-1-expected.txt:
+        * platform/qt/editing/execCommand/5142012-2-expected.txt:
+        * platform/qt/editing/execCommand/5190926-expected.txt:
+        * platform/qt/editing/execCommand/create-list-from-range-selection-expected.txt:
+        * platform/qt/editing/execCommand/create-list-with-hr-expected.txt:
+        * platform/qt/editing/execCommand/findString-2-expected.txt:
+        * platform/qt/editing/execCommand/findString-expected.txt:
+        * platform/qt/editing/execCommand/format-block-expected.txt:
+        * platform/qt/editing/execCommand/format-block-from-range-selection-expected.txt:
+        * platform/qt/editing/execCommand/format-block-with-braces-expected.txt:
+        * platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt:
+        * platform/qt/editing/execCommand/hilitecolor-expected.txt:
+        * platform/qt/editing/execCommand/indent-empty-root-expected.txt:
+        * platform/qt/editing/execCommand/indent-list-item-expected.txt:
+        * platform/qt/editing/execCommand/indent-selection-expected.txt:
+        * platform/qt/editing/execCommand/insert-list-and-stitch-expected.txt:
+        * platform/qt/editing/execCommand/insert-list-empty-div-expected.txt:
+        * platform/qt/editing/execCommand/insertImage-expected.txt:
+        * platform/qt/editing/execCommand/outdent-selection-expected.txt:
+        * platform/qt/editing/execCommand/print-expected.txt:
+        * platform/qt/editing/execCommand/remove-formatting-2-expected.txt:
+        * platform/qt/editing/execCommand/remove-formatting-expected.txt:
+        * platform/qt/editing/execCommand/remove-list-from-range-selection-expected.txt:
+        * platform/qt/editing/execCommand/remove-list-item-1-expected.txt:
+        * platform/qt/editing/execCommand/selectAll-expected.txt:
+        * platform/qt/editing/inserting/12882-expected.txt:
+        * platform/qt/editing/inserting/4278698-expected.txt:
+        * platform/qt/editing/inserting/4840662-expected.txt:
+        * platform/qt/editing/inserting/4875189-1-expected.txt:
+        * platform/qt/editing/inserting/4875189-2-expected.txt:
+        * platform/qt/editing/inserting/4959067-expected.txt:
+        * platform/qt/editing/inserting/4960120-1-expected.txt:
+        * platform/qt/editing/inserting/4960120-2-expected.txt:
+        * platform/qt/editing/inserting/5002441-expected.txt:
+        * platform/qt/editing/inserting/5058163-1-expected.txt:
+        * platform/qt/editing/inserting/5058163-2-expected.txt:
+        * platform/qt/editing/inserting/5156401-2-expected.txt:
+        * platform/qt/editing/inserting/5418891-expected.txt:
+        * platform/qt/editing/inserting/5510537-expected.txt:
+        * platform/qt/editing/inserting/5549929-2-expected.txt:
+        * platform/qt/editing/inserting/5549929-3-expected.txt:
+        * platform/qt/editing/inserting/6703873-expected.txt:
+        * platform/qt/editing/inserting/before-after-input-element-expected.txt:
+        * platform/qt/editing/inserting/break-blockquote-after-delete-expected.txt:
+        * platform/qt/editing/inserting/editable-html-element-expected.txt:
+        * platform/qt/editing/inserting/editable-inline-element-expected.txt:
+        * platform/qt/editing/inserting/edited-whitespace-1-expected.txt:
+        * platform/qt/editing/inserting/editing-empty-divs-expected.txt:
+        * platform/qt/editing/inserting/insert-3654864-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-3659587-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-3775316-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-3778059-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-3786362-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-3800346-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-3851164-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-3907422-fix-expected.txt:
+        * platform/qt/editing/inserting/insert-after-delete-001-expected.txt:
+        * platform/qt/editing/inserting/insert-at-end-01-expected.txt:
+        * platform/qt/editing/inserting/insert-at-end-02-expected.txt:
+        * platform/qt/editing/inserting/insert-br-001-expected.txt:
+        * platform/qt/editing/inserting/insert-br-002-expected.txt:
+        * platform/qt/editing/inserting/insert-br-003-expected.txt:
+        * platform/qt/editing/inserting/insert-br-004-expected.txt:
+        * platform/qt/editing/inserting/insert-br-005-expected.txt:
+        * platform/qt/editing/inserting/insert-br-006-expected.txt:
+        * platform/qt/editing/inserting/insert-br-007-expected.txt:
+        * platform/qt/editing/inserting/insert-br-008-expected.txt:
+        * platform/qt/editing/inserting/insert-br-009-expected.txt:
+        * platform/qt/editing/inserting/insert-br-at-tabspan-001-expected.txt:
+        * platform/qt/editing/inserting/insert-br-at-tabspan-002-expected.txt:
+        * platform/qt/editing/inserting/insert-br-at-tabspan-003-expected.txt:
+        * platform/qt/editing/inserting/insert-br-quoted-001-expected.txt:
+        * platform/qt/editing/inserting/insert-br-quoted-002-expected.txt:
+        * platform/qt/editing/inserting/insert-br-quoted-003-expected.txt:
+        * platform/qt/editing/inserting/insert-br-quoted-004-expected.txt:
+        * platform/qt/editing/inserting/insert-br-quoted-005-expected.txt:
+        * platform/qt/editing/inserting/insert-br-quoted-006-expected.txt:
+        * platform/qt/editing/inserting/insert-div-001-expected.txt:
+        * platform/qt/editing/inserting/insert-div-002-expected.txt:
+        * platform/qt/editing/inserting/insert-div-003-expected.txt:
+        * platform/qt/editing/inserting/insert-div-004-expected.txt:
+        * platform/qt/editing/inserting/insert-div-005-expected.txt:
+        * platform/qt/editing/inserting/insert-div-006-expected.txt:
+        * platform/qt/editing/inserting/insert-div-007-expected.txt:
+        * platform/qt/editing/inserting/insert-div-008-expected.txt:
+        * platform/qt/editing/inserting/insert-div-009-expected.txt:
+        * platform/qt/editing/inserting/insert-div-010-expected.txt:
+        * platform/qt/editing/inserting/insert-div-011-expected.txt:
+        * platform/qt/editing/inserting/insert-div-012-expected.txt:
+        * platform/qt/editing/inserting/insert-div-013-expected.txt:
+        * platform/qt/editing/inserting/insert-div-014-expected.txt:
+        * platform/qt/editing/inserting/insert-div-015-expected.txt:
+        * platform/qt/editing/inserting/insert-div-016-expected.txt:
+        * platform/qt/editing/inserting/insert-div-017-expected.txt:
+        * platform/qt/editing/inserting/insert-div-018-expected.txt:
+        * platform/qt/editing/inserting/insert-div-019-expected.txt:
+        * platform/qt/editing/inserting/insert-div-020-expected.txt:
+        * platform/qt/editing/inserting/insert-div-021-expected.txt:
+        * platform/qt/editing/inserting/insert-div-022-expected.txt:
+        * platform/qt/editing/inserting/insert-div-023-expected.txt:
+        * platform/qt/editing/inserting/insert-div-024-expected.txt:
+        * platform/qt/editing/inserting/insert-div-025-expected.txt:
+        * platform/qt/editing/inserting/insert-div-026-expected.txt:
+        * platform/qt/editing/inserting/insert-div-027-expected.txt:
+        * platform/qt/editing/inserting/insert-paragraph-01-expected.txt:
+        * platform/qt/editing/inserting/insert-paragraph-02-expected.txt:
+        * platform/qt/editing/inserting/insert-paragraph-03-expected.txt:
+        * platform/qt/editing/inserting/insert-paragraph-04-expected.txt:
+        * platform/qt/editing/inserting/insert-paragraph-05-expected.txt:
+        * platform/qt/editing/inserting/insert-space-in-empty-doc-expected.txt:
+        * platform/qt/editing/inserting/insert-tab-001-expected.txt:
+        * platform/qt/editing/inserting/insert-tab-002-expected.txt:
+        * platform/qt/editing/inserting/insert-tab-003-expected.txt:
+        * platform/qt/editing/inserting/insert-tab-004-expected.txt:
+        * platform/qt/editing/inserting/insert-text-at-tabspan-001-expected.txt:
+        * platform/qt/editing/inserting/insert-text-at-tabspan-002-expected.txt:
+        * platform/qt/editing/inserting/insert-text-at-tabspan-003-expected.txt:
+        * platform/qt/editing/inserting/insert-text-with-newlines-expected.txt:
+        * platform/qt/editing/inserting/line-break-expected.txt:
+        * platform/qt/editing/inserting/paragraph-separator-01-expected.txt:
+        * platform/qt/editing/inserting/paragraph-separator-02-expected.txt:
+        * platform/qt/editing/inserting/paragraph-separator-03-expected.txt:
+        * platform/qt/editing/inserting/paragraph-separator-in-table-1-expected.txt:
+        * platform/qt/editing/inserting/paragraph-separator-in-table-2-expected.txt:
+        * platform/qt/editing/inserting/redo-expected.txt:
+        * platform/qt/editing/inserting/return-key-with-selection-001-expected.txt:
+        * platform/qt/editing/inserting/return-key-with-selection-002-expected.txt:
+        * platform/qt/editing/inserting/return-key-with-selection-003-expected.txt:
+        * platform/qt/editing/inserting/typing-001-expected.txt:
+        * platform/qt/editing/inserting/typing-002-expected.txt:
+        * platform/qt/editing/inserting/typing-003-expected.txt:
+        * platform/qt/editing/inserting/typing-around-br-001-expected.txt:
+        * platform/qt/editing/inserting/typing-around-image-001-expected.txt:
+        * platform/qt/editing/pasteboard/3976872-expected.txt:
+        * platform/qt/editing/pasteboard/4076267-3-expected.txt:
+        * platform/qt/editing/pasteboard/4242293-1-expected.txt:
+        * platform/qt/editing/pasteboard/4242293-expected.txt:
+        * platform/qt/editing/pasteboard/4631972-expected.txt:
+        * platform/qt/editing/pasteboard/4641033-expected.txt:
+        * platform/qt/editing/pasteboard/4700297-expected.txt:
+        * platform/qt/editing/pasteboard/4806874-expected.txt:
+        * platform/qt/editing/pasteboard/4944770-1-expected.txt:
+        * platform/qt/editing/pasteboard/4944770-2-expected.txt:
+        * platform/qt/editing/pasteboard/4989774-expected.txt:
+        * platform/qt/editing/pasteboard/5006779-expected.txt:
+        * platform/qt/editing/pasteboard/5027857-expected.txt:
+        * platform/qt/editing/pasteboard/5028447-expected.txt:
+        * platform/qt/editing/pasteboard/5032095-expected.txt:
+        * platform/qt/editing/pasteboard/5065605-expected.txt:
+        * platform/qt/editing/pasteboard/5071074-2-expected.txt:
+        * platform/qt/editing/pasteboard/5071074-expected.txt:
+        * platform/qt/editing/pasteboard/5075944-2-expected.txt:
+        * platform/qt/editing/pasteboard/5075944-3-expected.txt:
+        * platform/qt/editing/pasteboard/5075944-expected.txt:
+        * platform/qt/editing/pasteboard/5089327-expected.txt:
+        * platform/qt/editing/pasteboard/5134759-expected.txt:
+        * platform/qt/editing/pasteboard/5156401-1-expected.txt:
+        * platform/qt/editing/pasteboard/5247341-expected.txt:
+        * platform/qt/editing/pasteboard/5368833-expected.txt:
+        * platform/qt/editing/pasteboard/5387578-expected.txt:
+        * platform/qt/editing/pasteboard/5478250-expected.txt:
+        * platform/qt/editing/pasteboard/5483567-expected.txt:
+        * platform/qt/editing/pasteboard/5601583-1-expected.txt:
+        * platform/qt/editing/pasteboard/8145-1-expected.txt:
+        * platform/qt/editing/pasteboard/8145-2-expected.txt:
+        * platform/qt/editing/pasteboard/8145-3-expected.txt:
+        * platform/qt/editing/pasteboard/bad-placeholder-expected.txt:
+        * platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt:
+        * platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt:
+        * platform/qt/editing/pasteboard/cut-text-001-expected.txt:
+        * platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt:
+        * platform/qt/editing/pasteboard/displaced-placeholder-expected.txt:
+        * platform/qt/editing/pasteboard/display-block-on-spans-expected.txt:
+        * platform/qt/editing/pasteboard/drag-drop-dead-frame-expected.txt:
+        * platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt:
+        * platform/qt/editing/pasteboard/input-field-1-expected.txt:
+        * platform/qt/editing/pasteboard/interchange-newline-1-expected.txt:
+        * platform/qt/editing/pasteboard/interchange-newline-3-expected.txt:
+        * platform/qt/editing/pasteboard/interchange-newline-4-expected.txt:
+        * platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt:
+        * platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt:
+        * platform/qt/editing/pasteboard/merge-after-delete-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-1-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-2-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-3-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-4-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-5-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-borders-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-list-expected.txt:
+        * platform/qt/editing/pasteboard/merge-end-table-expected.txt:
+        * platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt:
+        * platform/qt/editing/pasteboard/merge-start-list-expected.txt:
+        * platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt:
+        * platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt:
+        * platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt:
+        * platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt:
+        * platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt:
+        * platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt:
+        * platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt:
+        * platform/qt/editing/pasteboard/paste-list-001-expected.txt:
+        * platform/qt/editing/pasteboard/paste-match-style-001-expected.txt:
+        * platform/qt/editing/pasteboard/paste-match-style-002-expected.txt:
+        * platform/qt/editing/pasteboard/paste-pre-001-expected.txt:
+        * platform/qt/editing/pasteboard/paste-pre-002-expected.txt:
+        * platform/qt/editing/pasteboard/paste-table-001-expected.txt:
+        * platform/qt/editing/pasteboard/paste-table-003-expected.txt:
+        * platform/qt/editing/pasteboard/paste-table-cells-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-002-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-003-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-004-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-005-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-006-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-007-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-009-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-010-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-011-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-012-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-013-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-014-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-015-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-016-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-017-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-018-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-019-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
+        * platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt:
+        * platform/qt/editing/pasteboard/paste-xml-expected.txt:
+        * platform/qt/editing/pasteboard/pasting-object-expected.txt:
+        * platform/qt/editing/pasteboard/pasting-tabs-expected.txt:
+        * platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt:
+        * platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt:
+        * platform/qt/editing/pasteboard/select-element-1-expected.txt:
+        * platform/qt/editing/pasteboard/smart-paste-001-expected.txt:
+        * platform/qt/editing/pasteboard/smart-paste-002-expected.txt:
+        * platform/qt/editing/pasteboard/smart-paste-003-expected.txt:
+        * platform/qt/editing/pasteboard/smart-paste-004-expected.txt:
+        * platform/qt/editing/pasteboard/smart-paste-005-expected.txt:
+        * platform/qt/editing/pasteboard/smart-paste-006-expected.txt:
+        * platform/qt/editing/pasteboard/smart-paste-007-expected.txt:
+        * platform/qt/editing/pasteboard/styled-element-markup-expected.txt:
+        * platform/qt/editing/pasteboard/testcase-9507-expected.txt:
+        * platform/qt/editing/pasteboard/undoable-fragment-removes-expected.txt:
+        * platform/qt/editing/pasteboard/unrendered-br-expected.txt:
+        * platform/qt/editing/selection/13804-expected.txt:
+        * platform/qt/editing/selection/3690703-2-expected.txt:
+        * platform/qt/editing/selection/3690703-expected.txt:
+        * platform/qt/editing/selection/3690719-expected.txt:
+        * platform/qt/editing/selection/4397952-expected.txt:
+        * platform/qt/editing/selection/4402375-expected.txt:
+        * platform/qt/editing/selection/4818145-expected.txt:
+        * platform/qt/editing/selection/4866671-expected.txt:
+        * platform/qt/editing/selection/4889598-expected.txt:
+        * platform/qt/editing/selection/4895428-2-expected.txt:
+        * platform/qt/editing/selection/4895428-3-expected.txt:
+        * platform/qt/editing/selection/4932260-1-expected.txt:
+        * platform/qt/editing/selection/4932260-2-expected.txt:
+        * platform/qt/editing/selection/4932260-3-expected.txt:
+        * platform/qt/editing/selection/4960116-expected.txt:
+        * platform/qt/editing/selection/4983858-expected.txt:
+        * platform/qt/editing/selection/5007143-2-expected.txt:
+        * platform/qt/editing/selection/5007143-expected.txt:
+        * platform/qt/editing/selection/5076323-1-expected.txt:
+        * platform/qt/editing/selection/5076323-2-expected.txt:
+        * platform/qt/editing/selection/5076323-3-expected.txt:
+        * platform/qt/editing/selection/5081257-1-expected.txt:
+        * platform/qt/editing/selection/5081257-2-expected.txt:
+        * platform/qt/editing/selection/5099303-expected.txt:
+        * platform/qt/editing/selection/5131716-1-expected.txt:
+        * platform/qt/editing/selection/5131716-2-expected.txt:
+        * platform/qt/editing/selection/5131716-3-expected.txt:
+        * platform/qt/editing/selection/5131716-4-expected.txt:
+        * platform/qt/editing/selection/5195166-2-expected.txt:
+        * platform/qt/editing/selection/5234383-1-expected.txt:
+        * platform/qt/editing/selection/5234383-2-expected.txt:
+        * platform/qt/editing/selection/5240265-expected.txt:
+        * platform/qt/editing/selection/6476-expected.txt:
+        * platform/qt/editing/selection/7152-1-expected.txt:
+        * platform/qt/editing/selection/7152-2-expected.txt:
+        * platform/qt/editing/selection/addRange-expected.txt:
+        * platform/qt/editing/selection/after-line-wrap-expected.txt:
+        * platform/qt/editing/selection/caret-before-select-expected.txt:
+        * platform/qt/editing/selection/caret-rtl-2-expected.txt:
+        * platform/qt/editing/selection/caret-rtl-expected.txt:
+        * platform/qt/editing/selection/display-table-text-expected.txt:
+        * platform/qt/editing/selection/editable-html-element-expected.txt:
+        * platform/qt/editing/selection/editable-non-editable-crash-expected.txt:
+        * platform/qt/editing/selection/end-of-document-expected.txt:
+        * platform/qt/editing/selection/extend-by-character-001-expected.txt:
+        * platform/qt/editing/selection/extend-by-character-002-expected.txt:
+        * platform/qt/editing/selection/extend-by-character-003-expected.txt:
+        * platform/qt/editing/selection/extend-by-character-004-expected.txt:
+        * platform/qt/editing/selection/extend-by-character-005-expected.txt:
+        * platform/qt/editing/selection/extend-by-character-006-expected.txt:
+        * platform/qt/editing/selection/extend-by-sentence-001-expected.txt:
+        * platform/qt/editing/selection/extend-by-word-001-expected.txt:
+        * platform/qt/editing/selection/extend-by-word-002-expected.txt:
+        * platform/qt/editing/selection/focus-body-expected.txt:
+        * platform/qt/editing/selection/focus_editable_html-expected.txt:
+        * platform/qt/editing/selection/iframe-expected.txt:
+        * platform/qt/editing/selection/image-before-linebreak-expected.txt:
+        * platform/qt/editing/selection/inline-table-expected.txt:
+        * platform/qt/editing/selection/leave-requested-block-expected.txt:
+        * platform/qt/editing/selection/line-wrap-1-expected.txt:
+        * platform/qt/editing/selection/line-wrap-2-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-2-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-3-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-4-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-5-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-6-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-7-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-8-expected.txt:
+        * platform/qt/editing/selection/mixed-editability-9-expected.txt:
+        * platform/qt/editing/selection/move-3875618-fix-expected.txt:
+        * platform/qt/editing/selection/move-3875641-fix-expected.txt:
+        * platform/qt/editing/selection/move-backwords-by-word-001-expected.txt:
+        * platform/qt/editing/selection/move-between-blocks-no-001-expected.txt:
+        * platform/qt/editing/selection/move-between-blocks-yes-001-expected.txt:
+        * platform/qt/editing/selection/move-by-character-001-expected.txt:
+        * platform/qt/editing/selection/move-by-character-002-expected.txt:
+        * platform/qt/editing/selection/move-by-character-003-expected.txt:
+        * platform/qt/editing/selection/move-by-character-004-expected.txt:
+        * platform/qt/editing/selection/move-by-character-005-expected.txt:
+        * platform/qt/editing/selection/move-by-character-6-expected.txt:
+        * platform/qt/editing/selection/move-by-line-001-expected.txt:
+        * platform/qt/editing/selection/move-by-line-002-expected.txt:
+        * platform/qt/editing/selection/move-by-sentence-001-expected.txt:
+        * platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt:
+        * platform/qt/editing/selection/move-by-word-001-expected.txt:
+        * platform/qt/editing/selection/node-removal-2-expected.txt:
+        * platform/qt/editing/selection/previous-line-position-expected.txt:
+        * platform/qt/editing/selection/range-between-block-and-inline-expected.txt:
+        * platform/qt/editing/selection/replace-selection-1-expected.txt:
+        * platform/qt/editing/selection/replaced-boundaries-1-expected.txt:
+        * platform/qt/editing/selection/replaced-boundaries-2-expected.txt:
+        * platform/qt/editing/selection/replaced-boundaries-3-expected.txt:
+        * platform/qt/editing/selection/select-all-001-expected.txt:
+        * platform/qt/editing/selection/select-all-002-expected.txt:
+        * platform/qt/editing/selection/select-all-003-expected.txt:
+        * platform/qt/editing/selection/select-all-004-expected.txt:
+        * platform/qt/editing/selection/select-all-005-expected.txt:
+        * platform/qt/editing/selection/select-all-006-expected.txt:
+        * platform/qt/editing/selection/select-box-expected.txt:
+        * platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt:
+        * platform/qt/editing/selection/select-missing-image-expected.txt:
+        * platform/qt/editing/selection/select-text-overflow-ellipsis-expected.txt:
+        * platform/qt/editing/selection/selection-3748164-fix-expected.txt:
+        * platform/qt/editing/selection/table-caret-1-expected.txt:
+        * platform/qt/editing/selection/table-caret-2-expected.txt:
+        * platform/qt/editing/selection/table-caret-3-expected.txt:
+        * platform/qt/editing/selection/unrendered-001-expected.txt:
+        * platform/qt/editing/selection/unrendered-002-expected.txt:
+        * platform/qt/editing/selection/unrendered-003-expected.txt:
+        * platform/qt/editing/selection/unrendered-004-expected.txt:
+        * platform/qt/editing/selection/unrendered-005-expected.txt:
+        * platform/qt/editing/selection/unrendered-space-expected.txt:
+        * platform/qt/editing/spelling/spelling-expected.txt:
+        * platform/qt/editing/style/4916887-expected.txt:
+        * platform/qt/editing/style/5017613-1-expected.txt:
+        * platform/qt/editing/style/5017613-2-expected.txt:
+        * platform/qt/editing/style/5046875-1-expected.txt:
+        * platform/qt/editing/style/5046875-2-expected.txt:
+        * platform/qt/editing/style/5065910-expected.txt:
+        * platform/qt/editing/style/5084241-expected.txt:
+        * platform/qt/editing/style/5228141-expected.txt:
+        * platform/qt/editing/style/5279521-expected.txt:
+        * platform/qt/editing/style/apple-style-editable-mix-expected.txt:
+        * platform/qt/editing/style/block-style-001-expected.txt:
+        * platform/qt/editing/style/block-style-002-expected.txt:
+        * platform/qt/editing/style/block-style-003-expected.txt:
+        * platform/qt/editing/style/block-style-004-expected.txt:
+        * platform/qt/editing/style/block-style-005-expected.txt:
+        * platform/qt/editing/style/block-style-006-expected.txt:
+        * platform/qt/editing/style/block-styles-007-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-001-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-002-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-003-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-004-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-005-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-006-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-007-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-008-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-009-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-010-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-011-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-012-expected.txt:
+        * platform/qt/editing/style/create-block-for-style-013-expected.txt:
+        * platform/qt/editing/style/designmode-expected.txt:
+        * platform/qt/editing/style/font-family-with-space-expected.txt:
+        * platform/qt/editing/style/fontsize-1-expected.txt:
+        * platform/qt/editing/style/highlight-expected.txt:
+        * platform/qt/editing/style/non-inheritable-styles-expected.txt:
+        * platform/qt/editing/style/relative-font-size-change-001-expected.txt:
+        * platform/qt/editing/style/relative-font-size-change-002-expected.txt:
+        * platform/qt/editing/style/relative-font-size-change-003-expected.txt:
+        * platform/qt/editing/style/relative-font-size-change-004-expected.txt:
+        * platform/qt/editing/style/smoosh-styles-001-expected.txt:
+        * platform/qt/editing/style/smoosh-styles-002-expected.txt:
+        * platform/qt/editing/style/smoosh-styles-003-expected.txt:
+        * platform/qt/editing/style/style-3681552-fix-001-expected.txt:
+        * platform/qt/editing/style/style-3690704-fix-expected.txt:
+        * platform/qt/editing/style/style-3998892-fix-expected.txt:
+        * platform/qt/editing/style/style-boundary-001-expected.txt:
+        * platform/qt/editing/style/style-boundary-002-expected.txt:
+        * platform/qt/editing/style/style-boundary-003-expected.txt:
+        * platform/qt/editing/style/style-boundary-004-expected.txt:
+        * platform/qt/editing/style/style-boundary-005-expected.txt:
+        * platform/qt/editing/style/table-selection-expected.txt:
+        * platform/qt/editing/style/typing-style-001-expected.txt:
+        * platform/qt/editing/style/typing-style-002-expected.txt:
+        * platform/qt/editing/style/typing-style-003-expected.txt:
+        * platform/qt/editing/style/unbold-in-bold-expected.txt:
+        * platform/qt/editing/undo/4063751-expected.txt:
+        * platform/qt/editing/undo/5378473-expected.txt:
+        * platform/qt/editing/undo/redo-typing-001-expected.txt:
+        * platform/qt/editing/undo/undo-combined-delete-boundary-expected.txt:
+        * platform/qt/editing/undo/undo-combined-delete-expected.txt:
+        * platform/qt/editing/undo/undo-delete-boundary-expected.txt:
+        * platform/qt/editing/undo/undo-delete-expected.txt:
+        * platform/qt/editing/undo/undo-forward-delete-boundary-expected.txt:
+        * platform/qt/editing/undo/undo-forward-delete-expected.txt:
+        * platform/qt/editing/undo/undo-misspellings-expected.txt:
+        * platform/qt/editing/undo/undo-typing-001-expected.txt:
+        * platform/qt/editing/unsupported-content/list-delete-001-expected.txt:
+        * platform/qt/editing/unsupported-content/list-delete-003-expected.txt:
+        * platform/qt/editing/unsupported-content/list-type-after-expected.txt:
+        * platform/qt/editing/unsupported-content/list-type-before-expected.txt:
+        * platform/qt/editing/unsupported-content/table-delete-001-expected.txt:
+        * platform/qt/editing/unsupported-content/table-delete-002-expected.txt:
+        * platform/qt/editing/unsupported-content/table-delete-003-expected.txt:
+        * platform/qt/editing/unsupported-content/table-type-after-expected.txt:
+        * platform/qt/editing/unsupported-content/table-type-before-expected.txt:
+        * platform/qt/fast/backgrounds/solid-color-context-restore-expected.txt:
+        * platform/qt/fast/css-generated-content/hover-style-change-expected.txt:
+        * platform/qt/fast/css/layerZOrderCrash-expected.txt:
+        * platform/qt/fast/css/universal-hover-quirk-expected.txt:
+        * platform/qt/fast/dom/delete-contents-expected.txt:
+        * platform/qt/fast/dynamic/selection-highlight-adjust-expected.txt:
+        * platform/qt/fast/events/label-focus-expected.txt:
+        * platform/qt/fast/forms/input-appearance-focus-expected.txt:
+        * platform/qt/fast/forms/input-appearance-readonly-expected.txt:
+        * platform/qt/fast/forms/input-appearance-selection-expected.txt:
+        * platform/qt/fast/forms/input-double-click-selection-gap-bug-expected.txt:
+        * platform/qt/fast/forms/input-maxlength-2-expected.txt:
+        * platform/qt/fast/forms/input-paste-undo-expected.txt:
+        * platform/qt/fast/forms/input-text-click-inside-expected.txt:
+        * platform/qt/fast/forms/input-text-option-delete-expected.txt:
+        * platform/qt/fast/forms/input-text-self-emptying-click-expected.txt:
+        * platform/qt/fast/forms/plaintext-mode-2-expected.txt:
+        * platform/qt/fast/forms/textfield-overflow-expected.txt:
+        * platform/qt/fast/frames/take-focus-from-iframe-expected.txt:
+        * platform/qt/fast/inline-block/14498-positionForCoordinates-expected.txt:
+        * platform/qt/fast/lists/markers-in-selection-expected.txt:
+        * platform/qt/fast/overflow/image-selection-highlight-expected.txt:
+        * platform/qt/fast/overflow/overflow-focus-ring-expected.txt:
+        * platform/qt/fast/overflow/overflow-text-hit-testing-expected.txt:
+        * platform/qt/fast/repaint/4776765-expected.txt:
+        * platform/qt/fast/repaint/delete-into-nested-block-expected.txt:
+        * platform/qt/fast/repaint/inline-outline-repaint-expected.txt:
+        * platform/qt/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt:
+        * platform/qt/fast/repaint/selection-after-delete-expected.txt:
+        * platform/qt/fast/repaint/selection-after-remove-expected.txt:
+        * platform/qt/fast/replaced/selection-rect-expected.txt:
+        * platform/qt/fast/replaced/selection-rect-in-table-cell-expected.txt:
+        * platform/qt/fast/selectors/159-expected.txt:
+        * platform/qt/fast/selectors/177a-expected.txt:
+        * platform/qt/fast/table/click-near-anonymous-table-expected.txt:
+        * platform/qt/fast/text/atsui-kerning-and-ligatures-expected.txt:
+        * platform/qt/fast/text/atsui-partial-selection-expected.txt:
+        * platform/qt/fast/text/delete-hard-break-character-expected.txt:
+        * platform/qt/fast/text/international/khmer-selection-expected.txt:
+        * platform/qt/fast/text/international/rtl-caret-expected.txt:
+        * platform/qt/fast/text/justified-selection-at-edge-expected.txt:
+        * platform/qt/fast/text/justified-selection-expected.txt:
+        * platform/qt/fast/text/should-use-atsui-expected.txt:
+        * platform/qt/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt:
+        * platform/qt/svg/text/foreignObject-text-clipping-bug-expected.txt:
+        * platform/qt/svg/text/selection-background-color-expected.txt:
+        * platform/qt/svg/text/selection-styles-expected.txt:
+
+2010-07-14  Eric Seidel  <eric at webkit.org>
+
+        Reviewed by Nikolas Zimmermann.
+
+        Selection dumping code should not dump body's offset in the document
+        https://bugs.webkit.org/show_bug.cgi?id=42238
+
+        Update results now that we're no longer dumping
+        body's offset within HTML as part of selection dumps.
+        I used a little python script to do all these updates.
+        Basically it was just:
+        s/child \d {BODY} .* of document/body/i
+
+        LayoutTests will be updated across several commits to keep the SVN server happy.
+
         This first commit is only the mac and mac-leopard results.
 
         * platform/mac/editing/deleting/4845371-expected.txt:
diff --git a/LayoutTests/platform/qt/editing/deleting/4845371-expected.txt b/LayoutTests/platform/qt/editing/deleting/4845371-expected.txt
index 2366891..2529260 100644
--- a/LayoutTests/platform/qt/editing/deleting/4845371-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/4845371-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (6,2) size 25x21 [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 23x19
                   text run at (1,1) width 23: "baz"
-caret: position 0 of child 0 {BR} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/4922367-expected.txt b/LayoutTests/platform/qt/editing/deleting/4922367-expected.txt
index 431a54d..a41ce60 100644
--- a/LayoutTests/platform/qt/editing/deleting/4922367-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/4922367-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,29) size 784x0
         RenderBlock (anonymous) at (0,29) size 784x0
       RenderBlock {UL} at (0,95) size 784x0
-caret: position 0 of child 0 {TABLE} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {TABLE} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5026848-1-expected.txt b/LayoutTests/platform/qt/editing/deleting/5026848-1-expected.txt
index d6827c5..a3cdfb2 100644
--- a/LayoutTests/platform/qt/editing/deleting/5026848-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5026848-1-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,19) width 324: "shouldn't see anything in the editable region below."
       RenderBlock {DIV} at (0,52) size 784x19
         RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5026848-2-expected.txt b/LayoutTests/platform/qt/editing/deleting/5026848-2-expected.txt
index 4d488bc..b31ddf5 100644
--- a/LayoutTests/platform/qt/editing/deleting/5026848-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5026848-2-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (1,1) size 81x19
                   text run at (1,1) width 81: "Non-editable"
         RenderBlock (anonymous) at (0,25) size 784x0
-caret: position 9 of child 0 {#text} of child 3 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 9 of child 0 {#text} of child 3 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5026848-3-expected.txt b/LayoutTests/platform/qt/editing/deleting/5026848-3-expected.txt
index 07c697e..bf27a2f 100644
--- a/LayoutTests/platform/qt/editing/deleting/5026848-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5026848-3-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (197,2) size 4x23 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
               RenderTableCell {TD} at (203,2) size 4x23 [border: (1px inset #808080)] [r=0 c=3 rs=1 cs=1]
         RenderBlock (anonymous) at (0,29) size 784x0
-caret: position 9 of child 0 {#text} of child 3 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 9 of child 0 {#text} of child 3 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5032066-expected.txt b/LayoutTests/platform/qt/editing/deleting/5032066-expected.txt
index 471befc..4fc09cb 100644
--- a/LayoutTests/platform/qt/editing/deleting/5032066-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5032066-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
                 RenderInline {SPAN} at (0,0) size 169x19
                   RenderText {#text} at (235,2) size 169x19
                     text run at (235,2) width 169: "should be in one table cell."
-caret: position 40 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 40 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5091898-expected.txt b/LayoutTests/platform/qt/editing/deleting/5091898-expected.txt
index 98a65b1..718a52f 100644
--- a/LayoutTests/platform/qt/editing/deleting/5091898-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5091898-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
         RenderInline {DIV} at (0,0) size 168x19
           RenderText {#text} at (183,0) size 168x19
             text run at (183,0) width 168: "This should be underlined."
-caret: position 29 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 29 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5099303-expected.txt b/LayoutTests/platform/qt/editing/deleting/5099303-expected.txt
index f84de84..5a8671c 100644
--- a/LayoutTests/platform/qt/editing/deleting/5099303-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5099303-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,29) size 784x19
           RenderText {#text} at (0,0) size 9x19
             text run at (0,0) width 9: ")."
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5115601-expected.txt b/LayoutTests/platform/qt/editing/deleting/5115601-expected.txt
index 8735261..b91ba88 100644
--- a/LayoutTests/platform/qt/editing/deleting/5115601-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5115601-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
                       text run at (2,2) width 303: "This sentence should be inside the editable cell."
                   RenderBR {BR} at (305,16) size 0x0
         RenderBlock (anonymous) at (0,29) size 784x0
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5126166-expected.txt b/LayoutTests/platform/qt/editing/deleting/5126166-expected.txt
index ee23ce1..df2d3b3 100644
--- a/LayoutTests/platform/qt/editing/deleting/5126166-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5126166-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (8,2) size 341x23 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 337x19
                   text run at (2,2) width 337: "There should be one empty cell to the left of this one."
-caret: position 0 of child 0 {BR} of child 3 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5144139-2-expected.txt b/LayoutTests/platform/qt/editing/deleting/5144139-2-expected.txt
index 8a30da6..3e76e09 100644
--- a/LayoutTests/platform/qt/editing/deleting/5144139-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5144139-2-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (24,2) size 6x21 [r=0 c=2 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 4x19
                   text run at (1,1) width 4: "\x{21E3}"
-caret: position 0 of child 3 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.txt b/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.txt
index 31c9e10..51c907d 100644
--- a/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
                 RenderInline {A} at (0,0) size 49x19 [color=#0000EE]
                   RenderText {#text} at (0,19) size 49x19
                     text run at (0,19) width 49: "Cached"
-caret: position 6 of child 0 {#text} of child 1 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 0 {#text} of child 1 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5168598-expected.txt b/LayoutTests/platform/qt/editing/deleting/5168598-expected.txt
index 1871ded..b59bc55 100644
--- a/LayoutTests/platform/qt/editing/deleting/5168598-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5168598-expected.txt
@@ -21,4 +21,4 @@ layer at (13,86) size 162x19
     RenderInline {FONT} at (0,0) size 0x19
       RenderInline {SPAN} at (0,0) size 0x19
         RenderBR {BR} at (1,0) size 0x19
-caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 0 {DIV} of child 3 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 0 {DIV} of child 3 {INPUT} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5206311-1-expected.txt b/LayoutTests/platform/qt/editing/deleting/5206311-1-expected.txt
index 45398e0..17ae512 100644
--- a/LayoutTests/platform/qt/editing/deleting/5206311-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5206311-1-expected.txt
@@ -90,4 +90,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (30,27) size 12x23 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 8x19
                   text run at (2,2) width 8: "9"
-caret: position 6 of child 0 {#text} of child 1 {DIV} of child 14 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 0 {#text} of child 1 {DIV} of child 14 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5206311-2-expected.txt b/LayoutTests/platform/qt/editing/deleting/5206311-2-expected.txt
index bc6c3ba..f0049fa 100644
--- a/LayoutTests/platform/qt/editing/deleting/5206311-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5206311-2-expected.txt
@@ -73,4 +73,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (30,27) size 12x23 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 8x19
                   text run at (2,2) width 8: "9"
-caret: position 0 of child 0 {BR} of child 1 {TD} of child 2 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {TD} of child 2 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 8 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5272440-expected.txt b/LayoutTests/platform/qt/editing/deleting/5272440-expected.txt
index a54d64a..672f5ef 100644
--- a/LayoutTests/platform/qt/editing/deleting/5272440-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5272440-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (1,1) size 392x19
             text run at (1,1) width 392: "There shouldn't be any blank lines in the black bordered area."
           RenderBR {BR} at (393,15) size 0x0
-caret: position 62 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 62 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5300379-expected.txt b/LayoutTests/platform/qt/editing/deleting/5300379-expected.txt
index 23975e3..c8a4013 100644
--- a/LayoutTests/platform/qt/editing/deleting/5300379-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5300379-expected.txt
@@ -8,4 +8,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 61x20
           text run at (0,0) width 61: "Success"
       RenderBlock {DIV} at (0,20) size 784x0
-caret: position 7 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5369009-expected.txt b/LayoutTests/platform/qt/editing/deleting/5369009-expected.txt
index 5bd235f..2ce0599 100644
--- a/LayoutTests/platform/qt/editing/deleting/5369009-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5369009-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 40x20
             RenderText {#text} at (32,0) size 40x20
               text run at (32,0) width 40: "World"
-caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5390681-expected.txt b/LayoutTests/platform/qt/editing/deleting/5390681-expected.txt
index 5daa46a..82c0cba 100644
--- a/LayoutTests/platform/qt/editing/deleting/5390681-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5390681-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 21x19
           RenderText {#text} at (0,19) size 21x19
             text run at (0,19) width 21: "bar"
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5408255-expected.txt b/LayoutTests/platform/qt/editing/deleting/5408255-expected.txt
index 993f8da..cb75d5b 100644
--- a/LayoutTests/platform/qt/editing/deleting/5408255-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/5408255-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,20) width 186: "webkit-user-select:ignore. "
           text run at (186,20) width 504: "The list should be removed, the editable region below should be empty."
       RenderBlock {DIV} at (0,56) size 784x52
-caret: position 0 of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/collapse-whitespace-3587601-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
index 632c016..a9c1702 100644
--- a/LayoutTests/platform/qt/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
@@ -55,4 +55,4 @@ layer at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x31
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3608430-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3608430-fix-expected.txt
index 857f5c7..121f49d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3608430-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3608430-fix-expected.txt
@@ -154,4 +154,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 137x31
             text run at (14,14) width 137: "start-deleting"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3608445-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3608445-fix-expected.txt
index 187806b..3133300 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3608445-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3608445-fix-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
             text run at (14,78) width 102: " war. We "
             text run at (116,78) width 119: "of that war."
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 4 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 4 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3608462-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3608462-fix-expected.txt
index ec364a5..8ec93aa 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3608462-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3608462-fix-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (90,206) size 113x31
             text run at (90,206) width 113: " conceived"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 4 {IMG} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 4 {IMG} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3775172-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3775172-fix-expected.txt
index ecf6b52..0d8aede 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3775172-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3775172-fix-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,19) size 784x0
         RenderInline {SPAN} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {BR} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3800834-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3800834-fix-expected.txt
index c64f43b..ad0d315 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3800834-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3800834-fix-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,46) size 756x0
         RenderBlock (anonymous) at (14,46) size 756x0
           RenderInline {SPAN} at (0,0) size 0x0
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3857753-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3857753-fix-expected.txt
index 84e6477..b71b78e 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3857753-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3857753-fix-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
         RenderInline {I} at (0,0) size 41x32
           RenderText {#text} at (58,0) size 41x32
             text run at (58,0) width 41: "four"
-caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3865854-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3865854-fix-expected.txt
index 2c55998..083d887 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3865854-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3865854-fix-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderInline {I} at (0,0) size 41x32
             RenderText {#text} at (0,0) size 41x32
               text run at (0,0) width 41: "four"
-caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3928305-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3928305-fix-expected.txt
index b03683a..ab56292 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3928305-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3928305-fix-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (14,78) size 756x32
           RenderText {#text} at (0,0) size 38x31
             text run at (0,0) width 38: "baz"
-caret: position 0 of child 2 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-3959464-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-3959464-fix-expected.txt
index 35226fa..3006836 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-3959464-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-3959464-fix-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (14,14) size 0x31
         RenderBlock {DIV} at (0,120) size 784x60 [border: (2px solid #FF0000)]
           RenderBR {BR} at (14,14) size 0x31
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-4038408-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-4038408-fix-expected.txt
index aba664c..777f2bd 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-4038408-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-4038408-fix-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,66) size 756x19
             RenderText {#text} at (0,0) size 196x19
               text run at (0,0) width 196: "This text should not be quoted."
-caret: position 31 of child 2 {#text} of child 11 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 31 of child 2 {#text} of child 11 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-4083333-fix-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-4083333-fix-expected.txt
index c7a35e9..b8ba207 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-4083333-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-4083333-fix-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderInline {A} at (0,0) size 23x31 [color=#0000EE]
             RenderText {#text} at (102,14) size 23x31
               text run at (102,14) width 23: "lin"
-caret: position 3 of child 0 {#text} of child 1 {A} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {A} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-001-expected.txt
index af4fa42..468cc30 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-001-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 38x31
           text run at (107,82) width 38: "baz"
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-002-expected.txt
index af4fa42..468cc30 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-002-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 38x31
           text run at (107,82) width 38: "baz"
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-003-expected.txt
index af4fa42..468cc30 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-after-span-ws-003-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 38x31
           text run at (107,82) width 38: "baz"
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-and-undo-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-and-undo-expected.txt
index fcfa274..1d0c61d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-and-undo-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-and-undo-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 119x31
             text run at (14,14) width 119: "foo bar baz"
-caret: position 9 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 9 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt
index 688095a..3ab0bcc 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (0,0) size 0x31
           RenderBlock {P} at (2,66) size 780x32
             RenderBR {BR} at (0,0) size 0x31
-caret: position 0 of child 0 {BR} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt
index 8600eeb..5e3efee 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (0,0) size 0x31
           RenderBlock {P} at (2,66) size 780x32
             RenderBR {BR} at (0,0) size 0x31
-caret: position 0 of child 3 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt
index 825e621..19f14d3 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,34) size 780x32
             RenderText {#text} at (0,0) size 16x31
               text run at (0,0) width 16: "A"
-caret: position 0 of child 0 {#text} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt
index 8fd196d..8ed87b4 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,34) size 780x32
             RenderText {#text} at (0,0) size 16x31
               text run at (0,0) width 16: "A"
-caret: position 0 of child 0 {#text} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt
index 554859d..0a3af56 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 16: "A"
           RenderBlock (anonymous) at (2,34) size 780x32
             RenderBR {BR} at (0,0) size 0x31
-caret: position 0 of child 3 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt
index 0d5692a..72f134d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 16: "A"
           RenderBlock {P} at (2,34) size 780x32
             RenderBR {BR} at (0,0) size 0x31
-caret: position 0 of child 0 {BR} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt
index b6720e2..a1344ed 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt
@@ -45,4 +45,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,66) size 780x32
             RenderText {#text} at (0,0) size 21x31
               text run at (0,0) width 21: "ur"
-caret: position 0 of child 0 {#text} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {P} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt
index d868b44..645d49e 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt
@@ -50,4 +50,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,98) size 780x32
             RenderText {#text} at (0,0) size 20x31
               text run at (0,0) width 20: "fo"
-caret: position 2 of child 0 {#text} of child 5 {P} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 5 {P} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt
index d95a1d7..37df106 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt
@@ -45,4 +45,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,66) size 780x32
             RenderText {#text} at (0,0) size 41x31
               text run at (0,0) width 41: "four"
-caret: position 0 of child 0 {#text} of child 1 {P} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {P} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt
index 172079e..563400b 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt
@@ -61,4 +61,4 @@ layer at (0,0) size 800x606
           RenderBlock {DIV} at (2,134) size 780x32
             RenderText {#text} at (0,0) size 128x31
               text run at (0,0) width 128: "cha cha cha"
-caret: position 0 of child 0 {#text} of child 4 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 4 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt
index 9338e8c..3340be5 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
         RenderBlock {P} at (2,86) size 780x36 [border: (2px solid #FF0000)]
           RenderBR {BR} at (2,2) size 0x31
         RenderBlock (anonymous) at (2,146) size 780x0
-caret: position 0 of child 0 {BR} of child 1 {P} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {P} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-at-start-or-end-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-at-start-or-end-expected.txt
index 8bc565d..1469059 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-at-start-or-end-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-at-start-or-end-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x19
-caret: position 0 of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-contents-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-contents-001-expected.txt
index 9cb0dbb..bb79604 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-contents-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-contents-001-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x31
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-contents-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-contents-002-expected.txt
index bcb1c60..138ca6f 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-contents-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-contents-002-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x31
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-contents-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-contents-003-expected.txt
index c601b6a..d156479 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-contents-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-contents-003-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
       RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x31
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-001-expected.txt
index d6ef546..b0e0559 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-001-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 45: "One"
           RenderText {#text} at (45,0) size 45x31
             text run at (45,0) width 45: "Two"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-002-expected.txt
index 36ecad1..94df928 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-002-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (90,23) size 0x0
           RenderText {#text} at (0,32) size 62x31
             text run at (0,32) width 62: "Three"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-003-expected.txt
index 36ecad1..94df928 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-003-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (90,23) size 0x0
           RenderText {#text} at (0,32) size 62x31
             text run at (0,32) width 62: "Three"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-004-expected.txt
index 36ecad1..94df928 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-004-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (90,23) size 0x0
           RenderText {#text} at (0,32) size 62x31
             text run at (0,32) width 62: "Three"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-005-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-005-expected.txt
index bdec8bd..ab4dc35 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-005-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,64) size 756x32
             RenderText {#text} at (0,0) size 49x31
               text run at (0,0) width 49: "Four"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-006-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-006-expected.txt
index d87a337..ada2515 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-006-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,64) size 756x32
             RenderText {#text} at (0,0) size 49x31
               text run at (0,0) width 49: "Four"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-007-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-007-expected.txt
index d87a337..ada2515 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-007-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,64) size 756x32
             RenderText {#text} at (0,0) size 49x31
               text run at (0,0) width 49: "Four"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-008-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-008-expected.txt
index 345d6ee..bf673f4 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-008-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
             RenderBlock (anonymous) at (0,32) size 756x32
               RenderText {#text} at (0,0) size 49x31
                 text run at (0,0) width 49: "Four"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-009-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-009-expected.txt
index 19ebc31..1e5efd6 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-009-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,96) size 756x32
             RenderText {#text} at (0,0) size 45x31
               text run at (0,0) width 45: "Five"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-010-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-010-expected.txt
index ab651f5..3da5084 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-010-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
             text run at (90,0) width 62: "Three"
           RenderText {#text} at (152,0) size 49x31
             text run at (152,0) width 49: "Four"
-caret: position 5 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-011-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-011-expected.txt
index 5b9780f..5db1367 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-011-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-011-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,96) size 756x32
             RenderText {#text} at (0,0) size 62x31
               text run at (0,0) width 62: "Three"
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-012-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-012-expected.txt
index 5111306..73965f2 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-012-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-012-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 76: "This is "
             RenderText {#text} at (76,0) size 118x31
               text run at (76,0) width 118: " some text."
-caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-013-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-013-expected.txt
index a9b778a..352c6e8 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-013-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-013-expected.txt
@@ -45,4 +45,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 76: "This is "
             RenderText {#text} at (76,0) size 111x31
               text run at (76,0) width 111: "some text."
-caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-014-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-014-expected.txt
index a904bb5..e6a101e 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-014-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-014-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 69: "This is"
             RenderText {#text} at (69,0) size 118x31
               text run at (69,0) width 118: " some text."
-caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-015-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-015-expected.txt
index a904bb5..e6a101e 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-015-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-015-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 69: "This is"
             RenderText {#text} at (69,0) size 118x31
               text run at (69,0) width 118: " some text."
-caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-016-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-016-expected.txt
index a904bb5..e6a101e 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-016-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-016-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 69: "This is"
             RenderText {#text} at (69,0) size 118x31
               text run at (69,0) width 118: " some text."
-caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-017-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-017-expected.txt
index 2afc0f4..769d3b1 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-017-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-017-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 76: "This is "
             RenderText {#text} at (76,0) size 118x31
               text run at (76,0) width 118: " some text."
-caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-018-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-018-expected.txt
index f9f5b7b..aea61dc 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-018-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-018-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (14,46) size 756x60 [border: (2px solid #FF0000)]
             RenderText {#text} at (14,14) size 121x31
               text run at (14,14) width 121: "...more text"
-caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-019-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-019-expected.txt
index 12084e9..845456f 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-019-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-019-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 16: "X"
           RenderText {#text} at (30,14) size 16x31
             text run at (30,14) width 16: "X"
-caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-020-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-020-expected.txt
index c692ac4..270e3ab 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-020-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-020-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 16: "X"
           RenderText {#text} at (30,14) size 16x31
             text run at (30,14) width 16: "X"
-caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-021-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-021-expected.txt
index 8f418a4..06eb60e 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-021-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-021-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (14,46) size 756x60 [border: (2px solid #FF0000)]
             RenderText {#text} at (14,14) size 32x31
               text run at (14,14) width 32: "XX"
-caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-022-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-022-expected.txt
index 787e400..c0d6bbf 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-022-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-022-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (14,14) size 728x60 [border: (2px solid #FFA500)]
               RenderText {#text} at (14,14) size 32x31
                 text run at (14,14) width 32: "XX"
-caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-023-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-023-expected.txt
index 29db162..cbee0e0 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-023-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-023-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (3,3) size 750x32
               RenderText {#text} at (0,0) size 32x31
                 text run at (0,0) width 32: "XX"
-caret: position 0 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-024-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-024-expected.txt
index 186ced2..2cb30f7 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-024-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-merge-contents-024-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (3,3) size 750x32
               RenderText {#text} at (0,0) size 16x31
                 text run at (0,0) width 16: "X"
-caret: position 0 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-block-table-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-block-table-expected.txt
index 45a0b72..ebe5ddb 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-block-table-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-block-table-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
                   RenderText {#text} at (36,1) size 21x19
                     text run at (36,1) width 21: "fter"
         RenderBlock (anonymous) at (0,73) size 784x0
-caret: position 15 of child 0 {#text} of child 3 {TD} of child 2 {TR} of child 1 {TBODY} of child 3 {TABLE} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 15 of child 0 {#text} of child 3 {TD} of child 2 {TR} of child 1 {TBODY} of child 3 {TABLE} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-001-expected.txt
index b3dc05d..24f4451 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-001-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (244,14) size 104x31
             text run at (244,14) width 104: "years ago"
         RenderText {#text} at (0,0) size 0x0
-caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-002-expected.txt
index 1602378..81741d9 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-002-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,78) size 104x31
             text run at (14,78) width 104: "years ago"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 2 {BR} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-003-expected.txt
index 2baf348..8dad57d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-003-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,78) size 104x31
             text run at (14,78) width 104: "years ago"
         RenderText {#text} at (0,0) size 0x0
-caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-004-expected.txt
index 2376228..14dd87a 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-004-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,78) size 104x31
             text run at (14,78) width 104: "years ago"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-005-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-005-expected.txt
index 2f618b7..ec2257e 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-005-expected.txt
@@ -43,4 +43,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,46) size 104x31
             text run at (14,46) width 104: "years ago"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-006-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-006-expected.txt
index a7d3a39..23a9072 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-006-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (244,14) size 104x31
             text run at (244,14) width 104: "years ago"
         RenderText {#text} at (0,0) size 0x0
-caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-007-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-007-expected.txt
index 9c6d0ba..ab1de39 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-007-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (237,14) size 104x31
             text run at (237,14) width 104: "years ago"
         RenderText {#text} at (0,0) size 0x0
-caret: position 22 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 22 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-008-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-008-expected.txt
index 045fa3c..713f707 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-008-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 45x31
           text run at (14,14) width 45: "Two"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-009-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-009-expected.txt
index 6e61d9c..5906ef0 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-009-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 45x31
           text run at (14,14) width 45: "Two"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-010-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-010-expected.txt
index f99729d..9f80169 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-010-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (59,14) size 45x31
           text run at (59,14) width 45: "Two"
       RenderBlock (anonymous) at (0,60) size 784x0
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-011-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-011-expected.txt
index f33b63a..2ea5545 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-011-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-011-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,19) size 784x60 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x31
       RenderBlock (anonymous) at (0,79) size 784x0
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-br-012-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-br-012-expected.txt
index 5f7cd0b..29d71b0 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-br-012-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-br-012-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,52) size 756x0
       RenderBlock {DIV} at (0,66) size 784x25 [border: (3px solid #0000FF)]
         RenderBR {BR} at (3,3) size 0x19
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-by-word-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-by-word-001-expected.txt
index 1b8b45e..5b2c2b8 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-by-word-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-by-word-001-expected.txt
@@ -54,4 +54,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x36 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 462x31
             text run at (2,2) width 462: "one two cha cha cha three four cha cha cha"
-caret: position 12 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 12 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-by-word-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-by-word-002-expected.txt
index fc8a023..b15d7e3 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-by-word-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-by-word-002-expected.txt
@@ -36,5 +36,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x36 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 192x31
             text run at (2,2) width 192: "one two three four"
-selection start: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 7 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 7 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-character-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-character-001-expected.txt
index 0ae97fc..76a58a1 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-character-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-character-001-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             text run at (41,14) width 41: "bar "
             text run at (82,14) width 38: "baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-contiguous-ws-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-contiguous-ws-001-expected.txt
index b579360..4391288 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-contiguous-ws-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-contiguous-ws-001-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 85x31
             text run at (14,14) width 85: "foo  baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-first-list-item-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-first-list-item-expected.txt
index d505405..544d4c6 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-first-list-item-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-first-list-item-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x19: bullet
             RenderText {#text} at (0,0) size 21x19
               text run at (0,0) width 21: "bar"
-caret: position 3 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-hr-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-hr-expected.txt
index 039de8f..99a7414 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-hr-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-hr-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 21x19
               text run at (0,0) width 21: "fter"
           RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 3 {SPAN} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {SPAN} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-image-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-image-001-expected.txt
index ce925e4..896096d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-image-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-image-001-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
             text run at (14,206) width 64: "nation"
           RenderImage {IMG} at (78,126) size 76x103
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-image-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-image-002-expected.txt
index c090ca1..417e873 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-image-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-image-002-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
             text run at (14,238) width 64: "nation"
           RenderImage {IMG} at (78,158) size 76x103
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-image-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-image-003-expected.txt
index 47f7a23..45fecce 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-image-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-image-003-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (27,14) size 73x31
             text run at (27,14) width 73: " lincoln"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-image-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-image-004-expected.txt
index 2d0bc38..0fb4b9a 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-image-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-image-004-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x31
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-leading-ws-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-leading-ws-001-expected.txt
index ff1f799..9d581bb 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-leading-ws-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-leading-ws-001-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 14x31
           RenderText {#text} at (14,14) size 14x31
             text run at (14,14) width 14: "f "
-caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-001-expected.txt
index f03887a..005b30b 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-001-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x32
         RenderText {#text} at (0,0) size 210x31
           text run at (0,0) width 210: "in the affairs of men"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-002-expected.txt
index 8782a33..b94e96c 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-002-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x32
         RenderText {#text} at (0,0) size 210x31
           text run at (0,0) width 210: "in the affairs of men"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-003-expected.txt
index ebf7d29..8b11383 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-003-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (151,23) size 0x0
         RenderText {#text} at (0,32) size 256x31
           text run at (0,32) width 256: "Which taken at the flood"
-caret: position 0 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-004-expected.txt
index 2fc15e4..3a51075 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-004-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,32) size 600x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-005-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-005-expected.txt
index 24960b0..58d0251 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-005-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-006-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-006-expected.txt
index b9371ba..62aa4d8 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-006-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-007-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-007-expected.txt
index 8ccf38c..06e47b9 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-007-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-008-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-008-expected.txt
index 48b8e66..330c77f 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-008-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-009-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-009-expected.txt
index 3b911e4..1264020 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-009-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,32) size 600x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-010-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-010-expected.txt
index 3b911e4..1264020 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-010-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,32) size 600x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-011-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-011-expected.txt
index 7657fb3..845865a 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-011-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-011-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 106: "There is a"
         RenderText {#text} at (106,0) size 256x31
           text run at (106,0) width 256: "Which taken at the flood"
-caret: position 10 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 10 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-012-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-012-expected.txt
index f59f21f..087a1c3 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-012-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-012-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 106: "There is a"
         RenderText {#text} at (106,0) size 256x31
           text run at (106,0) width 256: "Which taken at the flood"
-caret: position 10 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 10 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-013-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-013-expected.txt
index cf7b883..76a1b7b 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-013-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-013-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 15 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 15 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-014-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-014-expected.txt
index aadb717..9cae3fd 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-014-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-014-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-015-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-015-expected.txt
index 81f4f29..2ad853f 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-015-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-015-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,19) size 784x19
           RenderBR {BR} at (0,0) size 0x19
         RenderBlock (anonymous) at (0,38) size 784x0
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-016-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-016-expected.txt
index 3d9a7cf..5acd989 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-016-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-016-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,19) size 784x50
           RenderBR {BR} at (0,0) size 0x19
         RenderBlock (anonymous) at (0,69) size 784x0
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-017-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-017-expected.txt
index 6ccf4db..a1dd8a2 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-017-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-017-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,19) size 784x19
           RenderText {#text} at (0,0) size 8x19
             text run at (0,0) width 8: "b"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-001-expected.txt
index 929a122..d934d22 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-001-expected.txt
@@ -76,4 +76,4 @@ layer at (0,0) size 820x600
             text run at (671,82) width 3: " "
             text run at (74,130) width 328: "onthis continent a new nation..."
         RenderText {#text} at (0,0) size 0x0
-caret: position 58 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 58 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-002-expected.txt
index 929a122..d934d22 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-line-end-ws-002-expected.txt
@@ -76,4 +76,4 @@ layer at (0,0) size 820x600
             text run at (671,82) width 3: " "
             text run at (74,130) width 328: "onthis continent a new nation..."
         RenderText {#text} at (0,0) size 0x0
-caret: position 58 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 58 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-link-1-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-link-1-expected.txt
index 182daf4..f747476 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-link-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-link-1-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
           RenderListMarker at (-20,0) size 16x19: "1"
           RenderText {#text} at (0,0) size 47x19
             text run at (0,0) width 47: "Passed"
-caret: position 29 of child 0 {#text} of child 1 {A} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 29 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-listitem-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-listitem-001-expected.txt
index f58dc87..3af2067 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-listitem-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-listitem-001-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderListItem {LI} at (40,64) size 716x32
             RenderText {#text} at (0,0) size 37x31
               text run at (0,0) width 37: "five"
-caret: position 3 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-listitem-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-listitem-002-expected.txt
index 46ed4e2..d3b61f9 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-listitem-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-listitem-002-expected.txt
@@ -55,4 +55,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-23,0) size 10x31: bullet
             RenderText {#text} at (0,0) size 37x31
               text run at (0,0) width 37: "five"
-caret: position 0 of child 0 {BR} of child 5 {LI} of child 1 {UL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 5 {LI} of child 1 {UL} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt
index de67c24..106691b 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (0,0) size 0x0
           RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {BR} of child 3 {SPAN} of child 1 {SPAN} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {SPAN} of child 1 {SPAN} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-select-all-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-select-all-001-expected.txt
index 02c0ea4..2dc141d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-select-all-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-select-all-001-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 0x19
             RenderInline {SPAN} at (0,0) size 0x19
               RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-select-all-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-select-all-002-expected.txt
index 19c1887..137fbdb 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-select-all-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-select-all-002-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x31
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-select-all-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-select-all-003-expected.txt
index 4152662..a75acde 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-select-all-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-select-all-003-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderListItem {LI} at (40,0) size 716x32
             RenderListMarker at (-23,0) size 10x31: bullet
             RenderBR {BR} at (0,0) size 0x31
-caret: position 0 of child 0 {BR} of child 0 {LI} of child 1 {UL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {LI} of child 1 {UL} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-selection-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-selection-001-expected.txt
index 7c62be7..7e839da 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-selection-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-selection-001-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 48: " bar "
             text run at (62,14) width 38: "baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-tab-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-tab-001-expected.txt
index 92b4916..3ccdbe9 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-tab-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-tab-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (21,14) size 33x31
             text run at (21,14) width 33: "foo"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-tab-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-tab-002-expected.txt
index a8372a9..a1158fa 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-tab-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-tab-002-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 7x31
             RenderText {#text} at (47,14) size 7x31
               text run at (47,14) width 7: "\x{9}"
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-tab-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-tab-003-expected.txt
index 25f667d..af15a9d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-tab-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-tab-003-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (41,14) size 13x31
             text run at (41,14) width 13: "o"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-tab-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-tab-004-expected.txt
index de0638b..7752b20 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-tab-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-tab-004-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (21,46) size 33x31
             text run at (21,46) width 33: "foo"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-to-select-table-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-to-select-table-expected.txt
index 2b62e46..97a0a8f 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-to-select-table-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-to-select-table-expected.txt
@@ -54,5 +54,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (31,25) size 45x21 [r=1 c=1 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 43x19
                   text run at (1,1) width 43: "buffalo"
-selection start: position 0 of child 1 {TABLE} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 1 {TABLE} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {TABLE} of child 0 {DIV} of body
+selection end:   position 2 of child 1 {TABLE} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-001-expected.txt
index 7c62be7..7e839da 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-001-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 48: " bar "
             text run at (62,14) width 38: "baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-002-expected.txt
index 59f38a3..67f996d 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-trailing-ws-002-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,46) size 45x31
             text run at (14,46) width 45: " baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-001-expected.txt
index dcc6c14..0290b42 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-001-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
             text run at (14,47) width 322: "nation, conceived    in Liberty, "
             text run at (336,47) width 414: "and dedicated to the proposition that all"
         RenderText {#text} at (0,0) size 0x0
-caret: position 7 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-002-expected.txt
index 4d702aa..94d9ad2 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-002-expected.txt
@@ -65,4 +65,4 @@ layer at (0,0) size 800x600
             text run at (14,47) width 322: "nation, conceived    in Liberty, "
             text run at (336,47) width 414: "and dedicated to the proposition that all"
         RenderText {#text} at (0,0) size 0x0
-caret: position 7 of child 2 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 2 {#text} of child 1 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-003-expected.txt
index 727cc45..8bf3a5f 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-003-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (62,14) size 33x31
             text run at (62,14) width 33: "foo"
         RenderText {#text} at (0,0) size 0x0
-caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-004-expected.txt
index 93ef82c..d6c4aa0 100644
--- a/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/delete-ws-fixup-004-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (76,14) size 33x31
             text run at (76,14) width 33: "foo"
         RenderText {#text} at (0,0) size 0x0
-caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/deletionUI-single-instance-expected.txt b/LayoutTests/platform/qt/editing/deleting/deletionUI-single-instance-expected.txt
index fd159fb..873438b 100644
--- a/LayoutTests/platform/qt/editing/deleting/deletionUI-single-instance-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/deletionUI-single-instance-expected.txt
@@ -26,4 +26,4 @@ layer at (22,93) size 756x82 layerType: foreground only
     RenderBlock {DIV} at (0,0) size 756x0
 layer at (5,78) size 30x30
   RenderImage zI: 1000000 {IMG} at (-17,-15) size 30x30
-caret: position 403 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 403 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/forward-delete-expected.txt b/LayoutTests/platform/qt/editing/deleting/forward-delete-expected.txt
index 037415f..acf3abf 100644
--- a/LayoutTests/platform/qt/editing/deleting/forward-delete-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/forward-delete-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 34x31
             text run at (14,14) width 34: "bar"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/list-item-1-expected.txt b/LayoutTests/platform/qt/editing/deleting/list-item-1-expected.txt
index 1665804..9dafd6e 100644
--- a/LayoutTests/platform/qt/editing/deleting/list-item-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/list-item-1-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderListItem {LI} at (40,19) size 744x19
             RenderListMarker at (-17,0) size 7x19: bullet
             RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-different-styles-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-different-styles-expected.txt
index dca9443..f749516 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-different-styles-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-different-styles-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 22x20
             RenderText {#text} at (20,0) size 22x20
               text run at (20,0) width 22: "bar"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-endOfParagraph-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-endOfParagraph-expected.txt
index 91936e6..43caed3 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-endOfParagraph-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-endOfParagraph-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (5,175) size 774x33 [border: (1px solid #000000)]
         RenderBlock {DIV} at (6,6) size 762x21 [border: (1px solid #FF0000)]
           RenderBR {BR} at (1,1) size 0x19
-caret: position 0 of child 0 {BR} of child 0 {DIV} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {DIV} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-1-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-1-expected.txt
index ea98e35..8392326 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-1-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 20x19
             RenderText {#text} at (28,0) size 20x19
               text run at (28,0) width 20: "foo"
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-2-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-2-expected.txt
index 7a716e2..de07b47 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-into-empty-block-2-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
             RenderInline {SPAN} at (0,0) size 20x19
               RenderText {#text} at (0,0) size 20x19
                 text run at (0,0) width 20: "foo"
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-no-br-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-no-br-expected.txt
index 823303d..1617a19 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-no-br-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-no-br-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (10,63) size 722x19
             RenderText {#text} at (0,0) size 30x19
               text run at (0,0) width 30: "Four"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-unrendered-space-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-unrendered-space-expected.txt
index 947c68f..113d135 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-unrendered-space-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-unrendered-space-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,19) size 784x19
           RenderText {#text} at (0,0) size 23x19
             text run at (0,0) width 23: "baz"
-caret: position 3 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt
index 149bc05..4549e11 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
         RenderBlock {PRE} at (0,33) size 784x19
           RenderText {#text} at (0,0) size 23x19
             text run at (0,0) width 23: "baz"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/non-smart-delete-expected.txt b/LayoutTests/platform/qt/editing/deleting/non-smart-delete-expected.txt
index 436290b..51d5653 100644
--- a/LayoutTests/platform/qt/editing/deleting/non-smart-delete-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/non-smart-delete-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 86x29
             text run at (2,2) width 86: " bar baz"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt b/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt
index 5b518c3..0a6729e 100644
--- a/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 21x38
             text run at (0,0) width 0: " "
             text run at (0,19) width 21: "bar"
-caret: position 0 of child 0 {#text} of child 0 {PRE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {PRE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/pruning-after-merge-2-expected.txt b/LayoutTests/platform/qt/editing/deleting/pruning-after-merge-2-expected.txt
index 35bb648..d0ac9bd 100644
--- a/LayoutTests/platform/qt/editing/deleting/pruning-after-merge-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/pruning-after-merge-2-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 22x20
             RenderText {#text} at (20,0) size 22x20
               text run at (20,0) width 22: "bar"
-caret: position 3 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/smart-delete-001-expected.txt b/LayoutTests/platform/qt/editing/deleting/smart-delete-001-expected.txt
index d019a4f..a3f3dd8 100644
--- a/LayoutTests/platform/qt/editing/deleting/smart-delete-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/smart-delete-001-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x36 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 79x31
             text run at (2,2) width 79: "bar baz"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/smart-delete-002-expected.txt b/LayoutTests/platform/qt/editing/deleting/smart-delete-002-expected.txt
index c91f56a..390bfa4 100644
--- a/LayoutTests/platform/qt/editing/deleting/smart-delete-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/smart-delete-002-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x36 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 78x31
             text run at (2,2) width 78: "foo baz"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/smart-delete-003-expected.txt b/LayoutTests/platform/qt/editing/deleting/smart-delete-003-expected.txt
index d4aedbc..4fb3f74 100644
--- a/LayoutTests/platform/qt/editing/deleting/smart-delete-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/smart-delete-003-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 22: "foo"
         RenderText {#text} at (22,0) size 30x20
           text run at (22,0) width 30: " baz"
-caret: position 3 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/smart-delete-004-expected.txt b/LayoutTests/platform/qt/editing/deleting/smart-delete-004-expected.txt
index c41fbdb..23fd211 100644
--- a/LayoutTests/platform/qt/editing/deleting/smart-delete-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/smart-delete-004-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 22: "foo"
         RenderText {#text} at (22,0) size 30x20
           text run at (22,0) width 30: " baz"
-caret: position 3 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/table-cells-expected.txt b/LayoutTests/platform/qt/editing/deleting/table-cells-expected.txt
index 74cbb1a..93b45ec 100644
--- a/LayoutTests/platform/qt/editing/deleting/table-cells-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/table-cells-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
                 RenderBlock {DIV} at (2,2) size 173x19
                   RenderText {#text} at (0,0) size 173x19
                     text run at (0,0) width 173: " should be in different cells."
-caret: position 24 of child 0 {#text} of child 0 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 24 of child 0 {#text} of child 0 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/transpose-empty-expected.txt b/LayoutTests/platform/qt/editing/deleting/transpose-empty-expected.txt
index 6c8b998..e9ff7ad 100644
--- a/LayoutTests/platform/qt/editing/deleting/transpose-empty-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/transpose-empty-expected.txt
@@ -6,4 +6,4 @@ layer at (0,0) size 800x600
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
-caret: position 0 of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of body
diff --git a/LayoutTests/platform/qt/editing/deleting/whitespace-pre-1-expected.txt b/LayoutTests/platform/qt/editing/deleting/whitespace-pre-1-expected.txt
index 75985d1..fae7704 100644
--- a/LayoutTests/platform/qt/editing/deleting/whitespace-pre-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/whitespace-pre-1-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           text run at (0,19) width 361: "There should be three paragraphs in this editable region."
           text run at (361,19) width 0: " "
           text run at (0,38) width 193: "The first one should be empty."
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4580583-1-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4580583-1-expected.txt
index 443ba95..e7d6ab9 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4580583-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4580583-1-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-20,0) size 16x19: "4"
               RenderText {#text} at (0,0) size 30x19
                 text run at (0,0) width 30: "Four"
-caret: position 0 of child 2 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4580583-2-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4580583-2-expected.txt
index 1f0a8d3..f4da2d8 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4580583-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4580583-2-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-20,0) size 16x19: "4"
               RenderText {#text} at (0,0) size 30x19
                 text run at (0,0) width 30: "Four"
-caret: position 0 of child 2 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4641880-1-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4641880-1-expected.txt
index 34b95d6..192da34 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4641880-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4641880-1-expected.txt
@@ -26,5 +26,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 239x19
             text run at (0,0) width 239: "This paragraph should not be in a list."
           RenderBR {BR} at (239,14) size 0x0
-selection start: position 0 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 35 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of body
+selection end:   position 35 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4641880-2-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4641880-2-expected.txt
index 6bd6cad..d2f8278 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4641880-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4641880-2-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 250x19
             text run at (0,0) width 250: "This paragraph should not be indented."
           RenderBR {BR} at (250,14) size 0x0
-selection start: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 34 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
+selection end:   position 34 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4747450-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4747450-expected.txt
index cdd279b..5d99204 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4747450-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4747450-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-17,0) size 7x19: bullet
               RenderBR {BR} at (0,0) size 0x19
           RenderBlock (anonymous) at (0,33) size 784x0
-caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4786404-1-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4786404-1-expected.txt
index 7d7f3e5..dd6b4b5 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4786404-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4786404-1-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,54) size 784x19 [color=#000000]
         RenderText {#text} at (0,0) size 72x19
           text run at (0,0) width 72: "foo bar baz"
-selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 11 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4786404-2-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4786404-2-expected.txt
index cc0de45..9dc3a7b 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4786404-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4786404-2-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x19
         RenderText {#text} at (0,0) size 72x19
           text run at (0,0) width 72: "foo bar baz"
-selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 11 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4916402-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4916402-expected.txt
index 3f422ce..5f676be 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4916402-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4916402-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 21x19
               text run at (0,0) width 21: "bar"
         RenderBlock (anonymous) at (0,66) size 784x0
-caret: position 0 of child 0 {#text} of child 0 {LI} of child 1 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {LI} of child 1 {OL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4916541-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4916541-expected.txt
index 0108e81..c038026 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4916541-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4916541-expected.txt
@@ -16,5 +16,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,19) size 21x19
             text run at (0,19) width 21: "bar"
         RenderBlock (anonymous) at (0,38) size 784x0
-selection start: position 1 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 2 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
+selection end:   position 2 of child 2 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4920488-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4920488-expected.txt
index f3277a8..ded612d 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4920488-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4920488-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x19
         RenderText {#text} at (0,0) size 52x19
           text run at (0,0) width 52: "dogfood"
-selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 7 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 7 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4920742-1-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4920742-1-expected.txt
index 2c67fc0..5498fc6 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4920742-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4920742-1-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x19
         RenderBlock {DIV} at (0,38) size 784x19
           RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/4924441-expected.txt b/LayoutTests/platform/qt/editing/execCommand/4924441-expected.txt
index aec8098..fd0a9d6 100644
--- a/LayoutTests/platform/qt/editing/execCommand/4924441-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/4924441-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 20x19
                 text run at (0,0) width 20: "foo"
         RenderBlock (anonymous) at (0,33) size 784x0
-caret: position 3 of child 0 {#text} of child 0 {LI} of child 0 {OL} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {LI} of child 0 {OL} of child 0 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5049671-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5049671-expected.txt
index 3e95f0b..5048c90 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5049671-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5049671-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x19
         RenderText {#text} at (0,0) size 237x19
           text run at (0,0) width 237: "This shouldn't be a link or underlined."
-selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 39 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 39 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5062376-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5062376-expected.txt
index 6912bb9..f11c527 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5062376-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5062376-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x19
         RenderText {#text} at (764,0) size 20x19
           text run at (764,0) width 20: "foo"
-selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5080333-1-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5080333-1-expected.txt
index b5913e1..77b85d7 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5080333-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5080333-1-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,122) size 784x19
           RenderText {#text} at (0,0) size 23x19
             text run at (0,0) width 23: "baz"
-caret: position 0 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5080333-2-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5080333-2-expected.txt
index 23a27fd..5cc03ca 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5080333-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5080333-2-expected.txt
@@ -19,5 +19,5 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,122) size 784x19
           RenderText {#text} at (0,0) size 23x19
             text run at (0,0) width 23: "baz"
-selection start: position 0 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of body
+selection end:   position 1 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5136770-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5136770-expected.txt
index e9e8831..0469ce5 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5136770-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5136770-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 239x19
                 text run at (0,0) width 239: "This should be an unordered list item."
           RenderBlock (anonymous) at (0,71) size 784x0
-selection start: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 38 of child 0 {#text} of child 2 {LI} of child 0 {UL} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of child 2 {DIV} of body
+selection end:   position 38 of child 0 {#text} of child 2 {LI} of child 0 {UL} of child 3 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5138441-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5138441-expected.txt
index cd9e541..26e8d41 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5138441-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5138441-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (7,26) size 770x35 [border: (1px dashed #AAAAAA)]
           RenderText {#text} at (8,8) size 175x19
             text run at (8,8) width 175: "This text should be Quoted."
-caret: position 0 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5142012-1-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5142012-1-expected.txt
index 13288fe..9f3c2f3 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5142012-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5142012-1-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
               text run at (0,0) width 13: "W"
           RenderText {#text} at (13,0) size 28x19
             text run at (13,0) width 28: "orld!"
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 2 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5142012-2-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5142012-2-expected.txt
index 9f03855..60070d7 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5142012-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5142012-2-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
               text run at (337,0) width 403: "This paragraph should be a link and should be inside a list item."
           RenderText {#text} at (0,0) size 0x0
       RenderBlock (anonymous) at (0,33) size 784x0
-selection start: position 0 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 0 {UL} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 123 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 0 {UL} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 0 {UL} of body
+selection end:   position 123 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 0 {UL} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/5190926-expected.txt b/LayoutTests/platform/qt/editing/execCommand/5190926-expected.txt
index e6dee89..a6b154c 100644
--- a/LayoutTests/platform/qt/editing/execCommand/5190926-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/5190926-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 221x19
               text run at (0,0) width 221: "And all three should be underlined."
       RenderBlock (anonymous) at (0,71) size 784x0
-selection start: position 0 of child 0 {#text} of child 0 {U} of child 0 {LI} of child 0 {OL} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 35 of child 0 {#text} of child 0 {U} of child 2 {LI} of child 0 {OL} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {U} of child 0 {LI} of child 0 {OL} of body
+selection end:   position 35 of child 0 {#text} of child 0 {U} of child 2 {LI} of child 0 {OL} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/create-list-from-range-selection-expected.txt b/LayoutTests/platform/qt/editing/execCommand/create-list-from-range-selection-expected.txt
index c7daef8..9d1f102 100644
--- a/LayoutTests/platform/qt/editing/execCommand/create-list-from-range-selection-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/create-list-from-range-selection-expected.txt
@@ -44,5 +44,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 23x19
               text run at (0,0) width 23: "baz"
         RenderBlock (anonymous) at (0,128) size 784x0
-selection start: position 2 of child 0 {#text} of child 1 {SPAN} of child 0 {LI} of child 0 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 5 {LI} of child 0 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 2 of child 0 {#text} of child 1 {SPAN} of child 0 {LI} of child 0 {OL} of child 2 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 5 {LI} of child 0 {OL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/create-list-with-hr-expected.txt b/LayoutTests/platform/qt/editing/execCommand/create-list-with-hr-expected.txt
index 232353e..d52ba09 100644
--- a/LayoutTests/platform/qt/editing/execCommand/create-list-with-hr-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/create-list-with-hr-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
             RenderBlock (anonymous) at (0,9) size 744x19
               RenderListMarker at (-17,0) size 7x19: bullet
         RenderBlock (anonymous) at (0,42) size 784x0
-caret: position 0 of child 0 {HR} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {HR} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/findString-2-expected.txt b/LayoutTests/platform/qt/editing/execCommand/findString-2-expected.txt
index f11089a..2acafbf 100644
--- a/LayoutTests/platform/qt/editing/execCommand/findString-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/findString-2-expected.txt
@@ -19,5 +19,5 @@ layer at (0,0) size 800x600
             text run at (24,0) width 21: "bar"
         RenderText {#text} at (45,0) size 103x19
           text run at (45,0) width 103: " baz foo bar baz"
-selection start: position 9 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 12 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 9 of child 2 {#text} of child 2 {DIV} of body
+selection end:   position 12 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/findString-expected.txt b/LayoutTests/platform/qt/editing/execCommand/findString-expected.txt
index d65a448..87f81fb 100644
--- a/LayoutTests/platform/qt/editing/execCommand/findString-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/findString-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
             text run at (1,20) width 21: "bar"
         RenderText {#text} at (22,20) size 27x19
           text run at (22,20) width 27: " baz"
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 2 {DIV} of body
+selection end:   position 1 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/format-block-expected.txt b/LayoutTests/platform/qt/editing/execCommand/format-block-expected.txt
index 0459a1f..23f97fb 100644
--- a/LayoutTests/platform/qt/editing/execCommand/format-block-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/format-block-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
         RenderBlock {ADDRESS} at (1,198) size 782x20
           RenderText {#text} at (0,0) size 277x19
             text run at (0,0) width 277: "Attempt to apply the current formatting here"
-caret: position 0 of child 0 {#text} of child 9 {ADDRESS} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 9 {ADDRESS} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/format-block-from-range-selection-expected.txt b/LayoutTests/platform/qt/editing/execCommand/format-block-from-range-selection-expected.txt
index 7bdb0e8..80ec44e 100644
--- a/LayoutTests/platform/qt/editing/execCommand/format-block-from-range-selection-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/format-block-from-range-selection-expected.txt
@@ -44,5 +44,5 @@ layer at (0,0) size 800x600
         RenderBlock {DL} at (1,180) size 782x19
           RenderText {#text} at (0,0) size 20x19
             text run at (0,0) width 20: "yar"
-selection start: position 2 of child 0 {#text} of child 1 {DL} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 6 {DL} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 2 of child 0 {#text} of child 1 {DL} of child 4 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 6 {DL} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/format-block-with-braces-expected.txt b/LayoutTests/platform/qt/editing/execCommand/format-block-with-braces-expected.txt
index 1c92500..ba332f5 100644
--- a/LayoutTests/platform/qt/editing/execCommand/format-block-with-braces-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/format-block-with-braces-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,112) size 784x0
         RenderInline {DIV} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 0 {H1} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {H1} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt b/LayoutTests/platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt
index 5f88b9d..f9722d6 100644
--- a/LayoutTests/platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderBlock {PRE} at (1,15) size 782x19
           RenderText {#text} at (0,0) size 25x19
             text run at (0,0) width 25: "Foo"
-caret: position 0 of child 0 {#text} of child 1 {PRE} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {PRE} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/hilitecolor-expected.txt b/LayoutTests/platform/qt/editing/execCommand/hilitecolor-expected.txt
index 1f7e3b3..0586580 100644
--- a/LayoutTests/platform/qt/editing/execCommand/hilitecolor-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/hilitecolor-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             text run at (29,0) width 46: "second"
         RenderText {#text} at (75,0) size 546x19
           text run at (75,0) width 546: " word, and only the second word of this sentence should have a red background color."
-caret: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/indent-empty-root-expected.txt b/LayoutTests/platform/qt/editing/execCommand/indent-empty-root-expected.txt
index 6bc4aaa..4271df5 100644
--- a/LayoutTests/platform/qt/editing/execCommand/indent-empty-root-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/indent-empty-root-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,33) size 784x19
         RenderBlock {BLOCKQUOTE} at (40,0) size 744x19
           RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 0 {BLOCKQUOTE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {BLOCKQUOTE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/indent-list-item-expected.txt b/LayoutTests/platform/qt/editing/execCommand/indent-list-item-expected.txt
index f3ef5a0..cb6ee44 100644
--- a/LayoutTests/platform/qt/editing/execCommand/indent-list-item-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/indent-list-item-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x19: bullet
             RenderText {#text} at (0,0) size 24x19
               text run at (0,0) width 24: "Baz"
-caret: position 0 of child 0 {#text} of child 0 {LI} of child 3 {UL} of child 1 {UL} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {LI} of child 3 {UL} of child 1 {UL} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/indent-selection-expected.txt b/LayoutTests/platform/qt/editing/execCommand/indent-selection-expected.txt
index 8a6f162..fa1a3e1 100644
--- a/LayoutTests/platform/qt/editing/execCommand/indent-selection-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/indent-selection-expected.txt
@@ -54,5 +54,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,19) size 36x19
               text run at (0,19) width 36: "Thing"
         RenderBlock (anonymous) at (0,199) size 784x0
-selection start: position 0 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 3 {#text} of child 3 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 4 {DIV} of body
+selection end:   position 5 of child 3 {#text} of child 3 {BLOCKQUOTE} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/insert-list-and-stitch-expected.txt b/LayoutTests/platform/qt/editing/execCommand/insert-list-and-stitch-expected.txt
index ce0f1e6..b98f7ac 100644
--- a/LayoutTests/platform/qt/editing/execCommand/insert-list-and-stitch-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/insert-list-and-stitch-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 23x19
                 text run at (0,0) width 23: "baz"
           RenderBlock (anonymous) at (0,71) size 784x0
-caret: position 0 of child 0 {#text} of child 2 {LI} of child 0 {OL} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {LI} of child 0 {OL} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/insert-list-empty-div-expected.txt b/LayoutTests/platform/qt/editing/execCommand/insert-list-empty-div-expected.txt
index f1d66ea..ac10cda 100644
--- a/LayoutTests/platform/qt/editing/execCommand/insert-list-empty-div-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/insert-list-empty-div-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x19: bullet
             RenderBR {BR} at (0,0) size 0x19
         RenderBlock (anonymous) at (0,33) size 784x0
-caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/insertImage-expected.txt b/LayoutTests/platform/qt/editing/execCommand/insertImage-expected.txt
index 92b69b2..a5afc0e 100644
--- a/LayoutTests/platform/qt/editing/execCommand/insertImage-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/insertImage-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (0,0) size 76x103
         RenderImage {IMG} at (76,83) size 20x20
       RenderBlock {UL} at (0,169) size 784x0
-caret: position 1 of child 1 {IMG} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {IMG} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/outdent-selection-expected.txt b/LayoutTests/platform/qt/editing/execCommand/outdent-selection-expected.txt
index 801c2be..b3122ce 100644
--- a/LayoutTests/platform/qt/editing/execCommand/outdent-selection-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/outdent-selection-expected.txt
@@ -57,5 +57,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,19) size 36x19
               text run at (0,19) width 36: "Thing"
           RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 16 {SPAN} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 4 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 16 {SPAN} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/print-expected.txt b/LayoutTests/platform/qt/editing/execCommand/print-expected.txt
index 8e091b8..7d29dcb 100644
--- a/LayoutTests/platform/qt/editing/execCommand/print-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/print-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,382) size 756x0
           RenderInline {SPAN} at (0,0) size 0x0
           RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/remove-formatting-2-expected.txt b/LayoutTests/platform/qt/editing/execCommand/remove-formatting-2-expected.txt
index 3b1b38a..8ea40b5 100644
--- a/LayoutTests/platform/qt/editing/execCommand/remove-formatting-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/remove-formatting-2-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x19
         RenderText {#text} at (0,0) size 310x19
           text run at (0,0) width 310: "This text should look the same as the text above."
-selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/remove-formatting-expected.txt b/LayoutTests/platform/qt/editing/execCommand/remove-formatting-expected.txt
index d522701..bd1ec08 100644
--- a/LayoutTests/platform/qt/editing/execCommand/remove-formatting-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/remove-formatting-expected.txt
@@ -46,5 +46,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 64x19
             text run at (0,0) width 64: "foobarbaz"
       RenderBlock {UL} at (0,125) size 784x0
-selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 9 of child 0 {#text} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 2 {DIV} of body
+selection end:   position 9 of child 0 {#text} of child 3 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/remove-list-from-range-selection-expected.txt b/LayoutTests/platform/qt/editing/execCommand/remove-list-from-range-selection-expected.txt
index c6dc981..a33698b 100644
--- a/LayoutTests/platform/qt/editing/execCommand/remove-list-from-range-selection-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/remove-list-from-range-selection-expected.txt
@@ -32,5 +32,5 @@ layer at (0,0) size 800x600
             RenderListMarker at (-20,0) size 16x19: "1"
             RenderText {#text} at (0,0) size 320x19
               text run at (0,0) width 320: "This should be in a list and should not be selected."
-selection start: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 6 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 2 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 2 of child 6 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/remove-list-item-1-expected.txt b/LayoutTests/platform/qt/editing/execCommand/remove-list-item-1-expected.txt
index d2b1734..e1c5118 100644
--- a/LayoutTests/platform/qt/editing/execCommand/remove-list-item-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/remove-list-item-1-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x19: bullet
             RenderText {#text} at (0,0) size 20x19
               text run at (0,0) width 20: "foo"
-caret: position 0 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/execCommand/selectAll-expected.txt b/LayoutTests/platform/qt/editing/execCommand/selectAll-expected.txt
index a8ec4f1..700fde2 100644
--- a/LayoutTests/platform/qt/editing/execCommand/selectAll-expected.txt
+++ b/LayoutTests/platform/qt/editing/execCommand/selectAll-expected.txt
@@ -40,5 +40,5 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,382) size 756x0
           RenderInline {SPAN} at (0,0) size 0x0
           RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 562 of child 0 {#text} of child 1 {P} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 562 of child 0 {#text} of child 1 {P} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/12882-expected.txt b/LayoutTests/platform/qt/editing/inserting/12882-expected.txt
index 3ccbdfe..d7fe57e 100644
--- a/LayoutTests/platform/qt/editing/inserting/12882-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/12882-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           text run at (228,0) width 468: " our fathers brought forth on this continent a new nation, conceived"
           text run at (696,0) width 4: " "
           text run at (0,20) width 509: "in liberty and dedicated to the proposition that all men are created equal."
-caret: position 1 of child 1 {IMG} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {IMG} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/4278698-expected.txt b/LayoutTests/platform/qt/editing/inserting/4278698-expected.txt
index 086a7f6..9246da3 100644
--- a/LayoutTests/platform/qt/editing/inserting/4278698-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/4278698-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBlock {PRE} at (2,2) size 780x23 [border: (2px solid #AAAAFF)]
           RenderText {#text} at (2,3) size 96x17
             text run at (2,3) width 96: "a          b"
-caret: position 3 of child 0 {#text} of child 1 {PRE} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {PRE} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/4840662-expected.txt b/LayoutTests/platform/qt/editing/inserting/4840662-expected.txt
index 9b64d80..a1d0384 100644
--- a/LayoutTests/platform/qt/editing/inserting/4840662-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/4840662-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
         RenderBlock {A} at (0,0) size 784x20 [color=#0000EE]
           RenderText {#text} at (0,0) size 282x20
             text run at (0,0) width 282: "This sentence should all be on one line."
-caret: position 40 of child 0 {#text} of child 0 {A} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 40 of child 0 {#text} of child 0 {A} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/4875189-1-expected.txt b/LayoutTests/platform/qt/editing/inserting/4875189-1-expected.txt
index 12d3bdc..520c306 100644
--- a/LayoutTests/platform/qt/editing/inserting/4875189-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/4875189-1-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-18,0) size 7x20: bullet
             RenderText {#text} at (0,0) size 197x20
               text run at (0,0) width 197: "This should be in a list item."
-caret: position 30 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 30 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/4875189-2-expected.txt b/LayoutTests/platform/qt/editing/inserting/4875189-2-expected.txt
index 00861f5..884f057 100644
--- a/LayoutTests/platform/qt/editing/inserting/4875189-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/4875189-2-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderBlock (floating) {DIV} at (0,0) size 325x22 [border: (1px solid #0000FF)]
           RenderText {#text} at (1,1) size 323x20
             text run at (1,1) width 323: "This should be in a floating blue bordered div."
-caret: position 47 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 47 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/4959067-expected.txt b/LayoutTests/platform/qt/editing/inserting/4959067-expected.txt
index ab0b3ec..d1e488e 100644
--- a/LayoutTests/platform/qt/editing/inserting/4959067-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/4959067-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 22x20
                 text run at (0,0) width 22: "foo"
       RenderBlock {UL} at (0,72) size 784x0
-caret: position 3 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 1 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 1 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/4960120-1-expected.txt b/LayoutTests/platform/qt/editing/inserting/4960120-1-expected.txt
index 8936f2c..52c7345 100644
--- a/LayoutTests/platform/qt/editing/inserting/4960120-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/4960120-1-expected.txt
@@ -16,4 +16,4 @@ layer at (11,44) size 182x38
       text run at (3,0) width 0: " "
     RenderText {#text} at (3,19) size 0x19
       text run at (3,19) width 0: " "
-caret: position 0 of child 1 {#text} of child 0 {DIV} of child 2 {TEXTAREA} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {#text} of child 0 {DIV} of child 2 {TEXTAREA} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/4960120-2-expected.txt b/LayoutTests/platform/qt/editing/inserting/4960120-2-expected.txt
index 95e3a57..81602f0 100644
--- a/LayoutTests/platform/qt/editing/inserting/4960120-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/4960120-2-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,40) size 784x20
           RenderText {#text} at (0,0) size 23x20
             text run at (0,0) width 23: "bar"
-caret: position 0 of child 2 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5002441-expected.txt b/LayoutTests/platform/qt/editing/inserting/5002441-expected.txt
index 92c035e..bd19753 100644
--- a/LayoutTests/platform/qt/editing/inserting/5002441-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5002441-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,20) size 784x20
           RenderText {#text} at (0,0) size 395x20
             text run at (0,0) width 395: "There should be a single space in the paragraph above."
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5058163-1-expected.txt b/LayoutTests/platform/qt/editing/inserting/5058163-1-expected.txt
index 41f1513..5ae4982 100644
--- a/LayoutTests/platform/qt/editing/inserting/5058163-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5058163-1-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
                 RenderTableCell {TD} at (2,2) size 304x22 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (1,1) size 302x20
                     text run at (1,1) width 302: "And the caret should be in the second one."
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5058163-2-expected.txt b/LayoutTests/platform/qt/editing/inserting/5058163-2-expected.txt
index d4d2dfb..40087da 100644
--- a/LayoutTests/platform/qt/editing/inserting/5058163-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5058163-2-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,40) size 784x20
           RenderText {#text} at (0,0) size 749x20
             text run at (0,0) width 749: "There should be an empty paragraph before this one, and the caret should be at the start of this paragraph."
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5156401-2-expected.txt b/LayoutTests/platform/qt/editing/inserting/5156401-2-expected.txt
index d93d039..9dac79c 100644
--- a/LayoutTests/platform/qt/editing/inserting/5156401-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5156401-2-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 473x20
             text run at (0,0) width 473: "Everything in this editable region should be in the same paragraph."
           RenderBR {BR} at (473,16) size 0x0
-caret: position 67 of child 0 {#text} of child 0 {A} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 67 of child 0 {#text} of child 0 {A} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5418891-expected.txt b/LayoutTests/platform/qt/editing/inserting/5418891-expected.txt
index cc39097..4ddb786 100644
--- a/LayoutTests/platform/qt/editing/inserting/5418891-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5418891-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (7,0) size 777x20
             RenderText {#text} at (0,0) size 23x20
               text run at (0,0) width 23: "bar"
-caret: position 0 of child 2 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5510537-expected.txt b/LayoutTests/platform/qt/editing/inserting/5510537-expected.txt
index 968aca7..e67fb79 100644
--- a/LayoutTests/platform/qt/editing/inserting/5510537-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5510537-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 107x20
                   text run at (0,0) width 107: "quote level two"
       RenderBlock {PRE} at (0,169) size 784x0
-caret: position 8 of child 6 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 8 of child 6 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5549929-2-expected.txt b/LayoutTests/platform/qt/editing/inserting/5549929-2-expected.txt
index 1943a97..59b369a 100644
--- a/LayoutTests/platform/qt/editing/inserting/5549929-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5549929-2-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
               text run at (0,20) width 4: "\x{9}"
           RenderText {#text} at (4,20) size 23x20
             text run at (4,20) width 23: "bar"
-caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/5549929-3-expected.txt b/LayoutTests/platform/qt/editing/inserting/5549929-3-expected.txt
index 7bf62da..46ea4a0 100644
--- a/LayoutTests/platform/qt/editing/inserting/5549929-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/5549929-3-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
             text run at (22,0) width 4: "\x{9}"
         RenderBR {BR} at (26,16) size 0x0
         RenderBR {BR} at (0,20) size 0x20
-caret: position 0 of child 3 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/6703873-expected.txt b/LayoutTests/platform/qt/editing/inserting/6703873-expected.txt
index 80a0ee0..2626c61 100644
--- a/LayoutTests/platform/qt/editing/inserting/6703873-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/6703873-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 49x20
               text run at (0,0) width 49: "quoted"
       RenderBlock {PRE} at (0,129) size 784x0
-caret: position 8 of child 2 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 8 of child 2 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/before-after-input-element-expected.txt b/LayoutTests/platform/qt/editing/inserting/before-after-input-element-expected.txt
index 073584c..3f1db57 100644
--- a/LayoutTests/platform/qt/editing/inserting/before-after-input-element-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/before-after-input-element-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (204,5) width 37: "World"
 layer at (45,46) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 5 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/break-blockquote-after-delete-expected.txt b/LayoutTests/platform/qt/editing/inserting/break-blockquote-after-delete-expected.txt
index c395391..7af4558 100644
--- a/LayoutTests/platform/qt/editing/inserting/break-blockquote-after-delete-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/break-blockquote-after-delete-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             RenderBlock {BLOCKQUOTE} at (0,0) size 772x20 [color=#008000] [border: none (2px solid #008000)]
               RenderText {#text} at (12,0) size 41x20
                 text run at (12,0) width 41: "green"
-caret: position 5 of child 2 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/editable-html-element-expected.txt b/LayoutTests/platform/qt/editing/inserting/editable-html-element-expected.txt
index c00414d..c9996df 100644
--- a/LayoutTests/platform/qt/editing/inserting/editable-html-element-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/editable-html-element-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (0,38) width 60: "element)."
       RenderBlock {DIV} at (0,57) size 784x19
         RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/editable-inline-element-expected.txt b/LayoutTests/platform/qt/editing/inserting/editable-inline-element-expected.txt
index 8a4cab0..6fa5b82 100644
--- a/LayoutTests/platform/qt/editing/inserting/editable-inline-element-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/editable-inline-element-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (1,1) size 0x20
           RenderText {#text} at (1,21) size 22x20
             text run at (1,21) width 22: "foo"
-caret: position 0 of child 1 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {#text} of child 0 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/edited-whitespace-1-expected.txt b/LayoutTests/platform/qt/editing/inserting/edited-whitespace-1-expected.txt
index f94a89a..33cbe99 100644
--- a/LayoutTests/platform/qt/editing/inserting/edited-whitespace-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/edited-whitespace-1-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
           text run at (1,1) width 58: " Hello    "
           text run at (1,21) width 46: "World "
       RenderBlock {OL} at (0,134) size 784x0
-caret: position 17 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 17 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/editing-empty-divs-expected.txt b/LayoutTests/platform/qt/editing/inserting/editing-empty-divs-expected.txt
index a987a66..326fb16 100644
--- a/LayoutTests/platform/qt/editing/inserting/editing-empty-divs-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/editing-empty-divs-expected.txt
@@ -78,4 +78,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 7x19
             text run at (0,0) width 7: "c"
         RenderBlock {P} at (1,34) size 705x0
-caret: position 1 of child 0 {#text} of child 21 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 21 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3654864-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3654864-fix-expected.txt
index b21fd38..0cd3a2f 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3654864-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3654864-fix-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-caret: position 3 of child 1 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3659587-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3659587-fix-expected.txt
index 7c3da84..2df31bd 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3659587-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3659587-fix-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (134,38) size 0x0
             RenderText {#text} at (14,45) size 39x31
               text run at (14,45) width 39: "xxx"
-caret: position 3 of child 2 {#text} of child 0 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 2 {#text} of child 0 {B} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3775316-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3775316-fix-expected.txt
index b2d39e3..74cab39 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3775316-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3775316-fix-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (26,37) size 0x0
         RenderText {#text} at (14,44) size 12x29
           text run at (14,44) width 12: "x"
-caret: position 1 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3778059-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3778059-fix-expected.txt
index a70afc6..2933d44 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3778059-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3778059-fix-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderBlock {BLOCKQUOTE} at (40,108) size 676x30
             RenderText {#text} at (0,0) size 47x29
               text run at (0,0) width 47: "Test"
-caret: position 1 of child 3 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 3 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3786362-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3786362-fix-expected.txt
index f1c7c9e..c63026e 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3786362-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3786362-fix-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
             text run at (2,2) width 13: "a"
           RenderBR {BR} at (15,25) size 0x0
           RenderBR {BR} at (2,32) size 0x29
-caret: position 0 of child 2 {BR} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3800346-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3800346-fix-expected.txt
index 9ab4359..7e4c49e 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3800346-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3800346-fix-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (0,30) size 0x29
             RenderBR {BR} at (0,60) size 0x29
             RenderBR {BR} at (0,90) size 0x29
-caret: position 0 of child 5 {BR} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 5 {BR} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3851164-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3851164-fix-expected.txt
index 6621d33..9bab16c 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3851164-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3851164-fix-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,0) size 784x30
         RenderText {#text} at (0,0) size 12x29
           text run at (0,0) width 12: "x"
-caret: position 1 of child 0 {#text} of child 0 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 0 {P} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-3907422-fix-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-3907422-fix-expected.txt
index c5835ef..5c08fa7 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-3907422-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-3907422-fix-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 3 of child 3 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 3 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-after-delete-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-after-delete-001-expected.txt
index 00f6ffc..9342061 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-after-delete-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-after-delete-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 36x29
           text run at (14,14) width 36: "xxx"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-at-end-01-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-at-end-01-expected.txt
index 1495f14..e1ff821 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-at-end-01-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-at-end-01-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (2,50) size 780x20
           RenderText {#text} at (0,0) size 8x20
             text run at (0,0) width 8: "x"
-caret: position 1 of child 5 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 5 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-at-end-02-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-at-end-02-expected.txt
index 5af9790..ef3940f 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-at-end-02-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-at-end-02-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (2,50) size 780x20
           RenderText {#text} at (0,0) size 8x20
             text run at (0,0) width 8: "x"
-caret: position 1 of child 5 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 5 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-001-expected.txt
index 45d3c2d..2422171 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,44) size 12x29
             text run at (14,44) width 12: "x"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-002-expected.txt
index 4b53724..6ff76ac 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-002-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,74) size 39x29
             text run at (14,74) width 39: "test"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-003-expected.txt
index ef54e27..d88d9e3 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-003-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,44) size 51x29
             text run at (14,44) width 51: "xtest"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-004-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-004-expected.txt
index cd46e36..24f0c6c 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-004-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (14,44) size 0x29
           RenderBR {BR} at (14,74) size 0x29
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 3 {BR} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {BR} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-005-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-005-expected.txt
index bef7b2a..6043e9c 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-005-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,74) size 12x29
             text run at (14,74) width 12: "x"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-006-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-006-expected.txt
index 184b2f2..13c97d6 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-006-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,44) size 45x29
             text run at (14,44) width 45: "xfoo"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-007-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-007-expected.txt
index 9c63847..6a45f8b 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-007-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,44) size 41x29
             text run at (14,44) width 41: " bar"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-008-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-008-expected.txt
index 7276847..213cbfc 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-008-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x29
         RenderText {#text} at (14,44) size 40x29
           text run at (14,44) width 40: " foo"
-caret: position 1 of child 1 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-009-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-009-expected.txt
index c9738f0..b89342e 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-009-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           text run at (1,21) width 0: " "
         RenderText {#text} at (1,41) size 0x20
           text run at (1,41) width 0: " "
-caret: position 0 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-001-expected.txt
index 5c77782..adab121 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (47,44) size 12x29
             text run at (47,44) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-002-expected.txt
index 89d0f8b..517ceb0 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-002-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (40,44) size 12x29
             text run at (40,44) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-003-expected.txt
index cad761b..90a78b8 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-at-tabspan-003-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,44) size 24x29
             text run at (14,44) width 24: "xz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-001-expected.txt
index 7940308..64f63c4 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-001-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,2) size 672x30
               RenderText {#text} at (0,0) size 37x29
                 text run at (0,0) width 37: "two"
-caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-002-expected.txt
index b794498..d26214c 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-002-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,2) size 672x30
               RenderText {#text} at (0,0) size 37x29
                 text run at (0,0) width 37: "two"
-caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-003-expected.txt
index 2c31890..7f73774 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-003-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,32) size 672x30
               RenderText {#text} at (0,0) size 37x29
                 text run at (0,0) width 37: "two"
-caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-004-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-004-expected.txt
index 2e8f334..83b4b60 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-004-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,32) size 672x30
               RenderText {#text} at (0,0) size 37x29
                 text run at (0,0) width 37: "two"
-caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-005-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-005-expected.txt
index b794498..d26214c 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-005-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,2) size 672x30
               RenderText {#text} at (0,0) size 37x29
                 text run at (0,0) width 37: "two"
-caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-006-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-006-expected.txt
index 7c98526..d828893 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-br-quoted-006-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,32) size 672x30
               RenderText {#text} at (0,0) size 37x29
                 text run at (0,0) width 37: "two"
-caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-001-expected.txt
index 780ab3c..5477555 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-001-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x29
           text run at (14,14) width 12: "x"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-002-expected.txt
index 6c0be62..690f597 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-002-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x29
           text run at (14,14) width 12: "x"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-003-expected.txt
index 8564795..54ce615 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-003-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 51x29
           text run at (14,14) width 51: "xtest"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-004-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-004-expected.txt
index 1a0ba0c..3906c0d 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-004-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x29
       RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-005-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-005-expected.txt
index a09530d..ec63c9d 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-005-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x29
           text run at (14,14) width 12: "x"
-caret: position 1 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-006-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-006-expected.txt
index eb1d5f5..8a7c136 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-006-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 51x29
           text run at (14,14) width 51: "xtest"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-007-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-007-expected.txt
index 408d2d9..a320893 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-007-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 41x29
           text run at (14,14) width 41: " bar"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-008-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-008-expected.txt
index ed60b02..9fe6af0 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-008-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 45x29
           text run at (14,14) width 45: "xfoo"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-009-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-009-expected.txt
index b7e8fed..397b12c 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-009-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,20) size 784x20
         RenderText {#text} at (0,0) size 8x20
           text run at (0,0) width 8: "x"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-010-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-010-expected.txt
index 2370d24..d302f42 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-010-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (14,44) size 756x30
         RenderText {#text} at (0,0) size 12x29
           text run at (0,0) width 12: "x"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-011-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-011-expected.txt
index 51de102..1ad5289 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-011-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-011-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 33: "foo"
       RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-012-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-012-expected.txt
index f861ec9..3810b10 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-012-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-012-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 33: "foo"
       RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {BR} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-013-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-013-expected.txt
index 3ca409b..1026628 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-013-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-013-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 33: "foo"
       RenderBlock {DIV} at (0,270) size 784x58 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 5 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 5 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-014-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-014-expected.txt
index c89817e..7ac81e9 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-014-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-014-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 33: "foo"
         RenderBlock {DIV} at (14,102) size 756x58 [border: (2px solid #FF0000)]
           RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {BR} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-015-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-015-expected.txt
index 64b1cbb..101590c 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-015-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-015-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 33: "foo"
       RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {#text} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-016-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-016-expected.txt
index f8116bd..0f2882f 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-016-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-016-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x29
       RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {BR} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-017-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-017-expected.txt
index 3272757..6df03aa 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-017-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-017-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x29
       RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {BR} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 8 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-018-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-018-expected.txt
index 0c842b4..3bdd352 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-018-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-018-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 38x29
             text run at (14,14) width 38: "baz"
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-019-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-019-expected.txt
index 11d49a5..316270b 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-019-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-019-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,314) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 34x29
           text run at (14,14) width 34: "bar"
-caret: position 0 of child 5 {BR} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 5 {BR} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-020-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-020-expected.txt
index 011a26e..2e5f961 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-020-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-020-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,186) size 784x58 [border: (2px solid #0000FF)]
         RenderText {#text} at (14,14) size 34x29
           text run at (14,14) width 34: "bar"
-caret: position 0 of child 0 {#text} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-021-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-021-expected.txt
index dce91cf..13025dc 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-021-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-021-expected.txt
@@ -43,4 +43,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 0x0
         RenderText {#text} at (14,14) size 34x29
           text run at (14,14) width 34: "bar"
-caret: position 0 of child 1 {#text} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {#text} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-022-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-022-expected.txt
index aee50b9..952d3bc 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-022-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-022-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (27,38) size 0x0 [bgcolor=#008000]
         RenderText {#text} at (14,45) size 34x29
           text run at (14,45) width 34: "bar"
-caret: position 1 of child 0 {#text} of child 0 {B} of child 6 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 0 {B} of child 6 {P} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-023-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-023-expected.txt
index e98968a..d4f1ebd 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-023-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-023-expected.txt
@@ -63,4 +63,4 @@ layer at (0,0) size 800x731
       RenderBlock {P} at (0,639) size 784x60 [border: (2px solid #0000FF)]
         RenderText {#text} at (14,14) size 56x31
           text run at (14,14) width 56: "line 3"
-caret: position 1 of child 0 {#text} of child 0 {B} of child 11 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 0 {B} of child 11 {P} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-024-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-024-expected.txt
index f988734..9c340c9 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-024-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-024-expected.txt
@@ -72,4 +72,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,403) size 784x58 [border: (2px solid #0000FF)]
         RenderText {#text} at (14,14) size 36x29
           text run at (14,14) width 36: "xxx"
-caret: position 3 of child 0 {#text} of child 8 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 8 {P} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-025-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-025-expected.txt
index 904d7f5..a971a8a 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-025-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-025-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 34x29
             text run at (14,14) width 34: "bar"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-026-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-026-expected.txt
index 85b17ca..8634b54 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-026-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-026-expected.txt
@@ -57,4 +57,4 @@ layer at (0,0) size 800x600
               text run at (2,2) width 23: "fo"
           RenderText {#text} at (25,3) size 12x29
             text run at (25,3) width 12: "x"
-caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-div-027-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-div-027-expected.txt
index 79c2445..9a33ec9 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-div-027-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-div-027-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 33: "foo"
         RenderBlock {DIV} at (14,102) size 756x58 [border: (2px solid #FF0000)]
           RenderBR {BR} at (14,14) size 0x29
-caret: position 0 of child 0 {BR} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-01-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-01-expected.txt
index ada37eb..d1a6756 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-01-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-01-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 26x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 22x20
                   text run at (2,2) width 22: "foo"
-caret: position 0 of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-02-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-02-expected.txt
index 6a6b4cd..2d1c453 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-02-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-02-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x20
           RenderText {#text} at (0,20) size 23x20
             text run at (0,20) width 23: "bar"
-caret: position 0 of child 1 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-03-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-03-expected.txt
index d2dc261..f8478c6 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-03-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-03-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,58) size 784x20
           RenderText {#text} at (0,0) size 23x20
             text run at (0,0) width 23: "bar"
-caret: position 0 of child 3 {HR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {HR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-04-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-04-expected.txt
index 6371370..d882a86 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-04-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-04-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
               text run at (0,21) width 25: "bar"
       RenderBlock (anonymous) at (0,159) size 784x0
         RenderInline {B} at (0,0) size 0x0
-caret: position 0 of child 2 {BR} of child 1 {DIV} of child 1 {B} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 1 {B} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-05-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-05-expected.txt
index 35b631f..7133efc 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-paragraph-05-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-paragraph-05-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderInline {A} at (0,0) size 65x20 [color=#0000EE]
             RenderText {#text} at (0,0) size 65x20
               text run at (0,0) width 65: "applesite"
-caret: position 0 of child 0 {#text} of child 1 {A} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {A} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-space-in-empty-doc-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-space-in-empty-doc-expected.txt
index 4ccc166..5c76d17 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-space-in-empty-doc-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-space-in-empty-doc-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 40x29
           text run at (14,14) width 40: " foo"
-caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-tab-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-tab-001-expected.txt
index 5f8a996..a015daa 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-tab-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-tab-001-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (21,14) size 33x29
             text run at (21,14) width 33: "foo"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-tab-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-tab-002-expected.txt
index cbe59dd..412d877 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-tab-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-tab-002-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 7x29
             RenderText {#text} at (47,14) size 7x29
               text run at (47,14) width 7: "\x{9}"
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-tab-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-tab-003-expected.txt
index 11fc4ce..2644bb9 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-tab-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-tab-003-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (41,14) size 13x31
             text run at (41,14) width 13: "o"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-tab-004-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-tab-004-expected.txt
index cf60faf..d114605 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-tab-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-tab-004-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (21,44) size 33x29
             text run at (21,44) width 33: "foo"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-001-expected.txt
index 18a7959..9002fbe 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-001-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (60,14) size 12x29
             text run at (60,14) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-002-expected.txt
index 8358703..bc2cd78 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-002-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (60,14) size 12x29
             text run at (60,14) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-003-expected.txt
index 784fc03..255ff98 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-text-at-tabspan-003-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (60,14) size 12x29
             text run at (60,14) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/insert-text-with-newlines-expected.txt b/LayoutTests/platform/qt/editing/inserting/insert-text-with-newlines-expected.txt
index 92ea58f..806506b 100644
--- a/LayoutTests/platform/qt/editing/inserting/insert-text-with-newlines-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/insert-text-with-newlines-expected.txt
@@ -65,4 +65,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (14,79) size 0x31
           RenderText {#text} at (14,111) size 74x31
             text run at (14,111) width 74: "bazxxx"
-caret: position 6 of child 6 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 6 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/line-break-expected.txt b/LayoutTests/platform/qt/editing/inserting/line-break-expected.txt
index 07fdea6..f10fc91 100644
--- a/LayoutTests/platform/qt/editing/inserting/line-break-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/line-break-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x40
           RenderBR {BR} at (0,0) size 0x20
           RenderBR {BR} at (0,20) size 0x20
-caret: position 0 of child 2 {BR} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-01-expected.txt b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-01-expected.txt
index 73c4a04..2cbcbbb 100644
--- a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-01-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-01-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (0,20) size 784x20
             RenderText {#text} at (0,0) size 23x20
               text run at (0,0) width 23: "bar"
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-02-expected.txt b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-02-expected.txt
index fdfa485..72b5d5c 100644
--- a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-02-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-02-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (0,20) size 784x20
             RenderText {#text} at (0,0) size 23x20
               text run at (0,0) width 23: "bar"
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt
index bc62dc1..e4b13c9 100644
--- a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 18x32
             text run at (0,0) width 0: " "
             text run at (0,16) width 18: "bar"
-caret: position 0 of child 0 {#text} of child 1 {PRE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {PRE} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-1-expected.txt b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-1-expected.txt
index a1da1fb..a5dff52 100644
--- a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-1-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
                 RenderInline {SPAN} at (0,0) size 31x20
                   RenderText {#text} at (2,22) size 31x20
                     text run at (2,22) width 31: "Two"
-caret: position 0 of child 0 {#text} of child 2 {SPAN} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {SPAN} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-2-expected.txt b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-2-expected.txt
index 31901dc..a37046b 100644
--- a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-in-table-2-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (41,12) size 39x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 35x20
                   text run at (2,2) width 35: " Two"
-caret: position 0 of child 2 {BR} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/redo-expected.txt b/LayoutTests/platform/qt/editing/inserting/redo-expected.txt
index 4e51345..717a008 100644
--- a/LayoutTests/platform/qt/editing/inserting/redo-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/redo-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x20
         RenderText {#text} at (0,0) size 334x20
           text run at (0,0) width 334: "The caret should be at the end of this sentence."
-caret: position 48 of child 0 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 48 of child 0 {#text} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-001-expected.txt
index fb92763..529bed0 100644
--- a/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-001-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,62) size 780x30
             RenderText {#text} at (0,0) size 38x29
               text run at (0,0) width 38: "baz"
-caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-002-expected.txt
index ebc17ff..3ada4c9 100644
--- a/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-002-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,62) size 780x30
             RenderText {#text} at (0,0) size 38x29
               text run at (0,0) width 38: "baz"
-caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-003-expected.txt
index d5e104d..3dc0773 100644
--- a/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/return-key-with-selection-003-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,92) size 780x30
             RenderText {#text} at (0,0) size 38x29
               text run at (0,0) width 38: "baz"
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/typing-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/typing-001-expected.txt
index f16dab5..98ba56b 100644
--- a/LayoutTests/platform/qt/editing/inserting/typing-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/typing-001-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 172x29
           RenderText {#text} at (14,14) size 172x29
             text run at (14,14) width 172: "xxxXXxxxXXxxx"
-caret: position 13 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 13 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/typing-002-expected.txt b/LayoutTests/platform/qt/editing/inserting/typing-002-expected.txt
index 753ac78..0a2f896 100644
--- a/LayoutTests/platform/qt/editing/inserting/typing-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/typing-002-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (98,14) size 34x30
               text run at (98,14) width 34: "bar"
         RenderText {#text} at (0,0) size 0x0
-caret: position 7 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/typing-003-expected.txt b/LayoutTests/platform/qt/editing/inserting/typing-003-expected.txt
index cf1c5dc..0058fad 100644
--- a/LayoutTests/platform/qt/editing/inserting/typing-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/typing-003-expected.txt
@@ -715,4 +715,4 @@ layer at (0,0) size 800x600
           text run at (743,74) width 7: " "
           text run at (14,104) width 364: "xxxxx xxxxxxxxxxxx xxxxxxxx xxx "
         RenderInline {SPAN} at (0,0) size 0x29
-caret: position 233 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 233 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/typing-around-br-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/typing-around-br-001-expected.txt
index 4ebecf3..9cd8592 100644
--- a/LayoutTests/platform/qt/editing/inserting/typing-around-br-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/typing-around-br-001-expected.txt
@@ -118,4 +118,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (50,217) size 0x0
           RenderText {#text} at (14,224) size 68x29
             text run at (14,224) width 68: "XXxxx"
-caret: position 5 of child 14 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 14 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/typing-around-image-001-expected.txt b/LayoutTests/platform/qt/editing/inserting/typing-around-image-001-expected.txt
index 45ef8c3..3ab2a41 100644
--- a/LayoutTests/platform/qt/editing/inserting/typing-around-image-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/typing-around-image-001-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
           RenderImage {IMG} at (293,14) size 76x103
           RenderText {#text} at (369,94) size 36x29
             text run at (369,94) width 36: "xxx"
-caret: position 3 of child 7 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 7 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/3976872-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/3976872-expected.txt
index f304b2a..95a07a6 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/3976872-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/3976872-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
           RenderInline {B} at (0,0) size 212x20
             RenderText {#text} at (1,1) size 212x20
               text run at (1,1) width 212: "this text should end up bold"
-caret: position 28 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 28 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4076267-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4076267-3-expected.txt
index 88518bb..66698d2 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4076267-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4076267-3-expected.txt
@@ -483,4 +483,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 56: "x          x"
         RenderBlock {DIV} at (0,200) size 784x20
           RenderBR {BR} at (0,0) size 0x20
-caret: position 0 of child 0 {BR} of child 10 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 10 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4242293-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4242293-1-expected.txt
index 696ac4e..ef644d1 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4242293-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4242293-1-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,19) size 784x19
             RenderText {#text} at (0,0) size 23x19
               text run at (0,0) width 23: "baz"
-caret: position 3 of child 1 {#text} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {#text} of child 1 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4242293-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4242293-expected.txt
index bc87c96..2ab1d1c 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4242293-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4242293-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,59) size 784x20
           RenderText {#text} at (0,0) size 26x20
             text run at (0,0) width 26: "baz"
-caret: position 3 of child 1 {#text} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {#text} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4631972-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4631972-expected.txt
index 374260e..ad49be8 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4631972-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4631972-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
             layer at (0,0) size 100x50
               RenderBlock {HTML} at (0,0) size 100x50
                 RenderBody {BODY} at (8,8) size 84x34
-caret: position 1 of child 1 {IFRAME} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {IFRAME} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4641033-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4641033-expected.txt
index 7b0ff0c..9c02088 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4641033-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4641033-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 9: "1"
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {SELECT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {SELECT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4700297-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4700297-expected.txt
index bc0d03e..ec7c874 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4700297-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4700297-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           text run at (46,0) width 48: "should"
         RenderText {#text} at (94,0) size 245x20
           text run at (94,0) width 245: " be no line breaks in this sentence."
-caret: position 6 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 1 {#text} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt
index af911a9..1ac715d 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
           text run at (217,4) width 4: ":"
 layer at (50,48) size 171x20
   RenderBlock {DIV} at (2,2) size 171x20
-caret: position 1 of child 1 {INPUT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {INPUT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4944770-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4944770-1-expected.txt
index f783971..f23a6e2 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4944770-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4944770-1-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (8,4) size 42x20
             RenderText at (0,0) size 9x20
               text run at (0,0) width 9: "1"
-caret: position 3 of child 1 {SELECT} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {SELECT} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4944770-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4944770-2-expected.txt
index 111e962..8438bf7 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4944770-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4944770-2-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           text run at (90,6) width 4: " "
         RenderText {#text} at (94,6) size 8x20
           text run at (94,6) width 8: "x"
-caret: position 1 of child 3 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 3 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/4989774-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4989774-expected.txt
index 712cf1b..936349e 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/4989774-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/4989774-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         text run at (0,124) width 490: "should see several pictures above all in the same line/paragraph."
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-caret: position 164 of child 4 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 164 of child 4 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5006779-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5006779-expected.txt
index 41290dc..7637b0e 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5006779-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5006779-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (0,80) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
           RenderText {#text} at (12,0) size 88x20
             text run at (12,0) width 88: "Hello World."
-caret: position 2 of child 1 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 1 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt
index 762ff46..bea28b8 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 255: "<input type='button'>foo<br>bar<b>baz</b>"
         RenderBlock (anonymous) at (0,29) size 784x0
           RenderInline {SPAN} at (0,0) size 0x0
-caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5028447-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5028447-expected.txt
index 7b733e1..1d49407 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5028447-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5028447-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
         text run at (164,31) width 7: " "
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-caret: position 43 of child 1 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 43 of child 1 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5032095-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5032095-expected.txt
index 8a37136..823d375 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5032095-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5032095-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 35: "hello"
         RenderText {#text} at (35,0) size 39x20
           text run at (35,0) width 39: "world"
-caret: position 5 of child 1 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 1 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5065605-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5065605-expected.txt
index ee091b3..7136afd 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5065605-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5065605-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,40) size 784x0
             RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
             RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
-caret: position 24 of child 0 {#text} of child 0 {FONT} of child 1 {DIV} of child 0 {FONT} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 24 of child 0 {#text} of child 0 {FONT} of child 1 {DIV} of child 0 {FONT} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5071074-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5071074-2-expected.txt
index ad20b78..13011c1 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5071074-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5071074-2-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (177,0) size 151x20
               text run at (177,0) width 151: "This should be a link."
         RenderBlock (anonymous) at (0,40) size 784x0
-caret: position 22 of child 0 {#text} of child 1 {A} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 22 of child 0 {#text} of child 1 {A} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5071074-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5071074-expected.txt
index f12fe19..e870140 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5071074-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5071074-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
         RenderInline {A} at (0,0) size 151x20 [color=#0000EE]
           RenderText {#text} at (0,0) size 151x20
             text run at (0,0) width 151: "This should be a link."
-caret: position 22 of child 0 {#text} of child 0 {A} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 22 of child 0 {#text} of child 0 {A} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5075944-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5075944-2-expected.txt
index b98d9f6..92d07aa 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5075944-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5075944-2-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 189x20 [color=#FF0000]
             RenderText {#text} at (0,0) size 189x20
               text run at (0,0) width 189: "This should be underlined."
-caret: position 26 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 26 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5075944-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5075944-3-expected.txt
index 5214fce..737c833 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5075944-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5075944-3-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (215,0) size 189x20
                 text run at (215,0) width 189: "This should be underlined."
         RenderBlock (anonymous) at (0,20) size 784x0
-caret: position 30 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 30 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5075944-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5075944-expected.txt
index 5192e04..57fe4b8 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5075944-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5075944-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderInline {U} at (0,0) size 189x20
           RenderText {#text} at (0,0) size 189x20
             text run at (0,0) width 189: "This should be underlined."
-caret: position 26 of child 0 {#text} of child 0 {U} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 26 of child 0 {#text} of child 0 {U} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5089327-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5089327-expected.txt
index f09136e..6bf0969 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5089327-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5089327-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (178,0) size 5x20
               text run at (178,0) width 5: ")"
         RenderBlock (anonymous) at (0,36) size 784x0
-caret: position 25 of child 1 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 25 of child 1 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5134759-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5134759-expected.txt
index 911ed10..a5d97ce 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5134759-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5134759-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (42,0) size 46x20
                 text run at (42,0) width 46: "World!"
         RenderBlock (anonymous) at (0,20) size 784x0
-caret: position 6 of child 0 {#text} of child 0 {DIV} of child 1 {SPAN} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 0 {#text} of child 0 {DIV} of child 1 {SPAN} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5156401-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5156401-1-expected.txt
index d103699..dfc56c4 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5156401-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5156401-1-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
                 RenderInline {A} at (0,0) size 151x20 [color=#0000EE]
                   RenderText {#text} at (2,2) size 151x20
                     text run at (2,2) width 151: "This should be a link."
-caret: position 21 of child 0 {#text} of child 0 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 21 of child 0 {#text} of child 0 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5247341-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5247341-expected.txt
index a4fe7be..3aa7e46 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5247341-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5247341-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 88: "Hello World!"
         RenderBlock {DIV} at (0,40) size 784x20
           RenderBR {BR} at (0,0) size 0x20
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5368833-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5368833-expected.txt
index 6a6fb81..f5a501a 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5368833-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5368833-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (42,16) size 0x0
         RenderBlock (anonymous) at (0,60) size 784x20
           RenderBR {BR} at (0,0) size 0x20
-caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt
index 14c3a6e..994afeb 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
                   text run at (51,2) width 24: "orld"
                 RenderText {#text} at (75,2) size 4x19
                   text run at (75,2) width 4: " "
-caret: position 4 of child 1 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 1 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5478250-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5478250-expected.txt
index 14fd6e4..fe563af 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5478250-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5478250-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 431x20
             RenderText {#text} at (0,0) size 431x20
               text run at (0,0) width 431: "This text should bold and left justified with \"Some text...\"."
-caret: position 61 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 61 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5483567-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5483567-expected.txt
index 6bdac83..473572b 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5483567-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5483567-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
           text run at (8,0) width 22: "foo"
         RenderText {#text} at (30,0) size 8x20
           text run at (30,0) width 8: "x"
-caret: position 3 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {#text} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5601583-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5601583-1-expected.txt
index bc0227e..315a925 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5601583-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5601583-1-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (38,16) size 0x0
           RenderText {#text} at (0,20) size 42x20
             text run at (0,20) width 42: "World"
-caret: position 5 of child 2 {#text} of child 0 {A} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 0 {A} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/8145-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/8145-1-expected.txt
index c9b6fb1..b592052 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/8145-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/8145-1-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,36) size 784x22 [border: (1px solid #000000)]
         RenderText {#text} at (1,1) size 79x20
           text run at (1,1) width 79: "foo bar baz"
-caret: position 11 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 11 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/8145-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/8145-2-expected.txt
index b752106..8803f9b 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/8145-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/8145-2-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (46,16) size 0x0
           RenderText {#text} at (0,20) size 26x20
             text run at (0,20) width 26: "baz"
-caret: position 3 of child 3 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 3 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/8145-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/8145-3-expected.txt
index 1ddf791..3cf8118 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/8145-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/8145-3-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (1,41) size 782x20
           RenderText {#text} at (0,0) size 18x20
             text run at (0,0) width 18: "oo"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt
index 9f81afb..d91f4ce 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (102,14) size 0x0
         RenderText {#text} at (0,19) size 122x19
           text run at (0,19) width 122: "Second paragraph."
-caret: position 11 of child 1 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 11 of child 1 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt
index 7143e04..baa6032 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt
@@ -98,4 +98,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (85,0) size 610x22
                   text run at (85,0) width 610: "Start browsing the topics below, or use the search field at the bottom of every page."
               RenderBlock (anonymous) at (0,168) size 780x0
-caret: position 85 of child 0 {#text} of child 1 {P} of child 1 {P} of child 1 {CENTER} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 85 of child 0 {#text} of child 1 {P} of child 1 {P} of child 1 {CENTER} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt
index 671a9a1..af747f5 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
               text run at (680,0) width 68 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
               text run at (748,0) width 36: "1234"
           RenderBlock (anonymous) at (0,40) size 784x0
-caret: position 9 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 9 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/cut-text-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/cut-text-001-expected.txt
index e2ad81c..abc39cd 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/cut-text-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/cut-text-001-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 85x29
             text run at (14,14) width 85: "foo  baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt
index d1c2e89..9c9558e 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/displaced-generic-placeholder-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 136x20
             text run at (0,0) width 136: "Second paragraph."
         RenderBlock (anonymous) at (0,40) size 784x0
-caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/displaced-placeholder-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/displaced-placeholder-expected.txt
index c09efbe..c40f448 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/displaced-placeholder-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/displaced-placeholder-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 136x20
             text run at (0,0) width 136: "Second paragraph."
         RenderBlock (anonymous) at (0,40) size 784x0
-caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/display-block-on-spans-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/display-block-on-spans-expected.txt
index 5b4919c..324e6e7 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/display-block-on-spans-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/display-block-on-spans-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
                   text run at (0,0) width 33: "This"
             RenderText {#text} at (33,0) size 167x20
               text run at (33,0) width 167: " is another paragraph."
-caret: position 4 of child 0 {#text} of child 0 {B} of child 0 {SPAN} of child 0 {B} of child 2 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 0 {B} of child 0 {SPAN} of child 0 {B} of child 2 {SPAN} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/drag-drop-dead-frame-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/drag-drop-dead-frame-expected.txt
index f0082bd..5ebecc6 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/drag-drop-dead-frame-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/drag-drop-dead-frame-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 0 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 3 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 0 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt
index 5b18c7e..9771d3a 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/emacs-cntl-y-001-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 192x29
             text run at (2,2) width 192: "one two three four"
-caret: position 7 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt
index 1bfff76..b95aa50 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt
@@ -28,4 +28,4 @@ layer at (13,47) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
 layer at (142,47) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-caret: position 1 of child 1 {INPUT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {INPUT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-1-expected.txt
index d850802..ccca7c5 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-1-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 0x0
           RenderText {#text} at (0,0) size 8x20
             text run at (0,0) width 8: "x"
-caret: position 0 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-3-expected.txt
index 2f7cd9e..f8120c5 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-3-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,136) size 784x20
         RenderText {#text} at (0,0) size 200x20
           text run at (0,0) width 200: "This is non-editable content."
-caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-4-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-4-expected.txt
index b17b9a6..6fc4f7a 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-4-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/interchange-newline-4-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,96) size 784x20
         RenderText {#text} at (0,0) size 89x20
           text run at (0,0) width 89: "non-editable"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt
index f9027d0..beb7fe4 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt
@@ -36,4 +36,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (3,27) size 774x22 [border: (1px solid #000000)]
           RenderText {#text} at (1,1) size 23x20
             text run at (1,1) width 23: "bar"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt
index e885d89..30577d6 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (3,27) size 774x22 [border: (1px solid #000000)]
           RenderText {#text} at (1,1) size 23x20
             text run at (1,1) width 23: "bar"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-expected.txt
index 5389dc9..dcd5e99 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-after-delete-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (1,31) size 774x0
         RenderBlock {DIV} at (5,31) size 766x22 [border: (1px solid #0000FF)]
           RenderBR {BR} at (1,1) size 0x20
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-1-expected.txt
index d06dbe6..8a7b616 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-1-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
               text run at (0,20) width 26: "baz"
             RenderText {#text} at (26,20) size 18x20
               text run at (26,20) width 18: "oo"
-caret: position 3 of child 3 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 3 {#text} of child 0 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-2-expected.txt
index f933603..dfaec34 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-2-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
               text run at (26,20) width 18: "oo"
           RenderText {#text} at (44,20) size 23x20
             text run at (44,20) width 23: "bar"
-caret: position 3 of child 3 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 3 {#text} of child 0 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-3-expected.txt
index 0a44940..f6a5f7b 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-3-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 25: "two"
           RenderText {#text} at (25,0) size 36x20
             text run at (25,0) width 36: "three"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-4-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-4-expected.txt
index ceecdca..02442d1 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-4-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-4-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 26: "baz"
           RenderText {#text} at (26,0) size 8x20
             text run at (26,0) width 8: "x"
-caret: position 3 of child 3 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 3 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-5-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-5-expected.txt
index e27cafb..573a59c 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-5-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-5-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
             text run at (36,1) width 260: "text should have a red border around"
           RenderText {#text} at (296,1) size 16x20
             text run at (296,1) width 16: " it."
-caret: position 36 of child 1 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 36 of child 1 {#text} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt
index da1573a..7db88f7 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-blockquote-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 23: "bar"
             RenderText {#text} at (23,0) size 31x20
               text run at (23,0) width 31: "Text"
-caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {BLOCKQUOTE} of child 10 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {BLOCKQUOTE} of child 10 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-borders-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-borders-expected.txt
index 7e291e2..3b4d0c2 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-borders-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-borders-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
             text run at (1,1) width 31: "This"
           RenderText {#text} at (32,1) size 303x20
             text run at (32,1) width 303: " text should be surrounded by a red border."
-caret: position 4 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-list-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-list-expected.txt
index 5f723e1..06bba87 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-list-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-list-expected.txt
@@ -55,4 +55,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 23: "bar"
               RenderText {#text} at (23,0) size 13x20
                 text run at (23,0) width 13: " 1"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 0 {LI} of child 0 {UL} of child 10 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 0 {LI} of child 0 {UL} of child 10 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-end-table-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-end-table-expected.txt
index 8de0f57..ff0c78f 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-end-table-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-end-table-expected.txt
@@ -62,4 +62,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (60,12) size 47x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 43x20
                   text run at (2,2) width 43: "Item 2"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 10 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 10 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt
index 3cace2b..563c8f0 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (40,0) size 704x22 [border: (1px solid #0000FF)]
           RenderText {#text} at (1,1) size 23x20
             text run at (1,1) width 23: "bar"
-caret: position 3 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/merge-start-list-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/merge-start-list-expected.txt
index d41c774..cda143b 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/merge-start-list-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/merge-start-list-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-18,0) size 7x20: bullet
             RenderText {#text} at (0,0) size 23x20
               text run at (0,0) width 23: "bar"
-caret: position 3 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt
index 7b8f7aa..0458c31 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt
@@ -35,4 +35,4 @@ layer at (303,68) size 182x38
   RenderBlock {DIV} at (1,1) size 182x38
     RenderText {#text} at (3,0) size 4x19
       text run at (3,0) width 4: " "
-caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt
index a4eac1c..6f8e093 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,86) size 784x0
 layer at (313,70) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt
index 108f783..726c0c9 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-4035648-fix-expected.txt
@@ -54,4 +54,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (54,56) size 0x0
           RenderText {#text} at (2,63) size 49x29
             text run at (2,63) width 49: "plain"
-caret: position 5 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt
index b208e51..f18ded3 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-4038267-fix-expected.txt
@@ -49,4 +49,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,32) size 780x30
             RenderText {#text} at (0,0) size 34x29
               text run at (0,0) width 34: "bar"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt
index e0d8086..334aca8 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-4039777-fix-expected.txt
@@ -77,4 +77,4 @@ layer at (0,0) size 800x600
               RenderBlock (anonymous) at (0,120) size 740x0
           RenderBlock {DIV} at (2,170) size 780x0
             RenderBlock {UL} at (0,0) size 780x0
-caret: position 1 of child 3 {#text} of child 0 {LI} of child 0 {UL} of child 1 {DIV} of child 0 {LI} of child 1 {UL} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 3 {#text} of child 0 {LI} of child 0 {UL} of child 1 {DIV} of child 0 {LI} of child 1 {UL} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt
index 2f38990..c64d9e8 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-1-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
           RenderText {#text} at (22,0) size 200x20
             text run at (22,0) width 200: "This should be blockquoted."
-caret: position 27 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 27 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt
index 7727197..7308e34 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-2-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 226: "This should not be blockquoted."
         RenderText {#text} at (226,0) size 230x20
           text run at (226,0) width 230: " This should not be blockquoted."
-caret: position 31 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 31 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt
index dfb739e..063ab45 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-3-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 226: "This should not be blockquoted."
           RenderText {#text} at (226,0) size 230x20
             text run at (226,0) width 230: " This should not be blockquoted."
-caret: position 31 of child 3 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 31 of child 3 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
index 6a7826c..e130a92 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (22,0) size 44x20
             text run at (22,0) width 44: "Line 2"
         RenderBlock (anonymous) at (0,40) size 784x0
-caret: position 6 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt
index 9c2b57c..7b6d4c7 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
                   text run at (0,0) width 42: "Three"
         RenderBlock (anonymous) at (0,40) size 784x0
           RenderInline {SPAN} at (0,0) size 0x0
-caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 0 {BLOCKQUOTE} of child 1 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 0 {BLOCKQUOTE} of child 1 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt
index 5185c7a..1c4f749 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (22,0) size 0x20
         RenderBlock (anonymous) at (0,136) size 784x20
           RenderBR {BR} at (0,0) size 0x20
-caret: position 3 of child 6 {#text} of child 3 {BLOCKQUOTE} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 6 {#text} of child 3 {BLOCKQUOTE} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
index b233c3f..c10a920 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,80) size 784x20
           RenderText {#text} at (0,0) size 33x20
             text run at (0,0) width 33: "Four"
-caret: position 4 of child 3 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 3 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
index d9f61cc..cc51069 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 42: "Three"
         RenderBlock (anonymous) at (0,40) size 784x0
           RenderInline {SPAN} at (0,0) size 0x0
-caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 1 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt
index 10e50bb..d2bfd72 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-001-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (84,25) size 0x0
           RenderText {#text} at (2,32) size 80x29
             text run at (2,32) width 80: "line two"
-caret: position 0 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt
index f0a65a7..d68f3c5 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-002-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,32) size 780x30
             RenderText {#text} at (0,0) size 80x29
               text run at (0,0) width 80: "line two"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt
index 498656a..3126729 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-003-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,32) size 780x30
             RenderText {#text} at (0,0) size 80x29
               text run at (0,0) width 80: "line two"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt
index 539b27b..5542ab3 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-004-expected.txt
@@ -49,4 +49,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (0,30) size 780x30
               RenderText {#text} at (0,0) size 80x29
                 text run at (0,0) width 80: "line two"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt
index 5e251f6..2d65724 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-005-expected.txt
@@ -49,4 +49,4 @@ layer at (0,0) size 800x600
             RenderBlock (anonymous) at (0,30) size 780x30
               RenderText {#text} at (0,0) size 80x29
                 text run at (0,0) width 80: "line two"
-caret: position 0 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt
index 0972841..ecd58d6 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-006-expected.txt
@@ -51,4 +51,4 @@ layer at (0,0) size 800x600
             text run at (2,32) width 5: "l"
           RenderText {#text} at (7,32) size 75x29
             text run at (7,32) width 75: "ine two"
-caret: position 1 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt
index befda5a..9975123 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-007-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 5: "l"
             RenderText {#text} at (5,0) size 75x29
               text run at (5,0) width 75: "ine two"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt
index 9a4952e..bf070b3 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-008-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 5: "l"
             RenderText {#text} at (5,0) size 75x29
               text run at (5,0) width 75: "ine two"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt
index 830ba23..3a7c21a 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-009-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 5: "l"
               RenderText {#text} at (5,0) size 75x29
                 text run at (5,0) width 75: "ine two"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt
index 77d59c1..8591793 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-line-endings-010-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 5: "l"
               RenderText {#text} at (5,0) size 75x29
                 text run at (5,0) width 75: "ine two"
-caret: position 1 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-list-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-list-001-expected.txt
index 002d7f4..d757153 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-list-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-list-001-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 230x29
                   text run at (0,0) width 230: "I should be number 3."
             RenderBlock (anonymous) at (0,120) size 716x0
-caret: position 21 of child 0 {#text} of child 2 {LI} of child 1 {OL} of child 5 {LI} of child 4 {OL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 21 of child 0 {#text} of child 2 {LI} of child 1 {OL} of child 5 {LI} of child 4 {OL} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-001-expected.txt
index c8e7737..655e084 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-001-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderInline {B} at (0,0) size 28x31
             RenderText {#text} at (2,2) size 28x31
               text run at (2,2) width 28: "ab"
-caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-002-expected.txt
index 1896891..3723638 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-match-style-002-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
           RenderInline {B} at (0,0) size 57x31
             RenderText {#text} at (2,2) size 57x31
               text run at (2,2) width 57: "hello"
-caret: position 5 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt
index 1b9cd26..337e1f5 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt
@@ -57,4 +57,4 @@ layer at (0,0) size 800x600
                   text run at (0,30) width 34: "bar"
             RenderBlock (anonymous) at (0,84) size 780x0
               RenderInline {SPAN} at (0,0) size 0x0
-caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt
index 51cbfb6..86de35a 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt
@@ -36,4 +36,4 @@ layer at (0,0) size 800x600
                   text run at (0,16) width 18: "bar"
             RenderBlock (anonymous) at (0,45) size 784x0
               RenderInline {SPAN} at (0,0) size 0x0
-caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-table-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-table-001-expected.txt
index ec2a0b2..3236719 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-table-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-table-001-expected.txt
@@ -84,4 +84,4 @@ layer at (0,0) size 800x600
                     text run at (2,2) width 216: "I should be in the right column."
           RenderBlock (anonymous) at (0,116) size 756x0
             RenderText {#text} at (0,0) size 0x0
-caret: position 32 of child 0 {#text} of child 1 {TD} of child 1 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 3 {P} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 32 of child 0 {#text} of child 1 {TD} of child 1 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 3 {P} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-table-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-table-003-expected.txt
index 9fb1261..b46ee06 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-table-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-table-003-expected.txt
@@ -49,4 +49,4 @@ layer at (0,0) size 800x600
                 RenderBR {BR} at (26,17) size 0x0
                 RenderBR {BR} at (1,21) size 0x20
         RenderBlock (anonymous) at (0,46) size 784x0
-caret: position 0 of child 2 {BR} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-table-cells-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-table-cells-expected.txt
index fd3a70a..1d46f8d 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-table-cells-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-table-cells-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (1,1) size 39x20
                   text run at (1,1) width 39: "world"
         RenderBlock (anonymous) at (0,26) size 784x0
-caret: position 5 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-002-expected.txt
index c00f8c4..ae53ddf 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-002-expected.txt
@@ -85,4 +85,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,232) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 386x29
           text run at (14,14) width 386: "Is bound in shallows and in miseries."
-caret: position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 11 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-003-expected.txt
index f4feebf..1b14bd7 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-003-expected.txt
@@ -137,4 +137,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (14,44) size 700x58 [border: (2px solid #FF0000)]
               RenderText {#text} at (14,14) size 386x29
                 text run at (14,14) width 386: "Is bound in shallows and in miseries."
-caret: position 7 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-004-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-004-expected.txt
index 9d69e79..45836fe 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-004-expected.txt
@@ -63,4 +63,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,174) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 386x29
           text run at (14,14) width 386: "Is bound in shallows and in miseries."
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-005-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-005-expected.txt
index 3b983ad..795f300 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-005-expected.txt
@@ -69,4 +69,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,232) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 386x29
           text run at (14,14) width 386: "Is bound in shallows and in miseries."
-caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-006-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-006-expected.txt
index 05ab7f3..03c1285 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-006-expected.txt
@@ -68,4 +68,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,232) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 386x29
           text run at (14,14) width 386: "Is bound in shallows and in miseries."
-caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-007-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-007-expected.txt
index 32ed359..2036e7a 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-007-expected.txt
@@ -71,4 +71,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (14,44) size 700x58 [border: (2px solid #FF0000)]
               RenderText {#text} at (14,14) size 386x29
                 text run at (14,14) width 386: "Is bound in shallows and in miseries."
-caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-009-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-009-expected.txt
index 2113e68..daebd86 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-009-expected.txt
@@ -108,4 +108,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 17: "U"
         RenderText {#text} at (31,14) size 398x29
           text run at (31,14) width 398: "pon such a full sea are we now afloat,"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-010-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-010-expected.txt
index 208359c..0d2efb9 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-010-expected.txt
@@ -73,4 +73,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 7 of child 4 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 4 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-011-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-011-expected.txt
index 24158da..de6313c 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-011-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-011-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
             RenderInline {B} at (0,0) size 0x0
           RenderInline {FONT} at (0,0) size 0x0
             RenderInline {B} at (0,0) size 0x0
-caret: position 5 of child 0 {#text} of child 0 {B} of child 0 {FONT} of child 1 {P} of child 0 {B} of child 0 {FONT} of child 4 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 0 {B} of child 0 {FONT} of child 1 {P} of child 0 {B} of child 0 {FONT} of child 4 {P} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-012-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-012-expected.txt
index 129daa0..87f63cb 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-012-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-012-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (14,92) size 728x30
             RenderBR {BR} at (0,0) size 0x29
         RenderBlock (anonymous) at (14,150) size 756x0
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 0 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 0 {DIV} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-013-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-013-expected.txt
index 0a1f181..4aa854d 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-013-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-013-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 33: "foo"
         RenderBlock {DIV} at (14,92) size 756x30
           RenderBR {BR} at (0,0) size 0x29
-caret: position 0 of child 0 {BR} of child 1 {DIV} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 8 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-014-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-014-expected.txt
index b5058a0..29bbc44 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-014-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-014-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,276) size 784x58 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x29
           text run at (14,14) width 12: "x"
-caret: position 0 of child 0 {#text} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 8 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-015-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-015-expected.txt
index e3af96c..38a161e 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-015-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-015-expected.txt
@@ -50,4 +50,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 34x29
                   text run at (0,0) width 34: "bar"
               RenderBlock (anonymous) at (0,60) size 756x0
-caret: position 3 of child 0 {#text} of child 1 {P} of child 2 {P} of child 0 {P} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {P} of child 2 {P} of child 0 {P} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-016-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-016-expected.txt
index be93b25..3a8f27c 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-016-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-016-expected.txt
@@ -65,4 +65,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 7: " "
           RenderBlock {P} at (14,194) size 756x30
             RenderBR {BR} at (0,0) size 0x29
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 0 {P} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 0 {P} of child 1 {DIV} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-017-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-017-expected.txt
index 9105a71..22677db 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-017-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-017-expected.txt
@@ -51,4 +51,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,122) size 780x30
             RenderText {#text} at (0,0) size 54x29
               text run at (0,0) width 54: "three"
-caret: position 0 of child 0 {BR} of child 6 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 6 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-018-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-018-expected.txt
index aefedeb..2f1d703 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-018-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-018-expected.txt
@@ -54,4 +54,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (84,25) size 0x0
           RenderText {#text} at (2,32) size 80x29
             text run at (2,32) width 80: "line two"
-caret: position 8 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt
index 105b423..781b1fe 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt
@@ -56,4 +56,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (87,2) size 82x29
             text run at (87,2) width 82: " bazBar"
         RenderText {#text} at (0,0) size 0x0
-caret: position 7 of child 1 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 1 {#text} of child 1 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
index 425a8c5..bf2beac 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (73,14) size 12x29
             text run at (73,14) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 2 of child 0 {#text} of child 0 {SPAN} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 0 {SPAN} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt
index 7e0f66a..53cd29f 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-002-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (73,14) size 12x29
             text run at (73,14) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 2 of child 0 {#text} of child 0 {SPAN} of child 2 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 0 {SPAN} of child 2 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt
index 1476928..bf57aff 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-at-tabspan-003-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (73,14) size 12x29
             text run at (73,14) width 12: "z"
         RenderText {#text} at (0,0) size 0x0
-caret: position 2 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt
index b1bab5e..62b4139 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           text run at (38,0) width 4: " "
         RenderText {#text} at (42,0) size 42x20
           text run at (42,0) width 42: "World"
-caret: position 5 of child 2 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-xml-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-xml-expected.txt
index 0e48a99..4cef9fd 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-xml-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-xml-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x72
           RenderText {#text} at (14,14) size 140x28
             text run at (14,14) width 140: "foo barbar baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 10 of child 0 {#text} of child 1 {span} of child 1 {div} of child 3 {body} of child 1 {html} of document
+caret: position 10 of child 0 {#text} of child 1 {span} of child 1 {div} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/pasting-object-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/pasting-object-expected.txt
index 33e552e..a24d50e 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/pasting-object-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/pasting-object-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderEmbeddedObject {OBJECT} at (38,0) size 302x152 [border: (1px solid #AAAAAA)]
         RenderText {#text} at (340,136) size 50x20
           text run at (340,136) width 50: " World!"
-caret: position 1 of child 1 {OBJECT} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {OBJECT} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/pasting-tabs-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/pasting-tabs-expected.txt
index e3d30e6..5513a12 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/pasting-tabs-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/pasting-tabs-expected.txt
@@ -33,4 +33,4 @@ layer at (11,63) size 182x38
   RenderBlock {DIV} at (1,1) size 182x38
     RenderText {#text} at (3,0) size 80x19
       text run at (3,0) width 80: "Tab->\x{9}<-Tab"
-caret: position 5 of child 2 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt
index 5137be7..7283f04 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (1,1) size 601x20
             text run at (1,1) width 601: "This paragraph and the empty line should have be in their own divs with a red border."
         RenderBlock (anonymous) at (1,71) size 778x0
-caret: position 85 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 85 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt
index 8d7ae11..c216386 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/quirks-mode-br-1-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (418,16) size 0x0
         RenderBlock (anonymous) at (0,20) size 784x20
           RenderBR {BR} at (0,0) size 0x20
-caret: position 0 of child 1 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/select-element-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/select-element-1-expected.txt
index 27cdc71..9186a0d 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/select-element-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/select-element-1-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
           RenderListMarker at (-18,0) size 7x20: bullet
           RenderText {#text} at (0,0) size 54x20
             text run at (0,0) width 54: "Passed"
-caret: position 35 of child 0 {SELECT} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 35 of child 0 {SELECT} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-001-expected.txt
index 017938c..2dbd782 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-001-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
             text run at (41,2) width 46: " test"
         RenderBlock (anonymous) at (0,34) size 784x0
           RenderText {#text} at (0,0) size 0x0
-caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-002-expected.txt
index 2888cf0..11f91db 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-002-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
             text run at (2,2) width 46: "test "
           RenderText {#text} at (48,2) size 39x29
             text run at (48,2) width 39: "test"
-caret: position 5 of child 0 {#text} of child 0 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-003-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-003-expected.txt
index 3751ceb..e70ab12 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-003-expected.txt
@@ -43,4 +43,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (87,2) size 46x29
             text run at (87,2) width 46: " test"
         RenderBlock (anonymous) at (0,34) size 784x0
-caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-004-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-004-expected.txt
index 829fc59..a488770 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-004-expected.txt
@@ -43,4 +43,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (94,2) size 39x29
             text run at (94,2) width 39: "test"
         RenderBlock (anonymous) at (0,34) size 784x0
-caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-005-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-005-expected.txt
index 3c1c91f..b275609 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-005-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (75,2) size 19x29
             text run at (75,2) width 19: "st"
         RenderBlock (anonymous) at (0,34) size 784x0
-caret: position 6 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-006-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-006-expected.txt
index 55daa43..812eb49 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-006-expected.txt
@@ -51,4 +51,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (49,2) size 8x29
             text run at (49,2) width 8: "-"
         RenderBlock (anonymous) at (0,34) size 784x0
-caret: position 4 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-007-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-007-expected.txt
index 3c71057..56bd2da 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-007-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (55,2) size 7x29
             text run at (55,2) width 7: "."
         RenderBlock (anonymous) at (0,34) size 784x0
-caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/styled-element-markup-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/styled-element-markup-expected.txt
index 819c3a9..dea93d0 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/styled-element-markup-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/styled-element-markup-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
           RenderImage {IMG} at (354,0) size 76x103
       RenderBlock {DIV} at (0,217) size 784x103
         RenderImage {IMG} at (0,0) size 76x103
-caret: position 1 of child 0 {IMG} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {IMG} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/testcase-9507-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/testcase-9507-expected.txt
index 227e143..e9c3d8e 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/testcase-9507-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/testcase-9507-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 34: "bar"
           RenderBlock (anonymous) at (2,62) size 780x0
           RenderBlock {DIV} at (2,62) size 780x0 [color=#FF0000]
-caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/undoable-fragment-removes-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/undoable-fragment-removes-expected.txt
index dd84748..ecd816b 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/undoable-fragment-removes-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/undoable-fragment-removes-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 23: "bar"
       RenderBlock {DIV} at (0,108) size 784x22 [border: (1px solid #000000)]
         RenderBR {BR} at (1,1) size 0x20
-caret: position 0 of child 0 {BR} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/unrendered-br-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/unrendered-br-expected.txt
index 7c4dea3..183c66d 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/unrendered-br-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/unrendered-br-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 136x20
             text run at (0,0) width 136: "Second paragraph."
         RenderBlock (anonymous) at (0,40) size 784x0
-caret: position 17 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 17 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/13804-expected.txt b/LayoutTests/platform/qt/editing/selection/13804-expected.txt
index 7b94a86..223d36d 100644
--- a/LayoutTests/platform/qt/editing/selection/13804-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/13804-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x19
         RenderText {#text} at (0,0) size 302x19
           text run at (0,0) width 302: "This sentence ends with a misspelled word asd."
-caret: position 40 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 40 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt
index f635c2c..e673ab9 100644
--- a/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt
@@ -148,5 +148,5 @@ layer at (0,0) size 800x600
               text run at (362,0) width 59: "\x{A9}2005 Google"
 layer at (171,92) size 442x19
   RenderBlock {DIV} at (3,3) size 442x19
-selection start: position 0 of child 3 {INPUT} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 2 {BR} of child 0 {FONT} of child 2 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 3 {INPUT} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
+selection end:   position 1 of child 2 {BR} of child 0 {FONT} of child 2 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-expected.txt b/LayoutTests/platform/qt/editing/selection/3690703-expected.txt
index dd3181b..116866a 100644
--- a/LayoutTests/platform/qt/editing/selection/3690703-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/3690703-expected.txt
@@ -150,5 +150,5 @@ layer at (0,0) size 800x600
               text run at (362,0) width 59: "\x{A9}2005 Google"
 layer at (171,92) size 442x19
   RenderBlock {DIV} at (3,3) size 442x19
-selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
+selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of body
diff --git a/LayoutTests/platform/qt/editing/selection/3690719-expected.txt b/LayoutTests/platform/qt/editing/selection/3690719-expected.txt
index 8cd01ef..2d9a298 100644
--- a/LayoutTests/platform/qt/editing/selection/3690719-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/3690719-expected.txt
@@ -142,5 +142,5 @@ layer at (0,0) size 800x600
               text run at (362,0) width 59: "\x{A9}2005 Google"
 layer at (171,92) size 442x19
   RenderBlock {DIV} at (3,3) size 442x19
-selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
+selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4397952-expected.txt b/LayoutTests/platform/qt/editing/selection/4397952-expected.txt
index b432ccf..b61959f 100644
--- a/LayoutTests/platform/qt/editing/selection/4397952-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4397952-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             RenderText at (0,0) size 19x17
               text run at (0,0) width 19: "Bar"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 2 {INPUT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {INPUT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4402375-expected.txt b/LayoutTests/platform/qt/editing/selection/4402375-expected.txt
index af38a13..fe53f6e 100644
--- a/LayoutTests/platform/qt/editing/selection/4402375-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4402375-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (708,0) size 76x103
         RenderText {#text} at (0,0) size 181x19
           text run at (0,0) width 181: "This text should be selected."
-selection start: position 0 of child 1 {#text} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 29 of child 1 {#text} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {#text} of child 6 {DIV} of body
+selection end:   position 29 of child 1 {#text} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4818145-expected.txt b/LayoutTests/platform/qt/editing/selection/4818145-expected.txt
index 3a25d94..2aea1c7 100644
--- a/LayoutTests/platform/qt/editing/selection/4818145-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4818145-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 24x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 20x19
                   text run at (2,2) width 20: "foo"
-selection start: position 0 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {TABLE} of child 2 {DIV} of body
+selection end:   position 1 of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4866671-expected.txt b/LayoutTests/platform/qt/editing/selection/4866671-expected.txt
index d63ff30..ea74ea7 100644
--- a/LayoutTests/platform/qt/editing/selection/4866671-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4866671-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
             text run at (7,0) width 24: "yyy"
         RenderText {#text} at (31,0) size 7x19
           text run at (31,0) width 7: "x"
-caret: position 0 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4889598-expected.txt b/LayoutTests/platform/qt/editing/selection/4889598-expected.txt
index d996495..d695d51 100644
--- a/LayoutTests/platform/qt/editing/selection/4889598-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4889598-expected.txt
@@ -62,4 +62,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,48) size 784x19
           RenderText {#text} at (0,0) size 254x19
             text run at (0,0) width 254: "Click anywhere in this line and move up."
-caret: position 6 of child 0 {#text} of child 1 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 3 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 0 {#text} of child 1 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 3 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt
index a33f7c3..d71f4d9 100644
--- a/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderListMarker at (-17,0) size 7x19: bullet
           RenderText {#text} at (0,0) size 53x19
             text run at (0,0) width 53: "Success"
-caret: position 4 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt
index beca80c..60fd269 100644
--- a/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 23: "baz"
 layer at (13,104) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-1-expected.txt b/LayoutTests/platform/qt/editing/selection/4932260-1-expected.txt
index 592730d..37a6ebf 100644
--- a/LayoutTests/platform/qt/editing/selection/4932260-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4932260-1-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (131,0) size 76x103
         RenderText {#text} at (207,89) size 210x19
           text run at (207,89) width 210: "at the beginning of this sentence."
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt
index 12e95dc..38eb8f4 100644
--- a/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (25,0) size 76x103
         RenderText {#text} at (101,89) size 373x19
           text run at (101,89) width 373: "caret should be just after the second word in this sentence."
-caret: position 5 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt
index 0fd3ed4..2c7a894 100644
--- a/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (390,0) size 76x103
         RenderText {#text} at (466,89) size 62x19
           text run at (466,89) width 62: "sentence."
-caret: position 59 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 59 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4960116-expected.txt b/LayoutTests/platform/qt/editing/selection/4960116-expected.txt
index dfac16b..c4b3567 100644
--- a/LayoutTests/platform/qt/editing/selection/4960116-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4960116-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
           text run at (364,19) width 415: "For example, set the caret inside of an editable div, and make the"
           text run at (0,38) width 489: "div invisible, then try to move the selection forward/backward by a paragraph."
       RenderBlock {DIV} at (0,71) size 784x19
-caret: position 0 of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4983858-expected.txt b/LayoutTests/platform/qt/editing/selection/4983858-expected.txt
index 6cf29e8..0ffe69c 100644
--- a/LayoutTests/platform/qt/editing/selection/4983858-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4983858-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,38) size 784x19
         RenderText {#text} at (0,0) size 20x19
           text run at (0,0) width 20: "foo"
-selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5007143-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5007143-2-expected.txt
index 0f19ab4..39f31dc 100644
--- a/LayoutTests/platform/qt/editing/selection/5007143-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5007143-2-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,57) size 21x19
           text run at (0,57) width 21: "xxx"
         RenderBR {BR} at (21,71) size 0x0
-caret: position 3 of child 6 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 6 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5007143-expected.txt b/LayoutTests/platform/qt/editing/selection/5007143-expected.txt
index a5afaeb..02ad0ec 100644
--- a/LayoutTests/platform/qt/editing/selection/5007143-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5007143-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,57) size 21x19
           text run at (0,57) width 21: "xxx"
         RenderBR {BR} at (21,71) size 0x0
-caret: position 2 of child 6 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 6 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt
index 2f9030b..c003071 100644
--- a/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,112) size 784x19
         RenderText {#text} at (0,0) size 571x19
           text run at (0,0) width 571: "In the above editable region, you should see 'foo' in the bordered table and 'bar' outside it."
-caret: position 3 of child 1 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt
index eacd0fb..87c8da9 100644
--- a/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 22x21 [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 20x19
                   text run at (1,1) width 20: "foo"
-caret: position 0 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt
index f9c38af..4fb9acc 100644
--- a/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 22x21 [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 20x19
                   text run at (1,1) width 20: "foo"
-caret: position 1 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5081257-1-expected.txt b/LayoutTests/platform/qt/editing/selection/5081257-1-expected.txt
index 1d73a18..82a54ad 100644
--- a/LayoutTests/platform/qt/editing/selection/5081257-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5081257-1-expected.txt
@@ -9,4 +9,4 @@ layer at (0,0) size 800x600
           text run at (0,19) width 249: "document's body element *is* editable. "
           text run at (249,19) width 531: "The expected behavior is to create a selection at [body, 0]. There should be a caret "
           text run at (0,38) width 184: "at the start of this paragraph."
-caret: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {P} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5081257-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5081257-2-expected.txt
index e035978..78d604a 100644
--- a/LayoutTests/platform/qt/editing/selection/5081257-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5081257-2-expected.txt
@@ -8,4 +8,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 518: "This tests for setting the selection at a position inside a document in designMode. "
           text run at (518,0) width 262: "You should see a caret at the start of the "
           text run at (0,19) width 35: "body."
-caret: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {P} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5099303-expected.txt b/LayoutTests/platform/qt/editing/selection/5099303-expected.txt
index 645484b..bb9b87b 100644
--- a/LayoutTests/platform/qt/editing/selection/5099303-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5099303-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
             text run at (7,0) width 14: "xx"
         RenderText {#text} at (21,0) size 7x19
           text run at (21,0) width 7: "x"
-selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 1 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt
index d6955e8..b232055 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,74) size 732x19
           RenderText {#text} at (0,0) size 102x19
             text run at (0,0) width 102: "Paragraph Two."
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt
index aa23bbd..ffd394b 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,74) size 732x19
           RenderText {#text} at (0,0) size 102x19
             text run at (0,0) width 102: "Paragraph Two."
-caret: position 0 of child 3 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt
index 5361ea1..9ef8f8e 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,74) size 732x19
           RenderText {#text} at (0,0) size 102x19
             text run at (0,0) width 102: "Paragraph Two."
-caret: position 0 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt
index 2e2389b..bf734ad 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,74) size 732x19
           RenderText {#text} at (0,0) size 102x19
             text run at (0,0) width 102: "Paragraph Two."
-caret: position 14 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 14 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5195166-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5195166-2-expected.txt
index 23f07a2..6e0a106 100644
--- a/LayoutTests/platform/qt/editing/selection/5195166-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5195166-2-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 406x20
           text run at (0,0) width 406: "There should be five characters selected in this sentence."
       RenderBlock {UL} at (0,72) size 784x0
-selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5234383-1-expected.txt b/LayoutTests/platform/qt/editing/selection/5234383-1-expected.txt
index 61812a1..83534a9 100644
--- a/LayoutTests/platform/qt/editing/selection/5234383-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5234383-1-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 769: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc a augue. Pellentesque habitant morbi tristique senectus et "
           text run at (0,19) width 740: "netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit. "
           text run at (0,38) width 660: "Vestibulum arcu lacus, blandit ac, condimentum sed, commodo in, arcu. Curabitur suscipit pede eu sem."
-caret: position 72 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 72 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5234383-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5234383-2-expected.txt
index da748ab..aea3f06 100644
--- a/LayoutTests/platform/qt/editing/selection/5234383-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5234383-2-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 769: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc a augue. Pellentesque habitant morbi tristique senectus et "
           text run at (0,19) width 740: "netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit. "
           text run at (0,38) width 660: "Vestibulum arcu lacus, blandit ac, condimentum sed, commodo in, arcu. Curabitur suscipit pede eu sem."
-caret: position 241 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 241 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5240265-expected.txt b/LayoutTests/platform/qt/editing/selection/5240265-expected.txt
index 1d74894..32074ca 100644
--- a/LayoutTests/platform/qt/editing/selection/5240265-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5240265-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,103) size 784x19
         RenderText {#text} at (0,0) size 181x19
           text run at (0,0) width 181: "This text should be selected."
-selection start: position 0 of child 0 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 29 of child 0 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 4 {DIV} of body
+selection end:   position 29 of child 0 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/6476-expected.txt b/LayoutTests/platform/qt/editing/selection/6476-expected.txt
index ad4f885..96f23f3 100644
--- a/LayoutTests/platform/qt/editing/selection/6476-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/6476-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
           text run at (326,0) width 444: "To run it manually, click in the space after all the text on the first line in"
           text run at (0,19) width 169: "the above editable region. "
           text run at (169,19) width 392: "Clicking should create a caret after the first space after the 'e'."
-caret: position 1 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/7152-1-expected.txt b/LayoutTests/platform/qt/editing/selection/7152-1-expected.txt
index 3fe91a3..c6d2fd1 100644
--- a/LayoutTests/platform/qt/editing/selection/7152-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/7152-1-expected.txt
@@ -30,5 +30,5 @@ layer at (0,0) size 800x600
             RenderTableCell {TD} at (2,27) size 158x23 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (2,2) size 154x19
                 text run at (2,2) width 154: "This should be selected."
-selection start: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 5 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {P} of body
+selection end:   position 1 of child 5 {TABLE} of body
diff --git a/LayoutTests/platform/qt/editing/selection/7152-2-expected.txt b/LayoutTests/platform/qt/editing/selection/7152-2-expected.txt
index 43db6eb..8fcd319 100644
--- a/LayoutTests/platform/qt/editing/selection/7152-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/7152-2-expected.txt
@@ -32,5 +32,5 @@ layer at (0,0) size 800x600
           text run at (0,38) width 106: "an atomic node. "
           text run at (106,38) width 629: "It didn't make the same assumption about start of a selection, but for good measure, we also test a "
           text run at (0,57) width 300: "selection that starts at a position before a table."
-selection start: position 0 of child 1 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 341 of child 2 {#text} of child 5 {P} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {TABLE} of body
+selection end:   position 341 of child 2 {#text} of child 5 {P} of body
diff --git a/LayoutTests/platform/qt/editing/selection/addRange-expected.txt b/LayoutTests/platform/qt/editing/selection/addRange-expected.txt
index 8e9f22f..a7170eb 100644
--- a/LayoutTests/platform/qt/editing/selection/addRange-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/addRange-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x19
         RenderText {#text} at (0,0) size 72x19
           text run at (0,0) width 72: "123456789"
-selection start: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 2 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 6 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt
index f88edcd..8cc4b81 100644
--- a/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt
@@ -36,5 +36,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (1,20) size 152x19
             text run at (1,20) width 152: "try to select just this text"
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {I} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 1 {I} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {I} of child 7 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 1 {I} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt
index 24e853c..b0fa957 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 27: "One"
         RenderText {#text} at (111,39) size 27x19
           text run at (111,39) width 27: "blaa"
-caret: position 0 of child 0 {SELECT} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {SELECT} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/caret-rtl-2-expected.txt b/LayoutTests/platform/qt/editing/selection/caret-rtl-2-expected.txt
index 862b3be..ff50174 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-rtl-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/caret-rtl-2-expected.txt
@@ -19,4 +19,4 @@ layer at (10,70) size 152x21
   RenderBlock (positioned) {DIV} at (10,70) size 152x21 [border: (1px solid #000000)]
     RenderText {#text} at (1,1) size 88x19
       text run at (1,1) width 88 RTL: "\x{5E9}\x{5D3}\x{5D4} \x{5D1}\x{5D5}\x{5E8}"
-caret: position 0 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/caret-rtl-expected.txt b/LayoutTests/platform/qt/editing/selection/caret-rtl-expected.txt
index 0dbadf1..31a1e2a 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-rtl-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/caret-rtl-expected.txt
@@ -19,4 +19,4 @@ layer at (10,70) size 152x21
   RenderBlock (positioned) {DIV} at (10,70) size 152x21 [border: (1px solid #000000)]
     RenderText {#text} at (63,1) size 88x19
       text run at (63,1) width 88 RTL: "\x{5E9}\x{5D3}\x{5D4} \x{5D1}\x{5D5}\x{5E8}"
-caret: position 7 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/display-table-text-expected.txt b/LayoutTests/platform/qt/editing/selection/display-table-text-expected.txt
index 952a57a..6216280 100644
--- a/LayoutTests/platform/qt/editing/selection/display-table-text-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/display-table-text-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
             RenderTableCell (anonymous) at (0,0) size 350x19 [r=0 c=0 rs=1 cs=1]
               RenderText {#text} at (0,0) size 350x19
                 text run at (0,0) width 350: "Only the third word in this sentence should be selected."
-selection start: position 9 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 14 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 9 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 14 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/editable-html-element-expected.txt b/LayoutTests/platform/qt/editing/selection/editable-html-element-expected.txt
index e09ce04..6847f16 100644
--- a/LayoutTests/platform/qt/editing/selection/editable-html-element-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/editable-html-element-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
         text run at (0,19) width 519: "We set it inside the body because we don't want to allow editing outside the body. "
         text run at (519,19) width 263: "This test also does some editing to make "
         text run at (0,38) width 176: "sure it happens in the body."
-caret: position 153 of child 3 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 153 of child 3 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/selection/editable-non-editable-crash-expected.txt b/LayoutTests/platform/qt/editing/selection/editable-non-editable-crash-expected.txt
index def9ee0..1c51f41 100644
--- a/LayoutTests/platform/qt/editing/selection/editable-non-editable-crash-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/editable-non-editable-crash-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (2,2) size 760x38
                   text run at (2,2) width 760: "This tests for a Mail crasher that happened when a selection was created with one endpoint in non-editable content and "
                   text run at (2,21) width 181: "the other in editable content."
-caret: position 0 of child 0 {TABLE} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {TABLE} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/end-of-document-expected.txt b/LayoutTests/platform/qt/editing/selection/end-of-document-expected.txt
index c7ff513..e2077b0 100644
--- a/LayoutTests/platform/qt/editing/selection/end-of-document-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/end-of-document-expected.txt
@@ -73,4 +73,4 @@ layer at (0,0) size 800x600
               RenderBR {BR} at (0,0) size 0x19
         RenderBlock (anonymous) at (0,313) size 784x19
           RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 6 {DIV} of child 2 {BLOCKQUOTE} of child 1 {DIV} of child 1 {DIV} of child 3 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 6 {DIV} of child 2 {BLOCKQUOTE} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-character-001-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-character-001-expected.txt
index 93bd343..0a27b43 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-character-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-character-001-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
             text run at (61,14) width 41: "bar "
             text run at (102,14) width 38: "baz"
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 14 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 14 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-character-002-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-character-002-expected.txt
index e7ca324..61f3a4c 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-character-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-character-002-expected.txt
@@ -61,5 +61,5 @@ layer at (0,0) size 800x600
             text run at (14,318) width 64: "nation"
           RenderImage {IMG} at (78,238) size 76x103
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-character-003-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-character-003-expected.txt
index e26b185..371444e 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-character-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-character-003-expected.txt
@@ -185,5 +185,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,79) size 244x31
             text run at (14,79) width 244: "men are created equal."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-character-004-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-character-004-expected.txt
index 7d21f26..09d3c8d 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-character-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-character-004-expected.txt
@@ -90,5 +90,5 @@ layer at (0,0) size 800x600
             text run at (14,318) width 64: "nation"
           RenderImage {IMG} at (78,238) size 76x103
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-character-005-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-character-005-expected.txt
index 46919ed..ded7e24 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-character-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-character-005-expected.txt
@@ -343,5 +343,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,79) size 244x31
             text run at (14,79) width 244: "men are created equal."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-character-006-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-character-006-expected.txt
index 05929b9..0202178 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-character-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-character-006-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-selection start: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-sentence-001-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-sentence-001-expected.txt
index 36ff1a1..89f7fa5 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-sentence-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-sentence-001-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 121: "four five six"
           RenderBlock (anonymous) at (0,64) size 756x0
             RenderInline {FRIJOLE} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {DOODAD} of child 1 {FRIJOLE} of child 1 {FRIJOLE} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 13 of child 0 {#text} of child 1 {DOODAD} of child 1 {FRIJOLE} of child 1 {FRIJOLE} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {DOODAD} of child 1 {FRIJOLE} of child 1 {FRIJOLE} of child 1 {DIV} of body
+selection end:   position 13 of child 0 {#text} of child 1 {DOODAD} of child 1 {FRIJOLE} of child 1 {FRIJOLE} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-word-001-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-word-001-expected.txt
index 0cb7292..0ab6436 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-word-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-word-001-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
               text run at (33,0) width 7: "\x{9}"
           RenderText {#text} at (40,0) size 34x31
             text run at (40,0) width 34: "bar"
-selection start: position 0 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of body
+selection end:   position 3 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/extend-by-word-002-expected.txt b/LayoutTests/platform/qt/editing/selection/extend-by-word-002-expected.txt
index 929ccfb..f4e9567 100644
--- a/LayoutTests/platform/qt/editing/selection/extend-by-word-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/extend-by-word-002-expected.txt
@@ -69,5 +69,5 @@ layer at (0,0) size 800x600
             RenderInline {A} at (0,0) size 38x14 [color=#0000EE]
               RenderText {#text} at (17,5) size 38x14
                 text run at (17,5) width 38: "Combos"
-selection start: position 0 of child 0 {#text} of child 1 {A} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 1 {A} of child 7 {LI} of child 1 {UL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {A} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 1 {A} of child 7 {LI} of child 1 {UL} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/focus-body-expected.txt b/LayoutTests/platform/qt/editing/selection/focus-body-expected.txt
index c89827f..5b743ca 100644
--- a/LayoutTests/platform/qt/editing/selection/focus-body-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/focus-body-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
         text run at (0,0) width 224: "This test focuses an editable body. "
         text run at (224,0) width 224: "Its contents should not be selected."
       RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/selection/focus_editable_html-expected.txt b/LayoutTests/platform/qt/editing/selection/focus_editable_html-expected.txt
index 2f4d3f8..83a1be3 100644
--- a/LayoutTests/platform/qt/editing/selection/focus_editable_html-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/focus_editable_html-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 2008x2093
         RenderText {#text} at (0,0) size 240x19
           text run at (0,0) width 240: "If the document scrolls here, test fails."
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/selection/iframe-expected.txt b/LayoutTests/platform/qt/editing/selection/iframe-expected.txt
index ac7dab8..9f90381 100644
--- a/LayoutTests/platform/qt/editing/selection/iframe-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/iframe-expected.txt
@@ -251,4 +251,4 @@ layer at (0,0) size 800x600
                         text run at (210,65) width 66: "The End..."
           RenderText {#text} at (450,188) size 68x19
             text run at (450,188) width 68: " the end ..."
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/image-before-linebreak-expected.txt b/LayoutTests/platform/qt/editing/selection/image-before-linebreak-expected.txt
index e5b607a..c7bd852 100644
--- a/LayoutTests/platform/qt/editing/selection/image-before-linebreak-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/image-before-linebreak-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (76,103) size 0x0
         RenderText {#text} at (0,103) size 20x19
           text run at (0,103) width 20: "foo"
-selection start: position 0 of child 1 {BR} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {BR} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {BR} of child 4 {DIV} of body
+selection end:   position 1 of child 1 {BR} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/inline-table-expected.txt b/LayoutTests/platform/qt/editing/selection/inline-table-expected.txt
index 7183e87..d153cd9 100644
--- a/LayoutTests/platform/qt/editing/selection/inline-table-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/inline-table-expected.txt
@@ -189,4 +189,4 @@ layer at (0,0) size 800x600
                     text run at (2,2) width 29: "Nine"
           RenderText {#text} at (210,65) size 66x19
             text run at (210,65) width 66: "The End..."
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/leave-requested-block-expected.txt b/LayoutTests/platform/qt/editing/selection/leave-requested-block-expected.txt
index e25d2ab..70bcdcb 100644
--- a/LayoutTests/platform/qt/editing/selection/leave-requested-block-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/leave-requested-block-expected.txt
@@ -28,5 +28,5 @@ layer at (8,158) size 784x19
   RenderBlock {P} at (0,150) size 784x19
     RenderText {#text} at (0,0) size 421x19
       text run at (0,0) width 421: "This is a paragraph outside the editable block with overflow:hidden"
-selection start: position 0 of child 0 {#text} of child 1 {P} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 113 of child 0 {#text} of child 1 {P} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {P} of child 5 {DIV} of body
+selection end:   position 113 of child 0 {#text} of child 1 {P} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/line-wrap-1-expected.txt b/LayoutTests/platform/qt/editing/selection/line-wrap-1-expected.txt
index 17d9414..ceef49d 100644
--- a/LayoutTests/platform/qt/editing/selection/line-wrap-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/line-wrap-1-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (1,1) size 47x38
           text run at (1,1) width 45: "foo bar"
           text run at (1,20) width 47: "baz foo"
-selection start: position 4 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 7 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 4 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 7 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/line-wrap-2-expected.txt b/LayoutTests/platform/qt/editing/selection/line-wrap-2-expected.txt
index 7d46839..dd3efc0 100644
--- a/LayoutTests/platform/qt/editing/selection/line-wrap-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/line-wrap-2-expected.txt
@@ -13,5 +13,5 @@ layer at (0,0) size 800x600
         RenderInline {A} at (0,0) size 23x19 [color=#0000EE]
           RenderText {#text} at (1,20) size 23x19
             text run at (1,20) width 23: "baz"
-selection start: position 0 of child 0 {#text} of child 1 {A} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 1 {A} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-2-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-2-expected.txt
index 20f271c..be1f1f4 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-2-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
             text run at (158,0) width 17: "Be"
         RenderText {#text} at (175,0) size 55x19
           text run at (175,0) width 55: "Selected"
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-3-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-3-expected.txt
index aed384f..ba75a5c 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-3-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,48) size 784x19
           RenderText {#text} at (0,0) size 50x19
             text run at (0,0) width 50: "editable"
-caret: position 0 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-4-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-4-expected.txt
index 8400b05..d6e1cd6 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-4-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-4-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,48) size 784x19
           RenderText {#text} at (0,0) size 50x19
             text run at (0,0) width 50: "editable"
-caret: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-5-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-5-expected.txt
index 03c47f2..531e573 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-5-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-5-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,48) size 784x19
           RenderText {#text} at (0,0) size 50x19
             text run at (0,0) width 50: "editable"
-caret: position 9 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 9 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-6-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-6-expected.txt
index 08eb92f..ff42584 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-6-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-6-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,38) size 784x19
           RenderText {#text} at (0,0) size 30x19
             text run at (0,0) width 30: "Four"
-selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 5 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 5 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-7-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-7-expected.txt
index 198acf9..4593168 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-7-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-7-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,38) size 784x19
           RenderText {#text} at (0,0) size 30x19
             text run at (0,0) width 30: "Four"
-selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 2 {SPAN} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 2 {SPAN} of child 3 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-8-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-8-expected.txt
index b78b2c2..03dcab6 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-8-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-8-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,48) size 784x19
           RenderText {#text} at (0,0) size 50x19
             text run at (0,0) width 50: "editable"
-caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/mixed-editability-9-expected.txt b/LayoutTests/platform/qt/editing/selection/mixed-editability-9-expected.txt
index 97f82bd..150ed54 100644
--- a/LayoutTests/platform/qt/editing/selection/mixed-editability-9-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/mixed-editability-9-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,48) size 784x19
           RenderText {#text} at (0,0) size 50x19
             text run at (0,0) width 50: "editable"
-caret: position 0 of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-3875618-fix-expected.txt b/LayoutTests/platform/qt/editing/selection/move-3875618-fix-expected.txt
index 76a66fe..6576ccc 100644
--- a/LayoutTests/platform/qt/editing/selection/move-3875618-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-3875618-fix-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (14,78) size 756x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-3875641-fix-expected.txt b/LayoutTests/platform/qt/editing/selection/move-3875641-fix-expected.txt
index 9797b42..86ceb80 100644
--- a/LayoutTests/platform/qt/editing/selection/move-3875641-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-3875641-fix-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (14,78) size 756x32
         RenderText {#text} at (0,0) size 256x31
           text run at (0,0) width 256: "Which taken at the flood"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-backwords-by-word-001-expected.txt b/LayoutTests/platform/qt/editing/selection/move-backwords-by-word-001-expected.txt
index fa80a4e..d77b3d8 100644
--- a/LayoutTests/platform/qt/editing/selection/move-backwords-by-word-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-backwords-by-word-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,46) size 79x31
             text run at (14,46) width 79: "bar baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-between-blocks-no-001-expected.txt b/LayoutTests/platform/qt/editing/selection/move-between-blocks-no-001-expected.txt
index 7d5edb3..e4bee3f 100644
--- a/LayoutTests/platform/qt/editing/selection/move-between-blocks-no-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-between-blocks-no-001-expected.txt
@@ -113,4 +113,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 349x31
           text run at (14,14) width 349: "that all men are created equal, ..."
-caret: position 25 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 25 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-between-blocks-yes-001-expected.txt b/LayoutTests/platform/qt/editing/selection/move-between-blocks-yes-001-expected.txt
index 4869771..eadab07 100644
--- a/LayoutTests/platform/qt/editing/selection/move-between-blocks-yes-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-between-blocks-yes-001-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,60) size 784x60 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 349x31
           text run at (14,14) width 349: "that all men are created equal, ..."
-caret: position 10 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 10 of child 0 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-character-001-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-character-001-expected.txt
index 407221b..c76f2c7 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-character-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-character-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             text run at (54,14) width 41: "bar "
             text run at (95,14) width 38: "baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 16 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 16 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-character-002-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-character-002-expected.txt
index 74e6acf..a0bac23 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-character-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-character-002-expected.txt
@@ -60,4 +60,4 @@ layer at (0,0) size 800x600
             text run at (14,318) width 64: "nation"
           RenderImage {IMG} at (78,238) size 76x103
         RenderText {#text} at (0,0) size 0x0
-caret: position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-character-003-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-character-003-expected.txt
index 8cec357..7e43929 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-character-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-character-003-expected.txt
@@ -185,4 +185,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,79) size 244x31
             text run at (14,79) width 244: "men are created equal."
         RenderText {#text} at (0,0) size 0x0
-caret: position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-character-004-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-character-004-expected.txt
index 1f6ffcd..02ffd7e 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-character-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-character-004-expected.txt
@@ -92,4 +92,4 @@ layer at (0,0) size 800x600
             text run at (14,318) width 64: "nation"
           RenderImage {IMG} at (78,238) size 76x103
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-character-005-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-character-005-expected.txt
index c5dc702..c2a4d11 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-character-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-character-005-expected.txt
@@ -343,4 +343,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,79) size 244x31
             text run at (14,79) width 244: "men are created equal."
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-character-6-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-character-6-expected.txt
index 4faacae..90cd677 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-character-6-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-character-6-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
             text run at (40,0) width 41: "bar "
             text run at (81,0) width 38: "baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-line-001-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-line-001-expected.txt
index adb57b9..504fbeb 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-line-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-line-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
                 RenderTableCell {TD} at (2,112) size 60x58 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
                   RenderText {#text} at (13,13) size 34x31
                     text run at (13,13) width 34: "bar"
-caret: position 2 of child 1 {TABLE} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 1 {TABLE} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-line-002-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-line-002-expected.txt
index cddcde3..7ec4fc1 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-line-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-line-002-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-34,0) size 27x31: "5"
               RenderText {#text} at (0,0) size 37x31
                 text run at (0,0) width 37: "five"
-caret: position 0 of child 0 {BR} of child 2 {LI} of child 1 {OL} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 2 {LI} of child 1 {OL} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-sentence-001-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-sentence-001-expected.txt
index dda3b90..cb0ff78 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-sentence-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-sentence-001-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt
index 785e966..5330d01 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 88: "This is a test. "
             text run at (88,0) width 92: "How are you? "
             text run at (180,0) width 82: "Life is sweet!"
-caret: position 30 of child 0 {#text} of child 9 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 30 of child 0 {#text} of child 9 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/move-by-word-001-expected.txt b/LayoutTests/platform/qt/editing/selection/move-by-word-001-expected.txt
index d3cca8e..4db9be7 100644
--- a/LayoutTests/platform/qt/editing/selection/move-by-word-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/move-by-word-001-expected.txt
@@ -16,5 +16,5 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,46) size 756x32
           RenderText {#text} at (0,0) size 34x31
             text run at (0,0) width 34: "bar"
-selection start: position 0 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 2 {#text} of child 1 {DIV} of body
+selection end:   position 3 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/node-removal-2-expected.txt b/LayoutTests/platform/qt/editing/selection/node-removal-2-expected.txt
index 645cfe5..f94b715 100644
--- a/LayoutTests/platform/qt/editing/selection/node-removal-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/node-removal-2-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
           text run at (0,0) width 34: "hello "
         RenderText {#text} at (34,0) size 38x19
           text run at (34,0) width 38: "world!"
-selection start: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 7 of child 1 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {P} of body
+selection end:   position 7 of child 1 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/previous-line-position-expected.txt b/LayoutTests/platform/qt/editing/selection/previous-line-position-expected.txt
index 96c905d..5e96179 100644
--- a/LayoutTests/platform/qt/editing/selection/previous-line-position-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/previous-line-position-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x19
           RenderText {#text} at (0,19) size 23x19
             text run at (0,19) width 23: "test"
-caret: position 0 of child 2 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/range-between-block-and-inline-expected.txt b/LayoutTests/platform/qt/editing/selection/range-between-block-and-inline-expected.txt
index fd265a1..0a323a5 100644
--- a/LayoutTests/platform/qt/editing/selection/range-between-block-and-inline-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/range-between-block-and-inline-expected.txt
@@ -25,5 +25,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 8x20
               text run at (0,0) width 8: "c"
           RenderText {#text} at (0,0) size 0x0
-selection start: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 0 of child 5 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of body
+selection end:   position 0 of child 5 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/replace-selection-1-expected.txt b/LayoutTests/platform/qt/editing/selection/replace-selection-1-expected.txt
index 284beb4..7b937e2 100644
--- a/LayoutTests/platform/qt/editing/selection/replace-selection-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/replace-selection-1-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
         RenderInline {A} at (0,0) size 21x19 [color=#0000EE]
           RenderText {#text} at (43,0) size 21x19
             text run at (43,0) width 21: "link"
-selection start: position 0 of child 0 {#text} of child 1 {A} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 1 {A} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/replaced-boundaries-1-expected.txt b/LayoutTests/platform/qt/editing/selection/replaced-boundaries-1-expected.txt
index 5e87ca0..cb2d43f 100644
--- a/LayoutTests/platform/qt/editing/selection/replaced-boundaries-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/replaced-boundaries-1-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (23,0) size 76x103
         RenderText {#text} at (99,89) size 20x19
           text run at (99,89) width 20: "def"
-selection start: position 0 of child 2 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 2 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 2 {#text} of child 3 {DIV} of body
+selection end:   position 3 of child 2 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/replaced-boundaries-2-expected.txt b/LayoutTests/platform/qt/editing/selection/replaced-boundaries-2-expected.txt
index 547fd54..b7bd7e4 100644
--- a/LayoutTests/platform/qt/editing/selection/replaced-boundaries-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/replaced-boundaries-2-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (23,0) size 76x103
         RenderText {#text} at (99,89) size 20x19
           text run at (99,89) width 20: "def"
-selection start: position 1 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/replaced-boundaries-3-expected.txt b/LayoutTests/platform/qt/editing/selection/replaced-boundaries-3-expected.txt
index 4da8889..2c8094e 100644
--- a/LayoutTests/platform/qt/editing/selection/replaced-boundaries-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/replaced-boundaries-3-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
             RenderText at (0,0) size 228x19
               text run at (0,0) width 228: "this select box shouldn't be selected"
         RenderText {#text} at (0,0) size 0x0
-selection start: position 1 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 1 of child 1 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-all-001-expected.txt b/LayoutTests/platform/qt/editing/selection/select-all-001-expected.txt
index 3f30f3e..2aae8b8 100644
--- a/LayoutTests/platform/qt/editing/selection/select-all-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-all-001-expected.txt
@@ -27,5 +27,5 @@ layer at (0,0) size 820x948
             text run at (0,536) width 527: "continent, a new nation, conceived in Liberty, and "
             text run at (0,584) width 555: "dedicated to the proposition that all men are created "
             text run at (0,632) width 64: "equal."
-selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 737 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
+selection end:   position 737 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-all-002-expected.txt b/LayoutTests/platform/qt/editing/selection/select-all-002-expected.txt
index fc4fc34..793c1cf 100644
--- a/LayoutTests/platform/qt/editing/selection/select-all-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-all-002-expected.txt
@@ -33,5 +33,5 @@ layer at (0,0) size 820x996
             text run at (0,584) width 561: "forth, upon this continent, a new nation, conceived in "
             text run at (0,632) width 600: "Liberty, and dedicated to the proposition that all men are "
             text run at (0,680) width 150: "created equal."
-selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 180 of child 6 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
+selection end:   position 180 of child 6 {#text} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-all-003-expected.txt b/LayoutTests/platform/qt/editing/selection/select-all-003-expected.txt
index cc08552..eba1d9e 100644
--- a/LayoutTests/platform/qt/editing/selection/select-all-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-all-003-expected.txt
@@ -31,5 +31,5 @@ layer at (0,0) size 812x1092
         RenderBR {BR} at (71,751) size 0x0
         RenderBR {BR} at (0,776) size 0x31
       RenderBlock {DIV} at (74,890) size 600x0
-selection start: position 0 of child 1 {BR} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 5 {BR} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {BR} of body
+selection end:   position 1 of child 5 {BR} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-all-004-expected.txt b/LayoutTests/platform/qt/editing/selection/select-all-004-expected.txt
index 3580ef4..f18fbc1 100644
--- a/LayoutTests/platform/qt/editing/selection/select-all-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-all-004-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 812x600
             RenderTableCell {TD} at (2,2) size 2x2 [r=0 c=0 rs=1 cs=1]
       RenderBlock (anonymous) at (74,128) size 600x48
         RenderBR {BR} at (0,8) size 0x31
-selection start: position 1 of child 2 {#text} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 0 of child 5 {BR} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 2 {#text} of body
+selection end:   position 0 of child 5 {BR} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-all-005-expected.txt b/LayoutTests/platform/qt/editing/selection/select-all-005-expected.txt
index 7d05480..fcd7425 100644
--- a/LayoutTests/platform/qt/editing/selection/select-all-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-all-005-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
         text run at (0,19) width 276: "Everything on this page should be selected."
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 164 of child 0 {#text} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of body
+selection end:   position 164 of child 0 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-all-006-expected.txt b/LayoutTests/platform/qt/editing/selection/select-all-006-expected.txt
index 71a69f8..99e8573 100644
--- a/LayoutTests/platform/qt/editing/selection/select-all-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-all-006-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
         text run at (0,0) width 744: "VisiblePositions created at [html, x] where html is non-editable should descend into an editable body, for convenience."
         text run at (0,19) width 276: "Everything on this page should be selected."
       RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 164 of child 0 {#text} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of body
+selection end:   position 164 of child 0 {#text} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-box-expected.txt b/LayoutTests/platform/qt/editing/selection/select-box-expected.txt
index 19a43c4..65847a1 100644
--- a/LayoutTests/platform/qt/editing/selection/select-box-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-box-expected.txt
@@ -68,4 +68,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 8: "1"
           RenderText {#text} at (150,6) size 68x19
             text run at (150,6) width 68: " the end ..."
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt b/LayoutTests/platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt
index b891f43..97642dd 100644
--- a/LayoutTests/platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-element-paragraph-boundary-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (8,4) size 42x19
             RenderText at (0,0) size 8x19
               text run at (0,0) width 8: "1"
-caret: position 1 of child 0 {SELECT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {SELECT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-missing-image-expected.txt b/LayoutTests/platform/qt/editing/selection/select-missing-image-expected.txt
index 1e646b7..3193a31 100644
--- a/LayoutTests/platform/qt/editing/selection/select-missing-image-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-missing-image-expected.txt
@@ -8,5 +8,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x128 [border: (2px solid #FF0000)]
         RenderImage {IMG} at (14,14) size 550x100
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 1 {IMG} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {IMG} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {IMG} of child 1 {DIV} of body
+selection end:   position 1 of child 1 {IMG} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/select-text-overflow-ellipsis-expected.txt b/LayoutTests/platform/qt/editing/selection/select-text-overflow-ellipsis-expected.txt
index d053037..7c62de6 100644
--- a/LayoutTests/platform/qt/editing/selection/select-text-overflow-ellipsis-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/select-text-overflow-ellipsis-expected.txt
@@ -16,5 +16,5 @@ layer at (8,74) size 95x20 scrollWidth 132
   RenderBlock {DIV} at (0,66) size 95x20
     RenderText {#text} at (0,0) size 132x20
       text run at (0,0) width 132: "Lorem ipsum dolor"
-selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 11 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/selection-3748164-fix-expected.txt b/LayoutTests/platform/qt/editing/selection/selection-3748164-fix-expected.txt
index 0794509..d518f0c 100644
--- a/LayoutTests/platform/qt/editing/selection/selection-3748164-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/selection-3748164-fix-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (29,44) size 0x0
           RenderInline {SPAN} at (0,0) size 0x0
           RenderText {#text} at (0,0) size 0x0
-caret: position 5 of child 0 {#text} of child 4 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 4 {SPAN} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/table-caret-1-expected.txt b/LayoutTests/platform/qt/editing/selection/table-caret-1-expected.txt
index 6806b70..072b479 100644
--- a/LayoutTests/platform/qt/editing/selection/table-caret-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/table-caret-1-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,98) size 784x19
           RenderText {#text} at (0,0) size 23x19
             text run at (0,0) width 23: "baz"
-caret: position 0 of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/table-caret-2-expected.txt b/LayoutTests/platform/qt/editing/selection/table-caret-2-expected.txt
index 687ec14..445cae5 100644
--- a/LayoutTests/platform/qt/editing/selection/table-caret-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/table-caret-2-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,98) size 784x19
           RenderText {#text} at (0,0) size 23x19
             text run at (0,0) width 23: "baz"
-caret: position 1 of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/table-caret-3-expected.txt b/LayoutTests/platform/qt/editing/selection/table-caret-3-expected.txt
index 340ed98..897205e 100644
--- a/LayoutTests/platform/qt/editing/selection/table-caret-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/table-caret-3-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
                   text run at (2,2) width 43: "a table"
         RenderText {#text} at (73,65) size 23x19
           text run at (73,65) width 23: "baz"
-caret: position 1 of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/unrendered-001-expected.txt b/LayoutTests/platform/qt/editing/selection/unrendered-001-expected.txt
index e0c1d6f..21db629 100644
--- a/LayoutTests/platform/qt/editing/selection/unrendered-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/unrendered-001-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 45x31
           text run at (107,82) width 45: " baz"
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/unrendered-002-expected.txt b/LayoutTests/platform/qt/editing/selection/unrendered-002-expected.txt
index fd02237..933aa3e 100644
--- a/LayoutTests/platform/qt/editing/selection/unrendered-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/unrendered-002-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 45x31
           text run at (107,82) width 45: " baz"
-caret: position 1 of child 3 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 3 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/unrendered-003-expected.txt b/LayoutTests/platform/qt/editing/selection/unrendered-003-expected.txt
index 77fe8ca..fa87a31 100644
--- a/LayoutTests/platform/qt/editing/selection/unrendered-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/unrendered-003-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 45x31
           text run at (107,82) width 45: " baz"
-selection start: position 0 of child 3 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 3 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 3 {#text} of child 1 {DIV} of body
+selection end:   position 1 of child 3 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/unrendered-004-expected.txt b/LayoutTests/platform/qt/editing/selection/unrendered-004-expected.txt
index a5f8c7e..4b4993a 100644
--- a/LayoutTests/platform/qt/editing/selection/unrendered-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/unrendered-004-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 45x31
           text run at (107,82) width 45: " baz"
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/unrendered-005-expected.txt b/LayoutTests/platform/qt/editing/selection/unrendered-005-expected.txt
index a5f8c7e..4b4993a 100644
--- a/LayoutTests/platform/qt/editing/selection/unrendered-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/unrendered-005-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 820x600
             text run at (74,82) width 33: "foo"
         RenderText {#text} at (107,82) size 45x31
           text run at (107,82) width 45: " baz"
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/unrendered-space-expected.txt b/LayoutTests/platform/qt/editing/selection/unrendered-space-expected.txt
index 4531442..8609c5a 100644
--- a/LayoutTests/platform/qt/editing/selection/unrendered-space-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/unrendered-space-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,19) size 784x19
           RenderText {#text} at (0,0) size 21x19
             text run at (0,0) width 21: "bar"
-caret: position 3 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/spelling/spelling-expected.txt b/LayoutTests/platform/qt/editing/spelling/spelling-expected.txt
index a51edbc..8f43834 100644
--- a/LayoutTests/platform/qt/editing/spelling/spelling-expected.txt
+++ b/LayoutTests/platform/qt/editing/spelling/spelling-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 44x31
               text run at (0,0) width 44: "zz a"
           RenderText {#text} at (0,0) size 0x0
-caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/4916887-expected.txt b/LayoutTests/platform/qt/editing/style/4916887-expected.txt
index 4e9cee5..7837f53 100644
--- a/LayoutTests/platform/qt/editing/style/4916887-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/4916887-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 155x19
               text run at (0,0) width 155: "This text should be blue."
         RenderBlock (anonymous) at (0,19) size 784x0
-selection start: position 0 of child 0 {#text} of child 0 {FONT} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 25 of child 0 {#text} of child 0 {FONT} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {FONT} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
+selection end:   position 25 of child 0 {#text} of child 0 {FONT} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5017613-1-expected.txt b/LayoutTests/platform/qt/editing/style/5017613-1-expected.txt
index ebebac5..54e0975 100644
--- a/LayoutTests/platform/qt/editing/style/5017613-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5017613-1-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (87,2) size 99x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 95x20
                   text run at (2,2) width 95: "plaintext-only"
-selection start: position 0 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of body
+selection end:   position 1 of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5017613-2-expected.txt b/LayoutTests/platform/qt/editing/style/5017613-2-expected.txt
index ecc2057..7a6b89e 100644
--- a/LayoutTests/platform/qt/editing/style/5017613-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5017613-2-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
                     text run at (2,2) width 53: "plaintext"
                 RenderText {#text} at (55,2) size 31x19
                   text run at (55,2) width 31: "-only"
-selection start: position 0 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 9 of child 0 {#text} of child 0 {SPAN} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of body
+selection end:   position 9 of child 0 {#text} of child 0 {SPAN} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5046875-1-expected.txt b/LayoutTests/platform/qt/editing/style/5046875-1-expected.txt
index 1473837..f2193a1 100644
--- a/LayoutTests/platform/qt/editing/style/5046875-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5046875-1-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,19) size 784x19
             RenderText {#text} at (0,0) size 23x19
               text run at (0,0) width 23: "baz"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5046875-2-expected.txt b/LayoutTests/platform/qt/editing/style/5046875-2-expected.txt
index 422aabd..a463dc5 100644
--- a/LayoutTests/platform/qt/editing/style/5046875-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5046875-2-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,38) size 784x19
           RenderText {#text} at (380,0) size 23x19
             text run at (380,0) width 23: "baz"
-selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5065910-expected.txt b/LayoutTests/platform/qt/editing/style/5065910-expected.txt
index 66c0f37..c555461 100644
--- a/LayoutTests/platform/qt/editing/style/5065910-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5065910-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 25x19 [color=#0000FF]
             RenderText {#text} at (361,0) size 25x19
               text run at (361,0) width 25: "red."
-caret: position 37 of child 0 {#text} of child 1 {FONT} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 37 of child 0 {#text} of child 1 {FONT} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5084241-expected.txt b/LayoutTests/platform/qt/editing/style/5084241-expected.txt
index b0fd4ad..abd9702 100644
--- a/LayoutTests/platform/qt/editing/style/5084241-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5084241-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderInline {FONT} at (0,0) size 155x19 [color=#0000FF]
           RenderText {#text} at (149,0) size 155x19
             text run at (149,0) width 155: "This text should be blue."
-caret: position 25 of child 0 {#text} of child 1 {FONT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 25 of child 0 {#text} of child 1 {FONT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5228141-expected.txt b/LayoutTests/platform/qt/editing/style/5228141-expected.txt
index 0c33f2a..356f259 100644
--- a/LayoutTests/platform/qt/editing/style/5228141-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5228141-expected.txt
@@ -16,5 +16,5 @@ layer at (0,0) size 800x600
               text run at (0,89) width 172: "This text should be bold."
           RenderInline {B} at (0,0) size 76x20
             RenderImage {IMG} at (172,0) size 76x103
-selection start: position 0 of child 0 {BR} of child 0 {B} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {IMG} of child 1 {B} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {BR} of child 0 {B} of child 2 {DIV} of body
+selection end:   position 1 of child 0 {IMG} of child 1 {B} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/5279521-expected.txt b/LayoutTests/platform/qt/editing/style/5279521-expected.txt
index 36d8487..41bfe5c 100644
--- a/LayoutTests/platform/qt/editing/style/5279521-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/5279521-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,103) size 784x19
           RenderText {#text} at (18,0) size 766x19
             text run at (18,0) width 766: "This tests for a crash when changing the alignment of content that starts with an image not inside its own block container."
-selection start: position 0 of child 0 {IMG} of child 0 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 123 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {IMG} of child 0 {DIV} of child 0 {DIV} of body
+selection end:   position 123 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/apple-style-editable-mix-expected.txt b/LayoutTests/platform/qt/editing/style/apple-style-editable-mix-expected.txt
index ad6b2e4..13e525e 100644
--- a/LayoutTests/platform/qt/editing/style/apple-style-editable-mix-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/apple-style-editable-mix-expected.txt
@@ -36,5 +36,5 @@ layer at (0,0) size 800x600
                     text run at (1,1) width 106: "Editable - line 2"
               RenderText {#text} at (107,1) size 0x19
                 text run at (107,1) width 0: "             "
-selection start: position 0 of child 1 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 3 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {TABLE} of body
+selection end:   position 2 of child 3 {TABLE} of body
diff --git a/LayoutTests/platform/qt/editing/style/block-style-001-expected.txt b/LayoutTests/platform/qt/editing/style/block-style-001-expected.txt
index b26c552..b90d2dd 100644
--- a/LayoutTests/platform/qt/editing/style/block-style-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/block-style-001-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
             text run at (327,14) width 101: "flush left"
         RenderText {#text} at (428,15) size 7x31
           text run at (428,15) width 7: "."
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/block-style-002-expected.txt b/LayoutTests/platform/qt/editing/style/block-style-002-expected.txt
index b26c552..b90d2dd 100644
--- a/LayoutTests/platform/qt/editing/style/block-style-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/block-style-002-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
             text run at (327,14) width 101: "flush left"
         RenderText {#text} at (428,15) size 7x31
           text run at (428,15) width 7: "."
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/block-style-003-expected.txt b/LayoutTests/platform/qt/editing/style/block-style-003-expected.txt
index 4072e84..3243efe 100644
--- a/LayoutTests/platform/qt/editing/style/block-style-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/block-style-003-expected.txt
@@ -74,5 +74,5 @@ layer at (0,0) size 800x600
             text run at (495,14) width 99: "centered"
         RenderText {#text} at (594,15) size 7x31
           text run at (594,15) width 7: "."
-selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 13 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 13 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/block-style-004-expected.txt b/LayoutTests/platform/qt/editing/style/block-style-004-expected.txt
index f96dfeb..8ab04ae 100644
--- a/LayoutTests/platform/qt/editing/style/block-style-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/block-style-004-expected.txt
@@ -62,4 +62,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 21x54
             RenderText {#text} at (0,0) size 21x54
               text run at (0,0) width 21: "x"
-caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/block-style-005-expected.txt b/LayoutTests/platform/qt/editing/style/block-style-005-expected.txt
index c1e41dc..7213535 100644
--- a/LayoutTests/platform/qt/editing/style/block-style-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/block-style-005-expected.txt
@@ -59,4 +59,4 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 0x54
             RenderInline {SPAN} at (0,0) size 0x54
               RenderBR {BR} at (0,0) size 0x54
-caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/block-style-006-expected.txt b/LayoutTests/platform/qt/editing/style/block-style-006-expected.txt
index 0369a73..ee42714 100644
--- a/LayoutTests/platform/qt/editing/style/block-style-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/block-style-006-expected.txt
@@ -59,4 +59,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 21x54
             RenderText {#text} at (0,0) size 21x54
               text run at (0,0) width 21: "x"
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 4 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 4 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/block-styles-007-expected.txt b/LayoutTests/platform/qt/editing/style/block-styles-007-expected.txt
index b5d240a..55dde51 100644
--- a/LayoutTests/platform/qt/editing/style/block-styles-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/block-styles-007-expected.txt
@@ -50,4 +50,4 @@ layer at (0,0) size 800x600
             RenderInline {B} at (0,0) size 37x33
               RenderText {#text} at (0,0) size 37x33
                 text run at (0,0) width 37: "bar"
-caret: position 0 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-001-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-001-expected.txt
index 5837a7b..29fc253 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-001-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (34,23) size 0x0
             RenderText {#text} at (0,32) size 38x31
               text run at (0,32) width 38: "baz"
-caret: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-002-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-002-expected.txt
index 3b994be..9dff7c8 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-002-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,78) size 756x32
             RenderText {#text} at (0,0) size 38x31
               text run at (0,0) width 38: "baz"
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-003-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-003-expected.txt
index f50803c..8559fdd 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-003-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (359,0) size 38x31
               text run at (359,0) width 38: "baz"
           RenderBlock (anonymous) at (14,110) size 756x0
-caret: position 0 of child 0 {#text} of child 4 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 4 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-004-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-004-expected.txt
index a164282..807a253 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-004-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (359,0) size 38x31
               text run at (359,0) width 38: "baz"
           RenderBlock (anonymous) at (14,110) size 756x0
-caret: position 3 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-005-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-005-expected.txt
index fecf9d0..bbef5db 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-005-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,120) size 784x60 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 38x31
             text run at (14,14) width 38: "baz"
-selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-006-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-006-expected.txt
index ce14787..8a62fb6 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-006-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-006-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,120) size 784x60 [border: (2px solid #FF0000)]
           RenderText {#text} at (373,14) size 38x31
             text run at (373,14) width 38: "baz"
-selection start: position 1 of child 0 {#text} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 3 {DIV} of child 3 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-007-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-007-expected.txt
index bd32fe7..8706450 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-007-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-007-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,106) size 756x32
             RenderText {#text} at (0,0) size 38x31
               text run at (0,0) width 38: "baz"
-caret: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-008-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-008-expected.txt
index e8e2b1a..1bcd593 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-008-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-008-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,106) size 756x32
             RenderText {#text} at (0,0) size 38x31
               text run at (0,0) width 38: "baz"
-caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-009-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-009-expected.txt
index 063ef01..2ab301e 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-009-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-009-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (359,0) size 38x31
               text run at (359,0) width 38: "baz"
           RenderBlock (anonymous) at (14,138) size 756x0
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-010-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-010-expected.txt
index 59c4c36..1d33e31 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-010-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-010-expected.txt
@@ -28,5 +28,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,106) size 756x32
             RenderText {#text} at (0,0) size 38x31
               text run at (0,0) width 38: "baz"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-011-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-011-expected.txt
index 72a5632..6b128a3 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-011-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-011-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (359,0) size 38x31
               text run at (359,0) width 38: "baz"
           RenderBlock (anonymous) at (14,138) size 756x0
-selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-012-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-012-expected.txt
index fdcc6bd..a89c54d 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-012-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-012-expected.txt
@@ -30,5 +30,5 @@ layer at (0,0) size 800x600
               RenderText {#text} at (345,0) size 38x31
                 text run at (345,0) width 38: "baz"
             RenderBlock (anonymous) at (14,78) size 728x0
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/create-block-for-style-013-expected.txt b/LayoutTests/platform/qt/editing/style/create-block-for-style-013-expected.txt
index b0df1cc..5eaeb25 100644
--- a/LayoutTests/platform/qt/editing/style/create-block-for-style-013-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/create-block-for-style-013-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (345,0) size 38x31
                 text run at (345,0) width 38: "baz"
             RenderBlock (anonymous) at (14,78) size 728x0
-caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/designmode-expected.txt b/LayoutTests/platform/qt/editing/style/designmode-expected.txt
index b871e8c..ba1ea91 100644
--- a/LayoutTests/platform/qt/editing/style/designmode-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/designmode-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
         RenderInline {B} at (0,0) size 172x20
           RenderText {#text} at (0,0) size 172x20
             text run at (0,0) width 172: "This text should be bold."
-selection start: position 0 of child 0 {#text} of child 0 {B} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 25 of child 0 {#text} of child 0 {B} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 2 {DIV} of body
+selection end:   position 25 of child 0 {#text} of child 0 {B} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/font-family-with-space-expected.txt b/LayoutTests/platform/qt/editing/style/font-family-with-space-expected.txt
index 41ff843..fa642fe 100644
--- a/LayoutTests/platform/qt/editing/style/font-family-with-space-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/font-family-with-space-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
               text run at (245,0) width 245: "This text should be Times New Roman bold."
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-caret: position 41 of child 0 {#text} of child 0 {DIV} of child 1 {SPAN} of child 0 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 41 of child 0 {#text} of child 0 {DIV} of child 1 {SPAN} of child 0 {SPAN} of body
diff --git a/LayoutTests/platform/qt/editing/style/fontsize-1-expected.txt b/LayoutTests/platform/qt/editing/style/fontsize-1-expected.txt
index 00914ad..dab1b89 100644
--- a/LayoutTests/platform/qt/editing/style/fontsize-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/fontsize-1-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (84,0) size 63x36
             text run at (84,0) width 63: "large"
       RenderBlock {UL} at (0,84) size 784x0
-caret: position 5 of child 0 {#text} of child 2 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 2 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/highlight-expected.txt b/LayoutTests/platform/qt/editing/style/highlight-expected.txt
index 05e766d..fc6e488 100644
--- a/LayoutTests/platform/qt/editing/style/highlight-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/highlight-expected.txt
@@ -6,4 +6,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x19
         RenderText {#text} at (0,0) size 135x19
           text run at (0,0) width 135: "some highlighted text"
-caret: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/non-inheritable-styles-expected.txt b/LayoutTests/platform/qt/editing/style/non-inheritable-styles-expected.txt
index a937cf4..cb5772b 100644
--- a/LayoutTests/platform/qt/editing/style/non-inheritable-styles-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/non-inheritable-styles-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,40) size 784x19
           RenderText {#text} at (0,0) size 185x19
             text run at (0,0) width 185: "This shouldn't have a border."
-caret: position 29 of child 2 {#text} of child 5 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 29 of child 2 {#text} of child 5 {SPAN} of body
diff --git a/LayoutTests/platform/qt/editing/style/relative-font-size-change-001-expected.txt b/LayoutTests/platform/qt/editing/style/relative-font-size-change-001-expected.txt
index cb4cbaf..5e23c99 100644
--- a/LayoutTests/platform/qt/editing/style/relative-font-size-change-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/relative-font-size-change-001-expected.txt
@@ -58,5 +58,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,120) size 756x39
             RenderText {#text} at (0,0) size 323x39
               text run at (0,0) width 323: "Which taken at the flood"
-selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 25 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body
+selection end:   position 25 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/relative-font-size-change-002-expected.txt b/LayoutTests/platform/qt/editing/style/relative-font-size-change-002-expected.txt
index 17bf6bb..cbc9626 100644
--- a/LayoutTests/platform/qt/editing/style/relative-font-size-change-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/relative-font-size-change-002-expected.txt
@@ -43,5 +43,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,120) size 756x32
             RenderText {#text} at (0,0) size 256x31
               text run at (0,0) width 256: "Which taken at the flood"
-selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 7 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 5 {DIV} of body
+selection end:   position 7 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/relative-font-size-change-003-expected.txt b/LayoutTests/platform/qt/editing/style/relative-font-size-change-003-expected.txt
index 840381a..4487b67 100644
--- a/LayoutTests/platform/qt/editing/style/relative-font-size-change-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/relative-font-size-change-003-expected.txt
@@ -55,5 +55,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,113) size 756x32
             RenderText {#text} at (0,0) size 256x31
               text run at (0,0) width 256: "Which taken at the flood"
-selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of body
+selection end:   position 6 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/relative-font-size-change-004-expected.txt b/LayoutTests/platform/qt/editing/style/relative-font-size-change-004-expected.txt
index 42ad5b5..4959c9f 100644
--- a/LayoutTests/platform/qt/editing/style/relative-font-size-change-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/relative-font-size-change-004-expected.txt
@@ -46,5 +46,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,106) size 756x32
             RenderText {#text} at (0,0) size 256x31
               text run at (0,0) width 256: "Which taken at the flood"
-selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 21 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of body
+selection end:   position 21 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/smoosh-styles-001-expected.txt b/LayoutTests/platform/qt/editing/style/smoosh-styles-001-expected.txt
index 70b0d71..73dfcc9 100644
--- a/LayoutTests/platform/qt/editing/style/smoosh-styles-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/smoosh-styles-001-expected.txt
@@ -61,4 +61,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (66,2) size 20x31
                   text run at (66,2) width 20: "fg"
         RenderBlock (anonymous) at (0,36) size 784x0
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/smoosh-styles-002-expected.txt b/LayoutTests/platform/qt/editing/style/smoosh-styles-002-expected.txt
index 6afd6bb..6b7f86f 100644
--- a/LayoutTests/platform/qt/editing/style/smoosh-styles-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/smoosh-styles-002-expected.txt
@@ -61,4 +61,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (77,7) size 20x31
                   text run at (77,7) width 20: "fg"
         RenderBlock (anonymous) at (0,42) size 784x0
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/smoosh-styles-003-expected.txt b/LayoutTests/platform/qt/editing/style/smoosh-styles-003-expected.txt
index e421928..eb36266 100644
--- a/LayoutTests/platform/qt/editing/style/smoosh-styles-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/smoosh-styles-003-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (42,2) size 740x32
             RenderText {#text} at (-40,0) size 40x31
               text run at (-40,0) width 33: "foo"
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-3681552-fix-001-expected.txt b/LayoutTests/platform/qt/editing/style/style-3681552-fix-001-expected.txt
index 3e826d2..775f4fd 100644
--- a/LayoutTests/platform/qt/editing/style/style-3681552-fix-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-3681552-fix-001-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (140,15) size 46x31
             text run at (140,15) width 46: " text"
         RenderText {#text} at (0,0) size 0x0
-caret: position 4 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-3690704-fix-expected.txt b/LayoutTests/platform/qt/editing/style/style-3690704-fix-expected.txt
index 6f4c4ec..b7141a8 100644
--- a/LayoutTests/platform/qt/editing/style/style-3690704-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-3690704-fix-expected.txt
@@ -49,5 +49,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (64,48) size 196x31
             text run at (64,48) width 196: " is some more text"
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 0 {B} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 2 {#text} of child 2 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 4 of child 2 {#text} of child 2 {B} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-3998892-fix-expected.txt b/LayoutTests/platform/qt/editing/style/style-3998892-fix-expected.txt
index 8fe702f..7655f88 100644
--- a/LayoutTests/platform/qt/editing/style/style-3998892-fix-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-3998892-fix-expected.txt
@@ -43,5 +43,5 @@ layer at (0,0) size 800x600
             RenderInline {B} at (0,0) size 37x33
               RenderText {#text} at (0,0) size 37x33
                 text run at (0,0) width 37: "bar"
-selection start: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 0 {B} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 0 {B} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-boundary-001-expected.txt b/LayoutTests/platform/qt/editing/style/style-boundary-001-expected.txt
index 907a6a0..ddc73b7 100644
--- a/LayoutTests/platform/qt/editing/style/style-boundary-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-boundary-001-expected.txt
@@ -37,5 +37,5 @@ layer at (0,0) size 800x600
           RenderInline {B} at (0,0) size 15x33
             RenderText {#text} at (15,2) size 15x33
               text run at (15,2) width 15: "b"
-selection start: position 0 of child 0 {#text} of child 1 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {#text} of child 1 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {B} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 1 {B} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-boundary-002-expected.txt b/LayoutTests/platform/qt/editing/style/style-boundary-002-expected.txt
index 52216c7..9f95800 100644
--- a/LayoutTests/platform/qt/editing/style/style-boundary-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-boundary-002-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
               text run at (2,2) width 28: "ab"
           RenderText {#text} at (30,3) size 12x31
             text run at (30,3) width 12: "c"
-caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-boundary-003-expected.txt b/LayoutTests/platform/qt/editing/style/style-boundary-003-expected.txt
index f74b882..c1d8d9d 100644
--- a/LayoutTests/platform/qt/editing/style/style-boundary-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-boundary-003-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
             text run at (15,3) width 13: "b"
           RenderText {#text} at (28,3) size 12x31
             text run at (28,3) width 12: "c"
-caret: position 1 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-boundary-004-expected.txt b/LayoutTests/platform/qt/editing/style/style-boundary-004-expected.txt
index 2f49988..0857ee1 100644
--- a/LayoutTests/platform/qt/editing/style/style-boundary-004-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-boundary-004-expected.txt
@@ -48,5 +48,5 @@ layer at (0,0) size 800x600
             RenderInline {B} at (0,0) size 15x33
               RenderText {#text} at (0,0) size 15x33
                 text run at (0,0) width 15: "b"
-selection start: position 1 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/style-boundary-005-expected.txt b/LayoutTests/platform/qt/editing/style/style-boundary-005-expected.txt
index 41fd317..89c7a41 100644
--- a/LayoutTests/platform/qt/editing/style/style-boundary-005-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/style-boundary-005-expected.txt
@@ -67,4 +67,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (121,2) size 24x19
                 text run at (121,2) width 24: "one"
         RenderBlock (anonymous) at (0,24) size 784x0
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {B} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {B} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/table-selection-expected.txt b/LayoutTests/platform/qt/editing/style/table-selection-expected.txt
index 5335b03..4dc4923 100644
--- a/LayoutTests/platform/qt/editing/style/table-selection-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/table-selection-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,27) size 23x23 [r=1 c=0 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 21x21
                   text run at (1,1) width 21: "bar"
-selection start: position 1 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 1 {TABLE} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 1 {DIV} of body
+selection end:   position 2 of child 1 {TABLE} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/typing-style-001-expected.txt b/LayoutTests/platform/qt/editing/style/typing-style-001-expected.txt
index 1b248fe..c0f3fdf 100644
--- a/LayoutTests/platform/qt/editing/style/typing-style-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/typing-style-001-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (133,14) size 46x31
             text run at (133,14) width 46: " text"
         RenderText {#text} at (0,0) size 0x0
-caret: position 11 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 11 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/typing-style-002-expected.txt b/LayoutTests/platform/qt/editing/style/typing-style-002-expected.txt
index 424528d..acfb167 100644
--- a/LayoutTests/platform/qt/editing/style/typing-style-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/typing-style-002-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (152,15) size 46x31
             text run at (152,15) width 46: " text"
         RenderText {#text} at (0,0) size 0x0
-caret: position 5 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/typing-style-003-expected.txt b/LayoutTests/platform/qt/editing/style/typing-style-003-expected.txt
index b48adff..3cedc31 100644
--- a/LayoutTests/platform/qt/editing/style/typing-style-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/typing-style-003-expected.txt
@@ -71,4 +71,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (164,15) size 36x31
                   text run at (164,15) width 36: "xxx"
         RenderInline {SPAN} at (0,0) size 0x31
-caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {I} of child 1 {B} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {I} of child 1 {B} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/style/unbold-in-bold-expected.txt b/LayoutTests/platform/qt/editing/style/unbold-in-bold-expected.txt
index 4672454..6d259ac 100644
--- a/LayoutTests/platform/qt/editing/style/unbold-in-bold-expected.txt
+++ b/LayoutTests/platform/qt/editing/style/unbold-in-bold-expected.txt
@@ -82,5 +82,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (171,14) size 85x33
             text run at (171,14) width 85: " xxxxxx"
         RenderInline {SPAN} at (0,0) size 0x31
-selection start: position 0 of child 1 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 1 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {#text} of child 1 {DIV} of body
+selection end:   position 6 of child 1 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/4063751-expected.txt b/LayoutTests/platform/qt/editing/undo/4063751-expected.txt
index 89f10ac..dd543f1 100644
--- a/LayoutTests/platform/qt/editing/undo/4063751-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/4063751-expected.txt
@@ -79,4 +79,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (2,2) size 780x23 [border: (2px solid #AAAAFF)]
           RenderText {#text} at (2,2) size 97x19
             text run at (2,2) width 97: "( this is a test. )"
-caret: position 18 of child 0 {#text} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 18 of child 0 {#text} of child 1 {DIV} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/5378473-expected.txt b/LayoutTests/platform/qt/editing/undo/5378473-expected.txt
index d0c0a5c..ec15a33 100644
--- a/LayoutTests/platform/qt/editing/undo/5378473-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/5378473-expected.txt
@@ -4,4 +4,4 @@ layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x19
-caret: position 0 of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/redo-typing-001-expected.txt b/LayoutTests/platform/qt/editing/undo/redo-typing-001-expected.txt
index 7d9a32e..8762cae 100644
--- a/LayoutTests/platform/qt/editing/undo/redo-typing-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/redo-typing-001-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 44x31
             text run at (14,14) width 44: "xXX"
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-combined-delete-boundary-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-combined-delete-boundary-expected.txt
index 44445d7..ce7977c 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-combined-delete-boundary-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-combined-delete-boundary-expected.txt
@@ -36,5 +36,5 @@ layer at (0,0) size 800x600
             text run at (127,15) width 635: "should be selected, since the test deleted it a character at a "
             text run at (14,47) width 281: "time and then did an undo."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-combined-delete-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-combined-delete-expected.txt
index 87a3a26..c4a2568 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-combined-delete-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-combined-delete-expected.txt
@@ -31,5 +31,5 @@ layer at (0,0) size 800x600
             text run at (14,14) width 745: "This word should be selected, since the test deleted it a character at a "
             text run at (14,46) width 281: "time and then did an undo."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-delete-boundary-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-delete-boundary-expected.txt
index ee26570..dfb741f 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-delete-boundary-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-delete-boundary-expected.txt
@@ -38,5 +38,5 @@ layer at (0,0) size 800x600
             text run at (127,15) width 635: "should be selected, since the test deleted it a character at a "
             text run at (14,47) width 281: "time and then did an undo."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-delete-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-delete-expected.txt
index 4b1044e..3158ce0 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-delete-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-delete-expected.txt
@@ -33,5 +33,5 @@ layer at (0,0) size 800x600
             text run at (14,14) width 745: "This word should be selected, since the test deleted it a character at a "
             text run at (14,46) width 281: "time and then did an undo."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-forward-delete-boundary-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-forward-delete-boundary-expected.txt
index 80f9037..819c4be 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-forward-delete-boundary-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-forward-delete-boundary-expected.txt
@@ -30,5 +30,5 @@ layer at (0,0) size 800x600
             text run at (127,15) width 635: "should be selected, since the test deleted it a character at a "
             text run at (14,47) width 281: "time and then did an undo."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-forward-delete-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-forward-delete-expected.txt
index d4d2542..a1b8bc9 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-forward-delete-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-forward-delete-expected.txt
@@ -25,5 +25,5 @@ layer at (0,0) size 800x600
             text run at (14,14) width 745: "This word should be selected, since the test deleted it a character at a "
             text run at (14,46) width 281: "time and then did an undo."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-misspellings-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-misspellings-expected.txt
index 8b4eaab..3798012 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-misspellings-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-misspellings-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x19
-caret: position 0 of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/undo/undo-typing-001-expected.txt b/LayoutTests/platform/qt/editing/undo/undo-typing-001-expected.txt
index 42e4bdd..5f57653 100644
--- a/LayoutTests/platform/qt/editing/undo/undo-typing-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/undo/undo-typing-001-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 32x31
             text run at (14,14) width 32: "XX"
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/list-delete-001-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/list-delete-001-expected.txt
index d870ccd..999cfc6 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/list-delete-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/list-delete-001-expected.txt
@@ -62,4 +62,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 48x31
                 text run at (0,0) width 48: "after"
           RenderBlock (anonymous) at (2,114) size 780x0
-caret: position 0 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/list-delete-003-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/list-delete-003-expected.txt
index 24a2533..24c08c6 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/list-delete-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/list-delete-003-expected.txt
@@ -56,4 +56,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x36 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 48x31
             text run at (2,2) width 48: "after"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/list-type-after-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/list-type-after-expected.txt
index 89bc711..54c0745 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/list-type-after-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/list-type-after-expected.txt
@@ -73,4 +73,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-23,0) size 10x31: bullet
               RenderText {#text} at (0,0) size 133x31
                 text run at (0,0) width 133: "line threexxx"
-caret: position 13 of child 0 {#text} of child 5 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 13 of child 0 {#text} of child 5 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/list-type-before-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/list-type-before-expected.txt
index b2b487e..ccf2866 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/list-type-before-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/list-type-before-expected.txt
@@ -70,4 +70,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-23,0) size 10x31: bullet
               RenderText {#text} at (0,0) size 97x31
                 text run at (0,0) width 97: "line three"
-caret: position 3 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/table-delete-001-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/table-delete-001-expected.txt
index 34556b3..5aa8a8e 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/table-delete-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/table-delete-001-expected.txt
@@ -67,4 +67,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (69,25) size 0x0
           RenderText {#text} at (2,34) size 48x31
             text run at (2,34) width 48: "after"
-caret: position 0 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/table-delete-002-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/table-delete-002-expected.txt
index 6902bf8..7a800dc 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/table-delete-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/table-delete-002-expected.txt
@@ -62,4 +62,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x36 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 67x31
             text run at (2,2) width 67: "before"
-caret: position 7 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/table-delete-003-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/table-delete-003-expected.txt
index 39154c7..b2b9e3a 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/table-delete-003-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/table-delete-003-expected.txt
@@ -72,4 +72,4 @@ layer at (0,0) size 800x600
               text run at (2,35) width 51: "after"
       RenderBlock (anonymous) at (0,486) size 784x0
         RenderInline {B} at (0,0) size 0x0
-caret: position 0 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 2 {B} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of child 2 {B} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/table-type-after-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/table-type-after-expected.txt
index e3b1d88..842a529 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/table-type-after-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/table-type-after-expected.txt
@@ -124,4 +124,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (2,81) size 780x32
             RenderText {#text} at (0,0) size 36x31
               text run at (0,0) width 36: "xxx"
-caret: position 3 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/unsupported-content/table-type-before-expected.txt b/LayoutTests/platform/qt/editing/unsupported-content/table-type-before-expected.txt
index 380506b..c039e05 100644
--- a/LayoutTests/platform/qt/editing/unsupported-content/table-type-before-expected.txt
+++ b/LayoutTests/platform/qt/editing/unsupported-content/table-type-before-expected.txt
@@ -114,4 +114,4 @@ layer at (0,0) size 800x600
                 RenderTableCell {TD} at (30,52) size 12x23 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
                   RenderText {#text} at (2,2) size 8x19
                     text run at (2,2) width 8: "9"
-caret: position 3 of child 1 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/backgrounds/solid-color-context-restore-expected.txt b/LayoutTests/platform/qt/fast/backgrounds/solid-color-context-restore-expected.txt
index 28bafdc..811d8d4 100644
--- a/LayoutTests/platform/qt/fast/backgrounds/solid-color-context-restore-expected.txt
+++ b/LayoutTests/platform/qt/fast/backgrounds/solid-color-context-restore-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,66) size 784x20
         RenderText {#text} at (0,0) size 22x20
           text run at (0,0) width 22: "foo"
-selection start: position 9 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 12 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 9 of child 0 {#text} of child 5 {DIV} of body
+selection end:   position 12 of child 0 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/css-generated-content/hover-style-change-expected.txt b/LayoutTests/platform/qt/fast/css-generated-content/hover-style-change-expected.txt
index 4dc1773..8d0fdc9 100644
--- a/LayoutTests/platform/qt/fast/css-generated-content/hover-style-change-expected.txt
+++ b/LayoutTests/platform/qt/fast/css-generated-content/hover-style-change-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x208
           text run at (0,0) width 765: "To reproduce the bug outside of DumpRenderTree, mouse over the div several times, and the style change won't update"
           text run at (0,19) width 70: "every time "
           text run at (70,19) width 82: "like it should."
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/css/layerZOrderCrash-expected.txt b/LayoutTests/platform/qt/fast/css/layerZOrderCrash-expected.txt
index 9defd51..93be0ac 100644
--- a/LayoutTests/platform/qt/fast/css/layerZOrderCrash-expected.txt
+++ b/LayoutTests/platform/qt/fast/css/layerZOrderCrash-expected.txt
@@ -31,4 +31,4 @@ layer at (11,53) size 53x63
           RenderText {#text} at (1,39) size 47x19
             text run at (1,39) width 47: "content"
           RenderBR {BR} at (48,53) size 0x0
-caret: position 5 of child 0 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of body
diff --git a/LayoutTests/platform/qt/fast/css/universal-hover-quirk-expected.txt b/LayoutTests/platform/qt/fast/css/universal-hover-quirk-expected.txt
index c981581..64456c5 100644
--- a/LayoutTests/platform/qt/fast/css/universal-hover-quirk-expected.txt
+++ b/LayoutTests/platform/qt/fast/css/universal-hover-quirk-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (738,0) size 773x39
           text run at (738,0) width 35: " does"
           text run at (0,20) width 222: "not match anything in quirks mode."
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/dom/delete-contents-expected.txt b/LayoutTests/platform/qt/fast/dom/delete-contents-expected.txt
index 77baa92..a1d746e 100644
--- a/LayoutTests/platform/qt/fast/dom/delete-contents-expected.txt
+++ b/LayoutTests/platform/qt/fast/dom/delete-contents-expected.txt
@@ -5,5 +5,5 @@ layer at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
       RenderBlock {DIV} at (0,0) size 784x0
         RenderBlock {DIV} at (0,0) size 784x0
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {BODY} of child 1 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 0 {DIV} of child 1 {BODY} of child 1 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/dynamic/selection-highlight-adjust-expected.txt b/LayoutTests/platform/qt/fast/dynamic/selection-highlight-adjust-expected.txt
index 7f8894d..5849c31 100644
--- a/LayoutTests/platform/qt/fast/dynamic/selection-highlight-adjust-expected.txt
+++ b/LayoutTests/platform/qt/fast/dynamic/selection-highlight-adjust-expected.txt
@@ -27,5 +27,5 @@ layer at (0,0) size 800x158
         RenderText {#text} at (306,54) size 4x19
           text run at (306,54) width 4: " "
         RenderBR {BR} at (310,54) size 0x19
-selection start: position 0 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 51 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
+selection end:   position 51 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/events/label-focus-expected.txt b/LayoutTests/platform/qt/fast/events/label-focus-expected.txt
index b043ca8..50a229d 100644
--- a/LayoutTests/platform/qt/fast/events/label-focus-expected.txt
+++ b/LayoutTests/platform/qt/fast/events/label-focus-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 163: "THIS TEST HAS PASSED"
 layer at (56,13) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {LABEL} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {LABEL} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-appearance-focus-expected.txt b/LayoutTests/platform/qt/fast/forms/input-appearance-focus-expected.txt
index 56665a5..18baea2 100644
--- a/LayoutTests/platform/qt/fast/forms/input-appearance-focus-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-appearance-focus-expected.txt
@@ -31,5 +31,5 @@ layer at (189,46) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
     RenderText {#text} at (1,0) size 98x19
       text run at (1,0) width 98: "My Text Field 2"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 15 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of child 1 {P} of body
+selection end:   position 15 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of child 1 {P} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-appearance-readonly-expected.txt b/LayoutTests/platform/qt/fast/forms/input-appearance-readonly-expected.txt
index f009c71..b0d8983 100644
--- a/LayoutTests/platform/qt/fast/forms/input-appearance-readonly-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-appearance-readonly-expected.txt
@@ -13,5 +13,5 @@ layer at (13,32) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
     RenderText {#text} at (1,0) size 79x19
       text run at (1,0) width 79: "Test Passed"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 2 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 11 of child 0 {#text} of child 0 {DIV} of child 2 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 2 {INPUT} of body
+selection end:   position 11 of child 0 {#text} of child 0 {DIV} of child 2 {INPUT} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-appearance-selection-expected.txt b/LayoutTests/platform/qt/fast/forms/input-appearance-selection-expected.txt
index 3cdf0a7..e3a0539 100644
--- a/LayoutTests/platform/qt/fast/forms/input-appearance-selection-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-appearance-selection-expected.txt
@@ -78,5 +78,5 @@ layer at (13,46) size 162x19 scrollWidth 166
   RenderBlock {DIV} at (3,3) size 162x19
     RenderText {#text} at (1,0) size 164x19
       text run at (1,0) width 164: "123456789 ABCDEFGHIJ"
-selection start: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 12 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {P} of body
+selection end:   position 12 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {P} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-double-click-selection-gap-bug-expected.txt b/LayoutTests/platform/qt/fast/forms/input-double-click-selection-gap-bug-expected.txt
index 53a8f1a..4a8251f 100644
--- a/LayoutTests/platform/qt/fast/forms/input-double-click-selection-gap-bug-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-double-click-selection-gap-bug-expected.txt
@@ -27,5 +27,5 @@ layer at (35,403) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
     RenderText {#text} at (1,0) size 45x19
       text run at (1,0) width 45: "foo bar"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 3 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 7 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 3 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 3 {TABLE} of body
+selection end:   position 7 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 3 {TABLE} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-maxlength-2-expected.txt b/LayoutTests/platform/qt/fast/forms/input-maxlength-2-expected.txt
index 5721387..d8bb5e7 100644
--- a/LayoutTests/platform/qt/fast/forms/input-maxlength-2-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-maxlength-2-expected.txt
@@ -13,4 +13,4 @@ layer at (13,46) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
     RenderText {#text} at (1,0) size 40x19
       text run at (1,0) width 40: "12345"
-caret: position 5 of child 0 {#text} of child 0 {DIV} of child 2 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 2 {INPUT} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-paste-undo-expected.txt b/LayoutTests/platform/qt/fast/forms/input-paste-undo-expected.txt
index 477435f..2b23350 100644
--- a/LayoutTests/platform/qt/fast/forms/input-paste-undo-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-paste-undo-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,105) size 784x0
 layer at (13,70) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 0 of child 0 {DIV} of child 4 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 4 {INPUT} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-text-click-inside-expected.txt b/LayoutTests/platform/qt/fast/forms/input-text-click-inside-expected.txt
index ecf320b..db3cec3 100644
--- a/LayoutTests/platform/qt/fast/forms/input-text-click-inside-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-text-click-inside-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,19) width 159: "should have a focus ring."
 layer at (38,38) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 0 of child 0 {DIV} of child 0 {INPUT} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 0 {INPUT} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-text-option-delete-expected.txt b/LayoutTests/platform/qt/fast/forms/input-text-option-delete-expected.txt
index 48f60b1..75710b6 100644
--- a/LayoutTests/platform/qt/fast/forms/input-text-option-delete-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-text-option-delete-expected.txt
@@ -13,4 +13,4 @@ layer at (13,13) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
     RenderText {#text} at (1,0) size 35x19
       text run at (1,0) width 35: "word "
-caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of body
diff --git a/LayoutTests/platform/qt/fast/forms/input-text-self-emptying-click-expected.txt b/LayoutTests/platform/qt/fast/forms/input-text-self-emptying-click-expected.txt
index e8850df..f075c67 100644
--- a/LayoutTests/platform/qt/fast/forms/input-text-self-emptying-click-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/input-text-self-emptying-click-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
           text run at (0,19) width 96: "in the text field."
 layer at (13,13) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 0 of child 0 {DIV} of child 0 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 0 {INPUT} of body
diff --git a/LayoutTests/platform/qt/fast/forms/plaintext-mode-2-expected.txt b/LayoutTests/platform/qt/fast/forms/plaintext-mode-2-expected.txt
index 07679a3..41d1d2c 100644
--- a/LayoutTests/platform/qt/fast/forms/plaintext-mode-2-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/plaintext-mode-2-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 326: "Success: document.execCommand(\"Copy\") == true"
 layer at (11,13) size 594x19
   RenderBlock {DIV} at (3,3) size 594x19
-caret: position 0 of child 0 {DIV} of child 0 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 0 {INPUT} of body
diff --git a/LayoutTests/platform/qt/fast/forms/textfield-overflow-expected.txt b/LayoutTests/platform/qt/fast/forms/textfield-overflow-expected.txt
index 4c84c7d..667c106 100644
--- a/LayoutTests/platform/qt/fast/forms/textfield-overflow-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/textfield-overflow-expected.txt
@@ -8,4 +8,4 @@ layer at (0,0) size 800x600
       RenderText {#text} at (0,0) size 0x0
 layer at (13,11) size 162x19
   RenderBlock {DIV} at (3,3) size 162x19
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 1 {INPUT} of body
diff --git a/LayoutTests/platform/qt/fast/frames/take-focus-from-iframe-expected.txt b/LayoutTests/platform/qt/fast/frames/take-focus-from-iframe-expected.txt
index e0e938d..b028b25 100644
--- a/LayoutTests/platform/qt/fast/frames/take-focus-from-iframe-expected.txt
+++ b/LayoutTests/platform/qt/fast/frames/take-focus-from-iframe-expected.txt
@@ -22,4 +22,4 @@ layer at (411,72) size 171x20
   RenderBlock {DIV} at (2,2) size 171x20
     RenderText {#text} at (1,0) size 44x20
       text run at (1,0) width 44: "PASS"
-caret: position 4 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 3 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 3 {P} of body
diff --git a/LayoutTests/platform/qt/fast/inline-block/14498-positionForCoordinates-expected.txt b/LayoutTests/platform/qt/fast/inline-block/14498-positionForCoordinates-expected.txt
index 0e60f6d..2759a75 100644
--- a/LayoutTests/platform/qt/fast/inline-block/14498-positionForCoordinates-expected.txt
+++ b/LayoutTests/platform/qt/fast/inline-block/14498-positionForCoordinates-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 3 of child 0 {#text} of child 3 {DIV} of child 5 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 3 {DIV} of child 5 {SPAN} of body
diff --git a/LayoutTests/platform/qt/fast/lists/markers-in-selection-expected.txt b/LayoutTests/platform/qt/fast/lists/markers-in-selection-expected.txt
index df48c8c..c11bd49 100644
--- a/LayoutTests/platform/qt/fast/lists/markers-in-selection-expected.txt
+++ b/LayoutTests/platform/qt/fast/lists/markers-in-selection-expected.txt
@@ -66,5 +66,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 7 {HR} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 21 {HR} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 7 {HR} of body
+selection end:   position 1 of child 21 {HR} of body
diff --git a/LayoutTests/platform/qt/fast/overflow/image-selection-highlight-expected.txt b/LayoutTests/platform/qt/fast/overflow/image-selection-highlight-expected.txt
index 82d803e..7583620 100644
--- a/LayoutTests/platform/qt/fast/overflow/image-selection-highlight-expected.txt
+++ b/LayoutTests/platform/qt/fast/overflow/image-selection-highlight-expected.txt
@@ -44,5 +44,5 @@ layer at (8,104) size 100x200 clip at (8,104) size 84x200 scrollY 40 scrollHeigh
       text run at (0,247) width 52: "ultricies."
       text run at (0,266) width 82: "Pellentesque"
       text run at (0,285) width 54: "aliquet..."
-selection start: position 58 of child 0 {#text} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 11 of child 2 {#text} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 58 of child 0 {#text} of child 7 {DIV} of body
+selection end:   position 11 of child 2 {#text} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/overflow/overflow-focus-ring-expected.txt b/LayoutTests/platform/qt/fast/overflow/overflow-focus-ring-expected.txt
index 17805de..62ba918 100644
--- a/LayoutTests/platform/qt/fast/overflow/overflow-focus-ring-expected.txt
+++ b/LayoutTests/platform/qt/fast/overflow/overflow-focus-ring-expected.txt
@@ -45,5 +45,5 @@ layer at (8,27) size 500x400 scrollWidth 501 scrollHeight 684
       text run at (0,627) width 500: "............................................................................................................................."
       text run at (0,646) width 500: "............................................................................................................................."
       text run at (0,665) width 212: "....................................................."
-selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4428 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 4428 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/overflow/overflow-text-hit-testing-expected.txt b/LayoutTests/platform/qt/fast/overflow/overflow-text-hit-testing-expected.txt
index 80c369f..1a7d64c 100644
--- a/LayoutTests/platform/qt/fast/overflow/overflow-text-hit-testing-expected.txt
+++ b/LayoutTests/platform/qt/fast/overflow/overflow-text-hit-testing-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 210x35 clip at (0,0) size 210x19 scrollX 34 scrollWidth 244
   RenderBlock {DIV} at (0,0) size 210x35
     RenderText {#text} at (0,0) size 244x19
       text run at (0,0) width 244: "Seals and caribou live in the arctic, too"
-caret: position 40 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 40 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/repaint/4776765-expected.txt b/LayoutTests/platform/qt/fast/repaint/4776765-expected.txt
index b65c91e..f6af3a1 100644
--- a/LayoutTests/platform/qt/fast/repaint/4776765-expected.txt
+++ b/LayoutTests/platform/qt/fast/repaint/4776765-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x19
         RenderBlock {DIV} at (0,38) size 784x19
           RenderBR {BR} at (0,0) size 0x19
-caret: position 0 of child 0 {BR} of child 4 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 4 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/repaint/delete-into-nested-block-expected.txt b/LayoutTests/platform/qt/fast/repaint/delete-into-nested-block-expected.txt
index fcbf1f7..11e759c 100644
--- a/LayoutTests/platform/qt/fast/repaint/delete-into-nested-block-expected.txt
+++ b/LayoutTests/platform/qt/fast/repaint/delete-into-nested-block-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x19
           RenderText {#text} at (0,0) size 33x19
             text run at (0,0) width 33: "three"
-caret: position 0 of child 0 {#text} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/repaint/inline-outline-repaint-expected.txt b/LayoutTests/platform/qt/fast/repaint/inline-outline-repaint-expected.txt
index 05eabb2..9275fb2 100644
--- a/LayoutTests/platform/qt/fast/repaint/inline-outline-repaint-expected.txt
+++ b/LayoutTests/platform/qt/fast/repaint/inline-outline-repaint-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x212
           RenderText {#text} at (0,0) size 87x38
             text run at (0,0) width 87: "Lorem ipsum "
             text run at (0,19) width 36: "dolor "
-caret: position 18 of child 0 {#text} of child 1 {SPAN} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 18 of child 0 {#text} of child 1 {SPAN} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt b/LayoutTests/platform/qt/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt
index ce811bf..0aecb1f 100644
--- a/LayoutTests/platform/qt/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt
+++ b/LayoutTests/platform/qt/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt
@@ -9,4 +9,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,36) size 784x20
         RenderText {#text} at (0,0) size 255x20
           text run at (0,0) width 255: "This element is not content editable."
-caret: position 0 of child 0 {#text} of child 3 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {P} of body
diff --git a/LayoutTests/platform/qt/fast/repaint/selection-after-delete-expected.txt b/LayoutTests/platform/qt/fast/repaint/selection-after-delete-expected.txt
index 818ceeb..7c09b32 100644
--- a/LayoutTests/platform/qt/fast/repaint/selection-after-delete-expected.txt
+++ b/LayoutTests/platform/qt/fast/repaint/selection-after-delete-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,19) width 178: "should be inside the red div."
       RenderBlock {DIV} at (30,68) size 152x21 [border: (1px solid #FF0000)]
         RenderBR {BR} at (1,1) size 0x19
-caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/repaint/selection-after-remove-expected.txt b/LayoutTests/platform/qt/fast/repaint/selection-after-remove-expected.txt
index 3053f78..fd2ac77 100644
--- a/LayoutTests/platform/qt/fast/repaint/selection-after-remove-expected.txt
+++ b/LayoutTests/platform/qt/fast/repaint/selection-after-remove-expected.txt
@@ -14,5 +14,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (35,1) size 34x19
           text run at (35,1) width 34: "world"
         RenderBR {BR} at (69,15) size 0x0
-selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 1 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 6 of child 1 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/replaced/selection-rect-expected.txt b/LayoutTests/platform/qt/fast/replaced/selection-rect-expected.txt
index 18ff3cd..5ce0992 100644
--- a/LayoutTests/platform/qt/fast/replaced/selection-rect-expected.txt
+++ b/LayoutTests/platform/qt/fast/replaced/selection-rect-expected.txt
@@ -6,5 +6,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x150
         RenderImage {IMG} at (50,50) size 100x100 [bgcolor=#FF0000]
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 1 {IMG} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {IMG} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {IMG} of child 1 {DIV} of body
+selection end:   position 1 of child 1 {IMG} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/replaced/selection-rect-in-table-cell-expected.txt b/LayoutTests/platform/qt/fast/replaced/selection-rect-in-table-cell-expected.txt
index 4a15063..4730883 100644
--- a/LayoutTests/platform/qt/fast/replaced/selection-rect-in-table-cell-expected.txt
+++ b/LayoutTests/platform/qt/fast/replaced/selection-rect-in-table-cell-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
           RenderTableRow {TR} at (0,2) size 56x100
             RenderTableCell {TD} at (2,26) size 52x52 [r=0 c=0 rs=1 cs=1]
               RenderImage {IMG} at (1,1) size 50x50 [bgcolor=#FF0000]
-selection start: position 0 of child 0 {IMG} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 5 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {IMG} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 5 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {IMG} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 5 {TABLE} of body
+selection end:   position 1 of child 0 {IMG} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 5 {TABLE} of body
diff --git a/LayoutTests/platform/qt/fast/selectors/159-expected.txt b/LayoutTests/platform/qt/fast/selectors/159-expected.txt
index b116255..89b6073 100644
--- a/LayoutTests/platform/qt/fast/selectors/159-expected.txt
+++ b/LayoutTests/platform/qt/fast/selectors/159-expected.txt
@@ -6,5 +6,5 @@ layer at (0,0) size 800x47
       RenderBlock {P} at (0,0) size 784x19
         RenderText {#text} at (0,0) size 508x19
           text run at (0,0) width 508: "Try selecting some text in this document. It should be have a green background."
-selection start: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 79 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {P} of body
+selection end:   position 79 of child 0 {#text} of child 1 {P} of body
diff --git a/LayoutTests/platform/qt/fast/selectors/177a-expected.txt b/LayoutTests/platform/qt/fast/selectors/177a-expected.txt
index ad55a48..56e6093 100644
--- a/LayoutTests/platform/qt/fast/selectors/177a-expected.txt
+++ b/LayoutTests/platform/qt/fast/selectors/177a-expected.txt
@@ -6,5 +6,5 @@ layer at (0,0) size 800x47
       RenderBlock {P} at (0,0) size 784x19
         RenderText {#text} at (0,0) size 283x19
           text run at (0,0) width 283: "When you select this text, it shouldn't go red."
-selection start: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 47 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 1 {P} of body
+selection end:   position 47 of child 0 {#text} of child 1 {P} of body
diff --git a/LayoutTests/platform/qt/fast/table/click-near-anonymous-table-expected.txt b/LayoutTests/platform/qt/fast/table/click-near-anonymous-table-expected.txt
index 099d73b..ddb4ec4 100644
--- a/LayoutTests/platform/qt/fast/table/click-near-anonymous-table-expected.txt
+++ b/LayoutTests/platform/qt/fast/table/click-near-anonymous-table-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
               RenderTableCell (anonymous) at (0,0) size 171x19 [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (0,0) size 171x19
                   text run at (0,0) width 171: "Click to the right of this text"
-caret: position 40 of child 0 {#text} of child 7 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 40 of child 0 {#text} of child 7 {DIV} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/text/atsui-kerning-and-ligatures-expected.txt b/LayoutTests/platform/qt/fast/text/atsui-kerning-and-ligatures-expected.txt
index 31e099a..db3ee0f 100644
--- a/LayoutTests/platform/qt/fast/text/atsui-kerning-and-ligatures-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/atsui-kerning-and-ligatures-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 538x31
               text run at (0,0) width 538: "AVAVAVAVAVfififififififi Lorem ipsum dolor sit ame\x{300}t"
           RenderText {#text} at (0,0) size 0x0
-selection start: position 37 of child 0 {#text} of child 3 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 42 of child 0 {#text} of child 3 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 37 of child 0 {#text} of child 3 {SPAN} of child 5 {DIV} of body
+selection end:   position 42 of child 0 {#text} of child 3 {SPAN} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/text/atsui-partial-selection-expected.txt b/LayoutTests/platform/qt/fast/text/atsui-partial-selection-expected.txt
index b92face..5d42613 100644
--- a/LayoutTests/platform/qt/fast/text/atsui-partial-selection-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/atsui-partial-selection-expected.txt
@@ -28,5 +28,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (233,0) size 87x19
             text run at (233,0) width 87: " Lore\x{300}m ipsum"
         RenderText {#text} at (0,0) size 0x0
-selection start: position 1 of child 0 {#text} of child 3 {SPAN} of child 2 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 13 of child 0 {#text} of child 3 {SPAN} of child 2 {P} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 3 {SPAN} of child 2 {P} of body
+selection end:   position 13 of child 0 {#text} of child 3 {SPAN} of child 2 {P} of body
diff --git a/LayoutTests/platform/qt/fast/text/delete-hard-break-character-expected.txt b/LayoutTests/platform/qt/fast/text/delete-hard-break-character-expected.txt
index 4709601..96d8eae 100644
--- a/LayoutTests/platform/qt/fast/text/delete-hard-break-character-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/delete-hard-break-character-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x19
           text run at (0,0) width 0: " "
         RenderBR {BR} at (0,19) size 0x19
-caret: position 0 of child 1 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {BR} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/text/international/khmer-selection-expected.txt b/LayoutTests/platform/qt/fast/text/international/khmer-selection-expected.txt
index 1f190f0..e8c49ce 100644
--- a/LayoutTests/platform/qt/fast/text/international/khmer-selection-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/international/khmer-selection-expected.txt
@@ -44,5 +44,5 @@ layer at (0,0) size 800x129
             text run at (124,43) width 56: "test_shell"
         RenderText {#text} at (180,40) size 289x20
           text run at (180,40) width 289: " shouldn't trigger any assertions or crash."
-selection start: position 0 of child 0 {#text} of child 0 {B} of child 1 {NOBR} of child 1 {P} of child 1 {BODY} of child 1 {HTML} of document
-selection end:   position 7 of child 0 {#text} of child 6 {A} of child 1 {NOBR} of child 1 {P} of child 1 {BODY} of child 1 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 1 {NOBR} of child 1 {P} of body
+selection end:   position 7 of child 0 {#text} of child 6 {A} of child 1 {NOBR} of child 1 {P} of body
diff --git a/LayoutTests/platform/qt/fast/text/international/rtl-caret-expected.txt b/LayoutTests/platform/qt/fast/text/international/rtl-caret-expected.txt
index 2bba07a..823a09f 100644
--- a/LayoutTests/platform/qt/fast/text/international/rtl-caret-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/international/rtl-caret-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,96) size 784x19
         RenderText {#text} at (0,0) size 112x19
           text run at (0,0) width 112 RTL: "\x{5D0}\x{5D5}\x{5DB}\x{5DE}\x{5E0}\x{5D9}\x{5D5}\x{5EA}"
-caret: position 5 of child 0 {#text} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 5 of child 0 {#text} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/text/justified-selection-at-edge-expected.txt b/LayoutTests/platform/qt/fast/text/justified-selection-at-edge-expected.txt
index da224c9..ab4cd45 100644
--- a/LayoutTests/platform/qt/fast/text/justified-selection-at-edge-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/justified-selection-at-edge-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (3,3) size 250x38
           text run at (3,3) width 250: "Lorem ipsum dolor sit amet,"
           text run at (3,22) width 175: "consectetuer adipiscing elit."
-selection start: position 20 of child 0 {#text} of child 8 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 27 of child 0 {#text} of child 8 {P} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 20 of child 0 {#text} of child 8 {P} of body
+selection end:   position 27 of child 0 {#text} of child 8 {P} of body
diff --git a/LayoutTests/platform/qt/fast/text/justified-selection-expected.txt b/LayoutTests/platform/qt/fast/text/justified-selection-expected.txt
index 35b3221..794c48d 100644
--- a/LayoutTests/platform/qt/fast/text/justified-selection-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/justified-selection-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (3,3) size 100x38
           text run at (3,3) width 100: "Lo re mi"
           text run at (3,22) width 67: "psumdolor"
-selection start: position 1 of child 0 {#text} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 8 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 8 {DIV} of body
diff --git a/LayoutTests/platform/qt/fast/text/should-use-atsui-expected.txt b/LayoutTests/platform/qt/fast/text/should-use-atsui-expected.txt
index a57414a..72f335a 100644
--- a/LayoutTests/platform/qt/fast/text/should-use-atsui-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/should-use-atsui-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
             text run at (0,0) width 173: "Lo\x{308}re\x{300}m ipsum dolor sit amet"
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-selection start: position 14 of child 0 {#text} of child 7 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 19 of child 0 {#text} of child 7 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 14 of child 0 {#text} of child 7 {SPAN} of body
+selection end:   position 19 of child 0 {#text} of child 7 {SPAN} of body
diff --git a/LayoutTests/platform/qt/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt b/LayoutTests/platform/qt/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt
index 42b442b..1083900 100644
--- a/LayoutTests/platform/qt/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt
@@ -43,5 +43,5 @@ layer at (8,111) size 108x103 clip at (12,115) size 100x95
       text run at (84,62) width 0: " "
       text run at (4,81) width 32: "box."
       text run at (36,81) width 0: " "
-selection start: position 7 of child 0 {#text} of child 7 {PRE} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 15 of child 0 {#text} of child 11 {PRE} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 7 of child 0 {#text} of child 7 {PRE} of body
+selection end:   position 15 of child 0 {#text} of child 11 {PRE} of body
diff --git a/LayoutTests/platform/qt/svg/text/foreignObject-text-clipping-bug-expected.txt b/LayoutTests/platform/qt/svg/text/foreignObject-text-clipping-bug-expected.txt
index c2e4f5e..915d87a 100644
--- a/LayoutTests/platform/qt/svg/text/foreignObject-text-clipping-bug-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/foreignObject-text-clipping-bug-expected.txt
@@ -19,5 +19,5 @@ layer at (18,184) size 390x124
     RenderBlock {div} at (0,0) size 390x124
       RenderText {#text} at (0,0) size 256x124
         text run at (0,0) width 256: "TEST"
-selection start: position 0 of child 0 {#text} of child 1 {p} of child 3 {body} of child 0 {html} of document
-selection end:   position 4 of child 0 {#text} of child 1 {div} of child 5 {div} of child 3 {body} of child 0 {html} of document
+selection start: position 0 of child 0 {#text} of child 1 {p} of body
+selection end:   position 4 of child 0 {#text} of child 1 {div} of child 5 {div} of body
diff --git a/LayoutTests/platform/qt/svg/text/selection-background-color-expected.txt b/LayoutTests/platform/qt/svg/text/selection-background-color-expected.txt
index d912eff..a50f276 100644
--- a/LayoutTests/platform/qt/svg/text/selection-background-color-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/selection-background-color-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x236
               RenderSVGInlineText {#text} at (0,0) size 269x25
                 chunk 1 text run 1 at (0.00,60.00) startOffset 0 endOffset 28 width 269.00: "Should have blue background."
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 1 {text} of child 3 {g} of child 1 {svg} of child 1 {p} of child 3 {body} of child 0 {html} of document
-selection end:   position 28 of child 0 {#text} of child 3 {text} of child 3 {g} of child 1 {svg} of child 1 {p} of child 3 {body} of child 0 {html} of document
+selection start: position 0 of child 0 {#text} of child 1 {text} of child 3 {g} of child 1 {svg} of child 1 {p} of body
+selection end:   position 28 of child 0 {#text} of child 3 {text} of child 3 {g} of child 1 {svg} of child 1 {p} of body
diff --git a/LayoutTests/platform/qt/svg/text/selection-styles-expected.txt b/LayoutTests/platform/qt/svg/text/selection-styles-expected.txt
index 7f8682f..8965ae6 100644
--- a/LayoutTests/platform/qt/svg/text/selection-styles-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/selection-styles-expected.txt
@@ -49,5 +49,5 @@ layer at (0,0) size 800x504
             RenderSVGInlineText {#text} at (0,0) size 638x25
               chunk 1 text run 1 at (0.00,390.00) startOffset 0 endOffset 73 width 638.00: "Selected text should have both gradient fill, solid stroke and background"
       RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 3 {text} of child 3 {g} of child 1 {svg} of child 3 {body} of child 0 {html} of document
-selection end:   position 73 of child 0 {#text} of child 27 {text} of child 3 {g} of child 1 {svg} of child 3 {body} of child 0 {html} of document
+selection start: position 0 of child 0 {#text} of child 3 {text} of child 3 {g} of child 1 {svg} of body
+selection end:   position 73 of child 0 {#text} of child 27 {text} of child 3 {g} of child 1 {svg} of body

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list