[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:09:54 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 920974b9fbfbfca480a1277fe74a2e66da18bdc3
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jul 14 08:52:35 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.
    
            This first commit is only the mac and mac-leopard results.
    
            * platform/mac/editing/deleting/4845371-expected.txt:
            * platform/mac/editing/deleting/4922367-expected.txt:
            * platform/mac/editing/deleting/5026848-1-expected.txt:
            * platform/mac/editing/deleting/5026848-2-expected.txt:
            * platform/mac/editing/deleting/5026848-3-expected.txt:
            * platform/mac/editing/deleting/5032066-expected.txt:
            * platform/mac/editing/deleting/5091898-expected.txt:
            * platform/mac/editing/deleting/5099303-expected.txt:
            * platform/mac/editing/deleting/5115601-expected.txt:
            * platform/mac/editing/deleting/5126166-expected.txt:
            * platform/mac/editing/deleting/5144139-2-expected.txt:
            * platform/mac/editing/deleting/5156801-2-expected.txt:
            * platform/mac/editing/deleting/5168598-expected.txt:
            * platform/mac/editing/deleting/5206311-1-expected.txt:
            * platform/mac/editing/deleting/5206311-2-expected.txt:
            * platform/mac/editing/deleting/5272440-expected.txt:
            * platform/mac/editing/deleting/5300379-expected.txt:
            * platform/mac/editing/deleting/5369009-expected.txt:
            * platform/mac/editing/deleting/5390681-2-expected.txt:
            * platform/mac/editing/deleting/5390681-expected.txt:
            * platform/mac/editing/deleting/5408255-expected.txt:
            * platform/mac/editing/deleting/5433862-2-expected.txt:
            * platform/mac/editing/deleting/5483370-expected.txt:
            * platform/mac/editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3608430-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3608445-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3608462-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3775172-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3800834-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3857753-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3865854-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3928305-fix-expected.txt:
            * platform/mac/editing/deleting/delete-3959464-fix-expected.txt:
            * platform/mac/editing/deleting/delete-4038408-fix-expected.txt:
            * platform/mac/editing/deleting/delete-4083333-fix-expected.txt:
            * platform/mac/editing/deleting/delete-after-span-ws-001-expected.txt:
            * platform/mac/editing/deleting/delete-after-span-ws-002-expected.txt:
            * platform/mac/editing/deleting/delete-after-span-ws-003-expected.txt:
            * platform/mac/editing/deleting/delete-and-undo-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
            * platform/mac/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
            * platform/mac/editing/deleting/delete-at-start-or-end-expected.txt:
            * platform/mac/editing/deleting/delete-block-contents-001-expected.txt:
            * platform/mac/editing/deleting/delete-block-contents-002-expected.txt:
            * platform/mac/editing/deleting/delete-block-contents-003-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-001-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-002-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-003-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-004-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-005-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-006-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-007-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-008-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-009-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-010-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-011-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-012-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-013-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-014-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-015-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-016-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-017-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-018-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-019-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-020-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-021-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-022-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-023-expected.txt:
            * platform/mac/editing/deleting/delete-block-merge-contents-024-expected.txt:
            * platform/mac/editing/deleting/delete-block-table-expected.txt:
            * platform/mac/editing/deleting/delete-br-001-expected.txt:
            * platform/mac/editing/deleting/delete-br-002-expected.txt:
            * platform/mac/editing/deleting/delete-br-003-expected.txt:
            * platform/mac/editing/deleting/delete-br-004-expected.txt:
            * platform/mac/editing/deleting/delete-br-005-expected.txt:
            * platform/mac/editing/deleting/delete-br-006-expected.txt:
            * platform/mac/editing/deleting/delete-br-007-expected.txt:
            * platform/mac/editing/deleting/delete-br-008-expected.txt:
            * platform/mac/editing/deleting/delete-br-009-expected.txt:
            * platform/mac/editing/deleting/delete-br-010-expected.txt:
            * platform/mac/editing/deleting/delete-br-011-expected.txt:
            * platform/mac/editing/deleting/delete-br-012-expected.txt:
            * platform/mac/editing/deleting/delete-br-013-expected.txt:
            * platform/mac/editing/deleting/delete-by-word-001-expected.txt:
            * platform/mac/editing/deleting/delete-by-word-002-expected.txt:
            * platform/mac/editing/deleting/delete-character-001-expected.txt:
            * platform/mac/editing/deleting/delete-contiguous-ws-001-expected.txt:
            * platform/mac/editing/deleting/delete-first-list-item-expected.txt:
            * platform/mac/editing/deleting/delete-hr-expected.txt:
            * platform/mac/editing/deleting/delete-image-001-expected.txt:
            * platform/mac/editing/deleting/delete-image-002-expected.txt:
            * platform/mac/editing/deleting/delete-image-003-expected.txt:
            * platform/mac/editing/deleting/delete-image-004-expected.txt:
            * platform/mac/editing/deleting/delete-leading-ws-001-expected.txt:
            * platform/mac/editing/deleting/delete-line-001-expected.txt:
            * platform/mac/editing/deleting/delete-line-002-expected.txt:
            * platform/mac/editing/deleting/delete-line-003-expected.txt:
            * platform/mac/editing/deleting/delete-line-004-expected.txt:
            * platform/mac/editing/deleting/delete-line-005-expected.txt:
            * platform/mac/editing/deleting/delete-line-006-expected.txt:
            * platform/mac/editing/deleting/delete-line-007-expected.txt:
            * platform/mac/editing/deleting/delete-line-008-expected.txt:
            * platform/mac/editing/deleting/delete-line-009-expected.txt:
            * platform/mac/editing/deleting/delete-line-010-expected.txt:
            * platform/mac/editing/deleting/delete-line-011-expected.txt:
            * platform/mac/editing/deleting/delete-line-012-expected.txt:
            * platform/mac/editing/deleting/delete-line-013-expected.txt:
            * platform/mac/editing/deleting/delete-line-014-expected.txt:
            * platform/mac/editing/deleting/delete-line-015-expected.txt:
            * platform/mac/editing/deleting/delete-line-016-expected.txt:
            * platform/mac/editing/deleting/delete-line-017-expected.txt:
            * platform/mac/editing/deleting/delete-line-end-ws-001-expected.txt:
            * platform/mac/editing/deleting/delete-line-end-ws-002-expected.txt:
            * platform/mac/editing/deleting/delete-listitem-001-expected.txt:
            * platform/mac/editing/deleting/delete-listitem-002-expected.txt:
            * platform/mac/editing/deleting/delete-mixed-editable-content-001-expected.txt:
            * platform/mac/editing/deleting/delete-select-all-001-expected.txt:
            * platform/mac/editing/deleting/delete-select-all-002-expected.txt:
            * platform/mac/editing/deleting/delete-select-all-003-expected.txt:
            * platform/mac/editing/deleting/delete-selection-001-expected.txt:
            * platform/mac/editing/deleting/delete-tab-001-expected.txt:
            * platform/mac/editing/deleting/delete-tab-002-expected.txt:
            * platform/mac/editing/deleting/delete-tab-003-expected.txt:
            * platform/mac/editing/deleting/delete-tab-004-expected.txt:
            * platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt:
            * platform/mac/editing/deleting/delete-to-select-table-expected.txt:
            * platform/mac/editing/deleting/delete-trailing-ws-001-expected.txt:
            * platform/mac/editing/deleting/delete-trailing-ws-002-expected.txt:
            * platform/mac/editing/deleting/delete-ws-fixup-001-expected.txt:
            * platform/mac/editing/deleting/delete-ws-fixup-002-expected.txt:
            * platform/mac/editing/deleting/delete-ws-fixup-003-expected.txt:
            * platform/mac/editing/deleting/delete-ws-fixup-004-expected.txt:
            * platform/mac/editing/deleting/deletionUI-single-instance-expected.txt:
            * platform/mac/editing/deleting/forward-delete-expected.txt:
            * platform/mac/editing/deleting/list-item-1-expected.txt:
            * platform/mac/editing/deleting/merge-different-styles-expected.txt:
            * platform/mac/editing/deleting/merge-endOfParagraph-expected.txt:
            * platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt:
            * platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt:
            * platform/mac/editing/deleting/merge-no-br-expected.txt:
            * platform/mac/editing/deleting/merge-unrendered-space-expected.txt:
            * platform/mac/editing/deleting/merge-whitespace-pre-expected.txt:
            * platform/mac/editing/deleting/non-smart-delete-expected.txt:
            * platform/mac/editing/deleting/paragraph-in-preserveNewline-expected.txt:
            * platform/mac/editing/deleting/pruning-after-merge-2-expected.txt:
            * platform/mac/editing/deleting/smart-delete-001-expected.txt:
            * platform/mac/editing/deleting/smart-delete-002-expected.txt:
            * platform/mac/editing/deleting/smart-delete-003-expected.txt:
            * platform/mac/editing/deleting/smart-delete-004-expected.txt:
            * platform/mac/editing/deleting/table-cells-expected.txt:
            * platform/mac/editing/deleting/transpose-empty-expected.txt:
            * platform/mac/editing/deleting/type-delete-after-quote-expected.txt:
            * platform/mac/editing/deleting/whitespace-pre-1-expected.txt:
            * platform/mac/editing/execCommand/4580583-1-expected.txt:
            * platform/mac/editing/execCommand/4580583-2-expected.txt:
            * platform/mac/editing/execCommand/4641880-1-expected.txt:
            * platform/mac/editing/execCommand/4641880-2-expected.txt:
            * platform/mac/editing/execCommand/4747450-expected.txt:
            * platform/mac/editing/execCommand/4786404-1-expected.txt:
            * platform/mac/editing/execCommand/4786404-2-expected.txt:
            * platform/mac/editing/execCommand/4916402-expected.txt:
            * platform/mac/editing/execCommand/4916541-expected.txt:
            * platform/mac/editing/execCommand/4920488-expected.txt:
            * platform/mac/editing/execCommand/4920742-1-expected.txt:
            * platform/mac/editing/execCommand/4924441-expected.txt:
            * platform/mac/editing/execCommand/5049671-expected.txt:
            * platform/mac/editing/execCommand/5080333-1-expected.txt:
            * platform/mac/editing/execCommand/5080333-2-expected.txt:
            * platform/mac/editing/execCommand/5136770-expected.txt:
            * platform/mac/editing/execCommand/5138441-expected.txt:
            * platform/mac/editing/execCommand/5142012-1-expected.txt:
            * platform/mac/editing/execCommand/5142012-2-expected.txt:
            * platform/mac/editing/execCommand/5190926-expected.txt:
            * platform/mac/editing/execCommand/5481523-expected.txt:
            * platform/mac/editing/execCommand/5482023-expected.txt:
            * platform/mac/editing/execCommand/5482524-expected.txt:
            * platform/mac/editing/execCommand/5569741-expected.txt:
            * platform/mac/editing/execCommand/5573879-expected.txt:
            * platform/mac/editing/execCommand/create-list-from-range-selection-expected.txt:
            * platform/mac/editing/execCommand/create-list-with-hr-expected.txt:
            * platform/mac/editing/execCommand/findString-2-expected.txt:
            * platform/mac/editing/execCommand/findString-expected.txt:
            * platform/mac/editing/execCommand/format-block-expected.txt:
            * platform/mac/editing/execCommand/format-block-from-range-selection-expected.txt:
            * platform/mac/editing/execCommand/format-block-with-braces-expected.txt:
            * platform/mac/editing/execCommand/format-block-with-trailing-br-expected.txt:
            * platform/mac/editing/execCommand/hilitecolor-expected.txt:
            * platform/mac/editing/execCommand/indent-empty-root-expected.txt:
            * platform/mac/editing/execCommand/indent-list-item-expected.txt:
            * platform/mac/editing/execCommand/indent-selection-expected.txt:
            * platform/mac/editing/execCommand/insert-list-and-stitch-expected.txt:
            * platform/mac/editing/execCommand/insert-list-empty-div-expected.txt:
            * platform/mac/editing/execCommand/insertImage-expected.txt:
            * platform/mac/editing/execCommand/nsresponder-indent-expected.txt:
            * platform/mac/editing/execCommand/nsresponder-outdent-expected.txt:
            * platform/mac/editing/execCommand/outdent-blockquote-test5-expected.txt:
            * platform/mac/editing/execCommand/outdent-selection-expected.txt:
            * platform/mac/editing/execCommand/print-expected.txt:
            * platform/mac/editing/execCommand/remove-formatting-2-expected.txt:
            * platform/mac/editing/execCommand/remove-formatting-expected.txt:
            * platform/mac/editing/execCommand/remove-list-from-range-selection-expected.txt:
            * platform/mac/editing/execCommand/remove-list-item-1-expected.txt:
            * platform/mac/editing/execCommand/selectAll-expected.txt:
            * platform/mac/editing/input/5576619-expected.txt:
            * platform/mac/editing/input/devanagari-ligature-expected.txt:
            * platform/mac/editing/input/emacs-ctrl-o-expected.txt:
            * platform/mac/editing/inserting/12882-expected.txt:
            * platform/mac/editing/inserting/4278698-expected.txt:
            * platform/mac/editing/inserting/4840662-expected.txt:
            * platform/mac/editing/inserting/4875189-1-expected.txt:
            * platform/mac/editing/inserting/4875189-2-expected.txt:
            * platform/mac/editing/inserting/4959067-expected.txt:
            * platform/mac/editing/inserting/4960120-1-expected.txt:
            * platform/mac/editing/inserting/4960120-2-expected.txt:
            * platform/mac/editing/inserting/5002441-expected.txt:
            * platform/mac/editing/inserting/5058163-1-expected.txt:
            * platform/mac/editing/inserting/5058163-2-expected.txt:
            * platform/mac/editing/inserting/5156401-2-expected.txt:
            * platform/mac/editing/inserting/5418891-expected.txt:
            * platform/mac/editing/inserting/5510537-expected.txt:
            * platform/mac/editing/inserting/5549929-2-expected.txt:
            * platform/mac/editing/inserting/5549929-3-expected.txt:
            * platform/mac/editing/inserting/5607069-2-expected.txt:
            * platform/mac/editing/inserting/5607069-3-expected.txt:
            * platform/mac/editing/inserting/6703873-expected.txt:
            * platform/mac/editing/inserting/before-after-input-element-expected.txt:
            * platform/mac/editing/inserting/break-blockquote-after-delete-expected.txt:
            * platform/mac/editing/inserting/editable-html-element-expected.txt:
            * platform/mac/editing/inserting/editable-inline-element-expected.txt:
            * platform/mac/editing/inserting/edited-whitespace-1-expected.txt:
            * platform/mac/editing/inserting/editing-empty-divs-expected.txt:
            * platform/mac/editing/inserting/insert-3654864-fix-expected.txt:
            * platform/mac/editing/inserting/insert-3659587-fix-expected.txt:
            * platform/mac/editing/inserting/insert-3775316-fix-expected.txt:
            * platform/mac/editing/inserting/insert-3778059-fix-expected.txt:
            * platform/mac/editing/inserting/insert-3786362-fix-expected.txt:
            * platform/mac/editing/inserting/insert-3800346-fix-expected.txt:
            * platform/mac/editing/inserting/insert-3851164-fix-expected.txt:
            * platform/mac/editing/inserting/insert-3907422-fix-expected.txt:
            * platform/mac/editing/inserting/insert-after-delete-001-expected.txt:
            * platform/mac/editing/inserting/insert-at-end-01-expected.txt:
            * platform/mac/editing/inserting/insert-at-end-02-expected.txt:
            * platform/mac/editing/inserting/insert-br-001-expected.txt:
            * platform/mac/editing/inserting/insert-br-002-expected.txt:
            * platform/mac/editing/inserting/insert-br-003-expected.txt:
            * platform/mac/editing/inserting/insert-br-004-expected.txt:
            * platform/mac/editing/inserting/insert-br-005-expected.txt:
            * platform/mac/editing/inserting/insert-br-006-expected.txt:
            * platform/mac/editing/inserting/insert-br-007-expected.txt:
            * platform/mac/editing/inserting/insert-br-008-expected.txt:
            * platform/mac/editing/inserting/insert-br-009-expected.txt:
            * platform/mac/editing/inserting/insert-br-at-tabspan-001-expected.txt:
            * platform/mac/editing/inserting/insert-br-at-tabspan-002-expected.txt:
            * platform/mac/editing/inserting/insert-br-at-tabspan-003-expected.txt:
            * platform/mac/editing/inserting/insert-br-quoted-001-expected.txt:
            * platform/mac/editing/inserting/insert-br-quoted-002-expected.txt:
            * platform/mac/editing/inserting/insert-br-quoted-003-expected.txt:
            * platform/mac/editing/inserting/insert-br-quoted-004-expected.txt:
            * platform/mac/editing/inserting/insert-br-quoted-005-expected.txt:
            * platform/mac/editing/inserting/insert-br-quoted-006-expected.txt:
            * platform/mac/editing/inserting/insert-div-001-expected.txt:
            * platform/mac/editing/inserting/insert-div-002-expected.txt:
            * platform/mac/editing/inserting/insert-div-003-expected.txt:
            * platform/mac/editing/inserting/insert-div-004-expected.txt:
            * platform/mac/editing/inserting/insert-div-005-expected.txt:
            * platform/mac/editing/inserting/insert-div-006-expected.txt:
            * platform/mac/editing/inserting/insert-div-007-expected.txt:
            * platform/mac/editing/inserting/insert-div-008-expected.txt:
            * platform/mac/editing/inserting/insert-div-009-expected.txt:
            * platform/mac/editing/inserting/insert-div-010-expected.txt:
            * platform/mac/editing/inserting/insert-div-011-expected.txt:
            * platform/mac/editing/inserting/insert-div-012-expected.txt:
            * platform/mac/editing/inserting/insert-div-013-expected.txt:
            * platform/mac/editing/inserting/insert-div-014-expected.txt:
            * platform/mac/editing/inserting/insert-div-015-expected.txt:
            * platform/mac/editing/inserting/insert-div-016-expected.txt:
            * platform/mac/editing/inserting/insert-div-017-expected.txt:
            * platform/mac/editing/inserting/insert-div-018-expected.txt:
            * platform/mac/editing/inserting/insert-div-019-expected.txt:
            * platform/mac/editing/inserting/insert-div-020-expected.txt:
            * platform/mac/editing/inserting/insert-div-021-expected.txt:
            * platform/mac/editing/inserting/insert-div-022-expected.txt:
            * platform/mac/editing/inserting/insert-div-023-expected.txt:
            * platform/mac/editing/inserting/insert-div-024-expected.txt:
            * platform/mac/editing/inserting/insert-div-025-expected.txt:
            * platform/mac/editing/inserting/insert-div-026-expected.txt:
            * platform/mac/editing/inserting/insert-div-027-expected.txt:
            * platform/mac/editing/inserting/insert-paragraph-01-expected.txt:
            * platform/mac/editing/inserting/insert-paragraph-02-expected.txt:
            * platform/mac/editing/inserting/insert-paragraph-03-expected.txt:
            * platform/mac/editing/inserting/insert-paragraph-04-expected.txt:
            * platform/mac/editing/inserting/insert-paragraph-05-expected.txt:
            * platform/mac/editing/inserting/insert-space-in-empty-doc-expected.txt:
            * platform/mac/editing/inserting/insert-tab-001-expected.txt:
            * platform/mac/editing/inserting/insert-tab-002-expected.txt:
            * platform/mac/editing/inserting/insert-tab-003-expected.txt:
            * platform/mac/editing/inserting/insert-tab-004-expected.txt:
            * platform/mac/editing/inserting/insert-text-at-tabspan-001-expected.txt:
            * platform/mac/editing/inserting/insert-text-at-tabspan-002-expected.txt:
            * platform/mac/editing/inserting/insert-text-at-tabspan-003-expected.txt:
            * platform/mac/editing/inserting/insert-text-with-newlines-expected.txt:
            * platform/mac/editing/inserting/line-break-expected.txt:
            * platform/mac/editing/inserting/multiple-lines-selected-expected.txt:
            * platform/mac/editing/inserting/paragraph-separator-01-expected.txt:
            * platform/mac/editing/inserting/paragraph-separator-02-expected.txt:
            * platform/mac/editing/inserting/paragraph-separator-03-expected.txt:
            * platform/mac/editing/inserting/paragraph-separator-in-table-1-expected.txt:
            * platform/mac/editing/inserting/paragraph-separator-in-table-2-expected.txt:
            * platform/mac/editing/inserting/redo-expected.txt:
            * platform/mac/editing/inserting/return-key-with-selection-001-expected.txt:
            * platform/mac/editing/inserting/return-key-with-selection-002-expected.txt:
            * platform/mac/editing/inserting/return-key-with-selection-003-expected.txt:
            * platform/mac/editing/inserting/typing-001-expected.txt:
            * platform/mac/editing/inserting/typing-002-expected.txt:
            * platform/mac/editing/inserting/typing-003-expected.txt:
            * platform/mac/editing/inserting/typing-around-br-001-expected.txt:
            * platform/mac/editing/inserting/typing-around-image-001-expected.txt:
            * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt:
            * platform/mac/editing/pasteboard/3976872-expected.txt:
            * platform/mac/editing/pasteboard/4076267-2-expected.txt:
            * platform/mac/editing/pasteboard/4076267-3-expected.txt:
            * platform/mac/editing/pasteboard/4076267-expected.txt:
            * platform/mac/editing/pasteboard/4242293-1-expected.txt:
            * platform/mac/editing/pasteboard/4242293-expected.txt:
            * platform/mac/editing/pasteboard/4631972-expected.txt:
            * platform/mac/editing/pasteboard/4641033-expected.txt:
            * platform/mac/editing/pasteboard/4700297-expected.txt:
            * platform/mac/editing/pasteboard/4806874-expected.txt:
            * platform/mac/editing/pasteboard/4861080-expected.txt:
            * platform/mac/editing/pasteboard/4944770-1-expected.txt:
            * platform/mac/editing/pasteboard/4944770-2-expected.txt:
            * platform/mac/editing/pasteboard/4947130-expected.txt:
            * platform/mac/editing/pasteboard/4989774-expected.txt:
            * platform/mac/editing/pasteboard/5006779-expected.txt:
            * platform/mac/editing/pasteboard/5027857-expected.txt:
            * platform/mac/editing/pasteboard/5028447-expected.txt:
            * platform/mac/editing/pasteboard/5032095-expected.txt:
            * platform/mac/editing/pasteboard/5065605-expected.txt:
            * platform/mac/editing/pasteboard/5071074-2-expected.txt:
            * platform/mac/editing/pasteboard/5071074-expected.txt:
            * platform/mac/editing/pasteboard/5075944-2-expected.txt:
            * platform/mac/editing/pasteboard/5075944-3-expected.txt:
            * platform/mac/editing/pasteboard/5075944-expected.txt:
            * platform/mac/editing/pasteboard/5089327-expected.txt:
            * platform/mac/editing/pasteboard/5134759-expected.txt:
            * platform/mac/editing/pasteboard/5156401-1-expected.txt:
            * platform/mac/editing/pasteboard/5247341-expected.txt:
            * platform/mac/editing/pasteboard/5368833-expected.txt:
            * platform/mac/editing/pasteboard/5387578-expected.txt:
            * platform/mac/editing/pasteboard/5478250-expected.txt:
            * platform/mac/editing/pasteboard/5483567-expected.txt:
            * platform/mac/editing/pasteboard/5583362-expected.txt:
            * platform/mac/editing/pasteboard/5601583-1-expected.txt:
            * platform/mac/editing/pasteboard/8145-1-expected.txt:
            * platform/mac/editing/pasteboard/8145-2-expected.txt:
            * platform/mac/editing/pasteboard/8145-3-expected.txt:
            * platform/mac/editing/pasteboard/bad-placeholder-expected.txt:
            * platform/mac/editing/pasteboard/block-wrappers-necessary-expected.txt:
            * platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt:
            * platform/mac/editing/pasteboard/copy-standalone-image-expected.txt:
            * platform/mac/editing/pasteboard/cut-text-001-expected.txt:
            * platform/mac/editing/pasteboard/displaced-generic-placeholder-expected.txt:
            * platform/mac/editing/pasteboard/displaced-placeholder-expected.txt:
            * platform/mac/editing/pasteboard/display-block-on-spans-expected.txt:
            * platform/mac/editing/pasteboard/drag-drop-dead-frame-expected.txt:
            * platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt:
            * platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt:
            * platform/mac/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt:
            * platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt:
            * platform/mac/editing/pasteboard/emacs-cntl-y-001-expected.txt:
            * platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt:
            * platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt:
            * platform/mac/editing/pasteboard/input-field-1-expected.txt:
            * platform/mac/editing/pasteboard/interchange-newline-1-expected.txt:
            * platform/mac/editing/pasteboard/interchange-newline-2-expected.txt:
            * platform/mac/editing/pasteboard/interchange-newline-3-expected.txt:
            * platform/mac/editing/pasteboard/interchange-newline-4-expected.txt:
            * platform/mac/editing/pasteboard/merge-after-delete-1-expected.txt:
            * platform/mac/editing/pasteboard/merge-after-delete-2-expected.txt:
            * platform/mac/editing/pasteboard/merge-after-delete-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-1-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-2-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-3-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-4-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-5-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-blockquote-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-borders-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-list-expected.txt:
            * platform/mac/editing/pasteboard/merge-end-table-expected.txt:
            * platform/mac/editing/pasteboard/merge-start-blockquote-expected.txt:
            * platform/mac/editing/pasteboard/merge-start-list-expected.txt:
            * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt:
            * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt:
            * platform/mac/editing/pasteboard/paste-4035648-fix-expected.txt:
            * platform/mac/editing/pasteboard/paste-4038267-fix-expected.txt:
            * platform/mac/editing/pasteboard/paste-4039777-fix-expected.txt:
            * platform/mac/editing/pasteboard/paste-RTFD-expected.txt:
            * platform/mac/editing/pasteboard/paste-TIFF-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-1-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-2-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-3-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt:
            * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-001-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-002-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-003-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-004-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-005-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-006-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-007-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-008-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-009-expected.txt:
            * platform/mac/editing/pasteboard/paste-line-endings-010-expected.txt:
            * platform/mac/editing/pasteboard/paste-list-001-expected.txt:
            * platform/mac/editing/pasteboard/paste-match-style-001-expected.txt:
            * platform/mac/editing/pasteboard/paste-match-style-002-expected.txt:
            * platform/mac/editing/pasteboard/paste-pre-001-expected.txt:
            * platform/mac/editing/pasteboard/paste-pre-002-expected.txt:
            * platform/mac/editing/pasteboard/paste-table-001-expected.txt:
            * platform/mac/editing/pasteboard/paste-table-003-expected.txt:
            * platform/mac/editing/pasteboard/paste-table-cells-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-001-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-002-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-003-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-004-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-005-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-006-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-007-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-008-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-009-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-010-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-011-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-012-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-013-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-014-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-015-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-016-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-017-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-018-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-019-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
            * platform/mac/editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
            * platform/mac/editing/pasteboard/paste-unrendered-select-expected.txt:
            * platform/mac/editing/pasteboard/paste-xml-expected.txt:
            * platform/mac/editing/pasteboard/pasting-object-expected.txt:
            * platform/mac/editing/pasteboard/pasting-tabs-expected.txt:
            * platform/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt:
            * platform/mac/editing/pasteboard/quirks-mode-br-1-expected.txt:
            * platform/mac/editing/pasteboard/select-element-1-expected.txt:
            * platform/mac/editing/pasteboard/smart-drag-drop-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-001-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-002-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-003-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-004-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-005-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-006-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-007-expected.txt:
            * platform/mac/editing/pasteboard/smart-paste-008-expected.txt:
            * platform/mac/editing/pasteboard/styled-element-markup-expected.txt:
            * platform/mac/editing/pasteboard/testcase-9507-expected.txt:
            * platform/mac/editing/pasteboard/undoable-fragment-removes-expected.txt:
            * platform/mac/editing/pasteboard/unrendered-br-expected.txt:
            * platform/mac/editing/selection/13804-expected.txt:
            * platform/mac/editing/selection/14971-expected.txt:
            * platform/mac/editing/selection/25228-expected.txt:
            * platform/mac/editing/selection/3690703-2-expected.txt:
            * platform/mac/editing/selection/3690703-expected.txt:
            * platform/mac/editing/selection/3690719-expected.txt:
            * platform/mac/editing/selection/4397952-expected.txt:
            * platform/mac/editing/selection/4402375-expected.txt:
            * platform/mac/editing/selection/4818145-expected.txt:
            * platform/mac/editing/selection/4866671-expected.txt:
            * platform/mac/editing/selection/4889598-expected.txt:
            * platform/mac/editing/selection/4895428-1-expected.txt:
            * platform/mac/editing/selection/4895428-2-expected.txt:
            * platform/mac/editing/selection/4895428-3-expected.txt:
            * platform/mac/editing/selection/4895428-4-expected.txt:
            * platform/mac/editing/selection/4932260-1-expected.txt:
            * platform/mac/editing/selection/4932260-2-expected.txt:
            * platform/mac/editing/selection/4932260-3-expected.txt:
            * platform/mac/editing/selection/4947387-expected.txt:
            * platform/mac/editing/selection/4960116-expected.txt:
            * platform/mac/editing/selection/4975120-expected.txt:
            * platform/mac/editing/selection/4983858-expected.txt:
            * platform/mac/editing/selection/5007143-2-expected.txt:
            * platform/mac/editing/selection/5007143-expected.txt:
            * platform/mac/editing/selection/5057506-2-expected.txt:
            * platform/mac/editing/selection/5057506-expected.txt:
            * platform/mac/editing/selection/5076323-1-expected.txt:
            * platform/mac/editing/selection/5076323-2-expected.txt:
            * platform/mac/editing/selection/5076323-3-expected.txt:
            * platform/mac/editing/selection/5081257-1-expected.txt:
            * platform/mac/editing/selection/5081257-2-expected.txt:
            * platform/mac/editing/selection/5099303-expected.txt:
            * platform/mac/editing/selection/5109817-expected.txt:
            * platform/mac/editing/selection/5131716-1-expected.txt:
            * platform/mac/editing/selection/5131716-2-expected.txt:
            * platform/mac/editing/selection/5131716-3-expected.txt:
            * platform/mac/editing/selection/5131716-4-expected.txt:
            * platform/mac/editing/selection/5195166-2-expected.txt:
            * platform/mac/editing/selection/5232159-expected.txt:
            * platform/mac/editing/selection/5234383-1-expected.txt:
            * platform/mac/editing/selection/5234383-2-expected.txt:
            * platform/mac/editing/selection/5240265-expected.txt:
            * platform/mac/editing/selection/5333725-expected.txt:
            * platform/mac/editing/selection/5354455-1-expected.txt:
            * platform/mac/editing/selection/5354455-2-expected.txt:
            * platform/mac/editing/selection/6476-expected.txt:
            * platform/mac/editing/selection/7152-1-expected.txt:
            * platform/mac/editing/selection/7152-2-expected.txt:
            * platform/mac/editing/selection/addRange-expected.txt:
            * platform/mac/editing/selection/after-line-wrap-expected.txt:
            * platform/mac/editing/selection/caret-and-focus-ring-expected.txt:
            * platform/mac/editing/selection/caret-before-select-expected.txt:
            * platform/mac/editing/selection/caret-rtl-2-expected.txt:
            * platform/mac/editing/selection/caret-rtl-expected.txt:
            * platform/mac/editing/selection/click-start-of-line-expected.txt:
            * platform/mac/editing/selection/contains-boundaries-expected.txt:
            * platform/mac/editing/selection/contenteditable-click-inside-expected.txt:
            * platform/mac/editing/selection/designmode-no-caret-expected.txt:
            * platform/mac/editing/selection/display-table-text-expected.txt:
            * platform/mac/editing/selection/doubleclick-crash-expected.txt:
            * platform/mac/editing/selection/drag-select-1-expected.txt:
            * platform/mac/editing/selection/drag-text-delay-expected.txt:
            * platform/mac/editing/selection/drag-to-contenteditable-iframe-expected.txt:
            * platform/mac/editing/selection/editable-html-element-expected.txt:
            * platform/mac/editing/selection/editable-links-expected.txt:
            * platform/mac/editing/selection/editable-non-editable-crash-expected.txt:
            * platform/mac/editing/selection/end-of-document-expected.txt:
            * platform/mac/editing/selection/expanding-selections-expected.txt:
            * platform/mac/editing/selection/expanding-selections2-expected.txt:
            * platform/mac/editing/selection/extend-by-character-001-expected.txt:
            * platform/mac/editing/selection/extend-by-character-002-expected.txt:
            * platform/mac/editing/selection/extend-by-character-003-expected.txt:
            * platform/mac/editing/selection/extend-by-character-004-expected.txt:
            * platform/mac/editing/selection/extend-by-character-005-expected.txt:
            * platform/mac/editing/selection/extend-by-character-006-expected.txt:
            * platform/mac/editing/selection/extend-by-sentence-001-expected.txt:
            * platform/mac/editing/selection/extend-by-word-001-expected.txt:
            * platform/mac/editing/selection/extend-by-word-002-expected.txt:
            * platform/mac/editing/selection/fake-doubleclick-expected.txt:
            * platform/mac/editing/selection/fake-drag-expected.txt:
            * platform/mac/editing/selection/focus-body-expected.txt:
            * platform/mac/editing/selection/focus_editable_html-expected.txt:
            * platform/mac/editing/selection/iframe-expected.txt:
            * platform/mac/editing/selection/image-before-linebreak-expected.txt:
            * platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt:
            * platform/mac/editing/selection/inline-closest-leaf-child-expected.txt:
            * platform/mac/editing/selection/inline-table-expected.txt:
            * platform/mac/editing/selection/leave-requested-block-expected.txt:
            * platform/mac/editing/selection/line-wrap-1-expected.txt:
            * platform/mac/editing/selection/line-wrap-2-expected.txt:
            * platform/mac/editing/selection/mixed-editability-1-expected.txt:
            * platform/mac/editing/selection/mixed-editability-2-expected.txt:
            * platform/mac/editing/selection/mixed-editability-3-expected.txt:
            * platform/mac/editing/selection/mixed-editability-4-expected.txt:
            * platform/mac/editing/selection/mixed-editability-5-expected.txt:
            * platform/mac/editing/selection/mixed-editability-6-expected.txt:
            * platform/mac/editing/selection/mixed-editability-7-expected.txt:
            * platform/mac/editing/selection/mixed-editability-8-expected.txt:
            * platform/mac/editing/selection/mixed-editability-9-expected.txt:
            * platform/mac/editing/selection/move-3875618-fix-expected.txt:
            * platform/mac/editing/selection/move-3875641-fix-expected.txt:
            * platform/mac/editing/selection/move-backwords-by-word-001-expected.txt:
            * platform/mac/editing/selection/move-between-blocks-no-001-expected.txt:
            * platform/mac/editing/selection/move-between-blocks-yes-001-expected.txt:
            * platform/mac/editing/selection/move-by-character-001-expected.txt:
            * platform/mac/editing/selection/move-by-character-002-expected.txt:
            * platform/mac/editing/selection/move-by-character-003-expected.txt:
            * platform/mac/editing/selection/move-by-character-004-expected.txt:
            * platform/mac/editing/selection/move-by-character-005-expected.txt:
            * platform/mac/editing/selection/move-by-character-6-expected.txt:
            * platform/mac/editing/selection/move-by-line-001-expected.txt:
            * platform/mac/editing/selection/move-by-line-002-expected.txt:
            * platform/mac/editing/selection/move-by-sentence-001-expected.txt:
            * platform/mac/editing/selection/move-by-sentence-linebreak-expected.txt:
            * platform/mac/editing/selection/move-by-word-001-expected.txt:
            * platform/mac/editing/selection/move-past-trailing-space-expected.txt:
            * platform/mac/editing/selection/node-removal-2-expected.txt:
            * platform/mac/editing/selection/paragraph-granularity-expected.txt:
            * platform/mac/editing/selection/previous-line-position-expected.txt:
            * platform/mac/editing/selection/range-between-block-and-inline-expected.txt:
            * platform/mac/editing/selection/replace-selection-1-expected.txt:
            * platform/mac/editing/selection/replaced-boundaries-1-expected.txt:
            * platform/mac/editing/selection/replaced-boundaries-2-expected.txt:
            * platform/mac/editing/selection/replaced-boundaries-3-expected.txt:
            * platform/mac/editing/selection/select-all-001-expected.txt:
            * platform/mac/editing/selection/select-all-002-expected.txt:
            * platform/mac/editing/selection/select-all-003-expected.txt:
            * platform/mac/editing/selection/select-all-004-expected.txt:
            * platform/mac/editing/selection/select-all-005-expected.txt:
            * platform/mac/editing/selection/select-all-006-expected.txt:
            * platform/mac/editing/selection/select-box-expected.txt:
            * platform/mac/editing/selection/select-element-paragraph-boundary-expected.txt:
            * platform/mac/editing/selection/select-from-textfield-outwards-expected.txt:
            * platform/mac/editing/selection/select-missing-image-expected.txt:
            * platform/mac/editing/selection/select-text-overflow-ellipsis-expected.txt:
            * platform/mac/editing/selection/selection-3748164-fix-expected.txt:
            * platform/mac/editing/selection/selection-actions-expected.txt:
            * platform/mac/editing/selection/selection-background-expected.txt:
            * platform/mac/editing/selection/table-caret-1-expected.txt:
            * platform/mac/editing/selection/table-caret-2-expected.txt:
            * platform/mac/editing/selection/table-caret-3-expected.txt:
            * platform/mac/editing/selection/transformed-selection-rects-expected.txt:
            * platform/mac/editing/selection/triple-click-in-pre-expected.txt:
            * platform/mac/editing/selection/unrendered-001-expected.txt:
            * platform/mac/editing/selection/unrendered-002-expected.txt:
            * platform/mac/editing/selection/unrendered-003-expected.txt:
            * platform/mac/editing/selection/unrendered-004-expected.txt:
            * platform/mac/editing/selection/unrendered-005-expected.txt:
            * platform/mac/editing/selection/unrendered-space-expected.txt:
            * platform/mac/editing/selection/word-granularity-expected.txt:
            * platform/mac/editing/selection/wrapped-line-caret-1-expected.txt:
            * platform/mac/editing/selection/wrapped-line-caret-2-expected.txt:
            * platform/mac/editing/spelling/spellcheck-attribute-expected.txt:
            * platform/mac/editing/spelling/spelling-expected.txt:
            * platform/mac/editing/spelling/spelling-linebreak-expected.txt:
            * platform/mac/editing/style/4916887-expected.txt:
            * platform/mac/editing/style/5017613-1-expected.txt:
            * platform/mac/editing/style/5017613-2-expected.txt:
            * platform/mac/editing/style/5046875-1-expected.txt:
            * platform/mac/editing/style/5046875-2-expected.txt:
            * platform/mac/editing/style/5065910-expected.txt:
            * platform/mac/editing/style/5084241-expected.txt:
            * platform/mac/editing/style/5091898-expected.txt:
            * platform/mac/editing/style/5228141-expected.txt:
            * platform/mac/editing/style/5279521-expected.txt:
            * platform/mac/editing/style/apple-style-editable-mix-expected.txt:
            * platform/mac/editing/style/block-style-001-expected.txt:
            * platform/mac/editing/style/block-style-002-expected.txt:
            * platform/mac/editing/style/block-style-003-expected.txt:
            * platform/mac/editing/style/block-style-004-expected.txt:
            * platform/mac/editing/style/block-style-005-expected.txt:
            * platform/mac/editing/style/block-style-006-expected.txt:
            * platform/mac/editing/style/block-styles-007-expected.txt:
            * platform/mac/editing/style/create-block-for-style-001-expected.txt:
            * platform/mac/editing/style/create-block-for-style-002-expected.txt:
            * platform/mac/editing/style/create-block-for-style-003-expected.txt:
            * platform/mac/editing/style/create-block-for-style-004-expected.txt:
            * platform/mac/editing/style/create-block-for-style-005-expected.txt:
            * platform/mac/editing/style/create-block-for-style-006-expected.txt:
            * platform/mac/editing/style/create-block-for-style-007-expected.txt:
            * platform/mac/editing/style/create-block-for-style-008-expected.txt:
            * platform/mac/editing/style/create-block-for-style-009-expected.txt:
            * platform/mac/editing/style/create-block-for-style-010-expected.txt:
            * platform/mac/editing/style/create-block-for-style-011-expected.txt:
            * platform/mac/editing/style/create-block-for-style-012-expected.txt:
            * platform/mac/editing/style/create-block-for-style-013-expected.txt:
            * platform/mac/editing/style/designmode-expected.txt:
            * platform/mac/editing/style/font-family-with-space-expected.txt:
            * platform/mac/editing/style/fontsize-1-expected.txt:
            * platform/mac/editing/style/highlight-expected.txt:
            * platform/mac/editing/style/non-inheritable-styles-expected.txt:
            * platform/mac/editing/style/relative-font-size-change-001-expected.txt:
            * platform/mac/editing/style/relative-font-size-change-002-expected.txt:
            * platform/mac/editing/style/relative-font-size-change-003-expected.txt:
            * platform/mac/editing/style/relative-font-size-change-004-expected.txt:
            * platform/mac/editing/style/smoosh-styles-001-expected.txt:
            * platform/mac/editing/style/smoosh-styles-003-expected.txt:
            * platform/mac/editing/style/style-3681552-fix-001-expected.txt:
            * platform/mac/editing/style/style-3681552-fix-002-expected.txt:
            * platform/mac/editing/style/style-3690704-fix-expected.txt:
            * platform/mac/editing/style/style-3998892-fix-expected.txt:
            * platform/mac/editing/style/style-boundary-001-expected.txt:
            * platform/mac/editing/style/style-boundary-002-expected.txt:
            * platform/mac/editing/style/style-boundary-003-expected.txt:
            * platform/mac/editing/style/style-boundary-004-expected.txt:
            * platform/mac/editing/style/style-boundary-005-expected.txt:
            * platform/mac/editing/style/table-selection-expected.txt:
            * platform/mac/editing/style/typing-style-001-expected.txt:
            * platform/mac/editing/style/typing-style-002-expected.txt:
            * platform/mac/editing/style/typing-style-003-expected.txt:
            * platform/mac/editing/style/unbold-in-bold-expected.txt:
            * platform/mac/editing/undo/4063751-expected.txt:
            * platform/mac/editing/undo/5378473-expected.txt:
            * platform/mac/editing/undo/redo-typing-001-expected.txt:
            * platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt:
            * platform/mac/editing/undo/undo-combined-delete-expected.txt:
            * platform/mac/editing/undo/undo-delete-boundary-expected.txt:
            * platform/mac/editing/undo/undo-delete-expected.txt:
            * platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt:
            * platform/mac/editing/undo/undo-forward-delete-expected.txt:
            * platform/mac/editing/undo/undo-misspellings-expected.txt:
            * platform/mac/editing/undo/undo-typing-001-expected.txt:
            * platform/mac/editing/unsupported-content/list-delete-001-expected.txt:
            * platform/mac/editing/unsupported-content/list-delete-003-expected.txt:
            * platform/mac/editing/unsupported-content/list-type-after-expected.txt:
            * platform/mac/editing/unsupported-content/list-type-before-expected.txt:
            * platform/mac/editing/unsupported-content/table-delete-001-expected.txt:
            * platform/mac/editing/unsupported-content/table-delete-002-expected.txt:
            * platform/mac/editing/unsupported-content/table-delete-003-expected.txt:
            * platform/mac/editing/unsupported-content/table-type-after-expected.txt:
            * platform/mac/editing/unsupported-content/table-type-before-expected.txt:
            * platform/mac/fast/backgrounds/solid-color-context-restore-expected.txt:
            * platform/mac/fast/block/float/relative-painted-twice-expected.txt:
            * platform/mac/fast/css-generated-content/hover-style-change-expected.txt:
            * platform/mac/fast/css/layerZOrderCrash-expected.txt:
            * platform/mac/fast/css/shadow-multiple-expected.txt:
            * platform/mac/fast/css/universal-hover-quirk-expected.txt:
            * platform/mac/fast/dom/delete-contents-expected.txt:
            * platform/mac/fast/dom/focus-contenteditable-expected.txt:
            * platform/mac/fast/dynamic/layer-hit-test-crash-expected.txt:
            * platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt:
            * platform/mac/fast/events/5056619-expected.txt:
            * platform/mac/fast/events/autoscroll-expected.txt:
            * platform/mac/fast/events/context-no-deselect-expected.txt:
            * platform/mac/fast/events/label-focus-expected.txt:
            * platform/mac/fast/events/pointer-events-dashboard-expected.txt:
            * platform/mac/fast/events/updateLayoutForHitTest-expected.txt:
            * platform/mac/fast/forms/caret-rtl-expected.txt:
            * platform/mac/fast/forms/form-added-to-table-expected.txt:
            * platform/mac/fast/forms/input-appearance-focus-expected.txt:
            * platform/mac/fast/forms/input-appearance-readonly-expected.txt:
            * platform/mac/fast/forms/input-appearance-selection-expected.txt:
            * platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt:
            * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt:
            * platform/mac/fast/forms/input-paste-undo-expected.txt:
            * platform/mac/fast/forms/input-readonly-autoscroll-expected.txt:
            * platform/mac/fast/forms/input-text-click-inside-expected.txt:
            * platform/mac/fast/forms/input-text-click-outside-expected.txt:
            * platform/mac/fast/forms/input-text-double-click-expected.txt:
            * platform/mac/fast/forms/input-text-drag-down-expected.txt:
            * platform/mac/fast/forms/input-text-option-delete-expected.txt:
            * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt:
            * platform/mac/fast/forms/input-text-self-emptying-click-expected.txt:
            * platform/mac/fast/forms/plaintext-mode-2-expected.txt:
            * platform/mac/fast/forms/search-rtl-expected.txt:
            * platform/mac/fast/forms/search-transformed-expected.txt:
            * platform/mac/fast/forms/search-zoomed-expected.txt:
            * platform/mac/fast/forms/tabbing-input-iframe-expected.txt:
            * platform/mac/fast/forms/textarea-scrollbar-expected.txt:
            * platform/mac/fast/forms/textarea-scrolled-type-expected.txt:
            * platform/mac/fast/forms/textfield-outline-expected.txt:
            * platform/mac/fast/forms/textfield-overflow-expected.txt:
            * platform/mac/fast/frames/take-focus-from-iframe-expected.txt:
            * platform/mac/fast/inline-block/14498-positionForCoordinates-expected.txt:
            * platform/mac/fast/inline/25277-2-expected.txt:
            * platform/mac/fast/inline/25277-expected.txt:
            * platform/mac/fast/lists/drag-into-marker-expected.txt:
            * platform/mac/fast/lists/markers-in-selection-expected.txt:
            * platform/mac/fast/overflow/image-selection-highlight-expected.txt:
            * platform/mac/fast/overflow/overflow-focus-ring-expected.txt:
            * platform/mac/fast/overflow/overflow-text-hit-testing-expected.txt:
            * platform/mac/fast/reflections/inline-crash-expected.txt:
            * platform/mac/fast/repaint/4776765-expected.txt:
            * platform/mac/fast/repaint/block-selection-gap-in-composited-layer-expected.txt:
            * platform/mac/fast/repaint/caret-outside-block-expected.txt:
            * platform/mac/fast/repaint/delete-into-nested-block-expected.txt:
            * platform/mac/fast/repaint/inline-outline-repaint-expected.txt:
            * platform/mac/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt:
            * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt:
            * platform/mac/fast/repaint/selected-replaced-expected.txt:
            * platform/mac/fast/repaint/selection-after-delete-expected.txt:
            * platform/mac/fast/repaint/selection-after-remove-expected.txt:
            * platform/mac/fast/repaint/subtree-root-skipped-expected.txt:
            * platform/mac/fast/replaced/selection-rect-expected.txt:
            * platform/mac/fast/replaced/selection-rect-in-table-cell-expected.txt:
            * platform/mac/fast/replaced/selection-rect-transform-expected.txt:
            * platform/mac/fast/selectors/159-expected.txt:
            * platform/mac/fast/selectors/177a-expected.txt:
            * platform/mac/fast/table/click-near-anonymous-table-expected.txt:
            * platform/mac/fast/text/atsui-kerning-and-ligatures-expected.txt:
            * platform/mac/fast/text/atsui-partial-selection-expected.txt:
            * platform/mac/fast/text/atsui-pointtooffset-calls-cg-expected.txt:
            * platform/mac/fast/text/atsui-rtl-override-selection-expected.txt:
            * platform/mac/fast/text/delete-hard-break-character-expected.txt:
            * platform/mac/fast/text/in-rendered-text-rtl-expected.txt:
            * platform/mac/fast/text/international/khmer-selection-expected.txt:
            * platform/mac/fast/text/international/rtl-caret-expected.txt:
            * platform/mac/fast/text/justified-selection-at-edge-expected.txt:
            * platform/mac/fast/text/justified-selection-expected.txt:
            * platform/mac/fast/text/justified-text-rect-expected.txt:
            * platform/mac/fast/text/selection-painted-separately-expected.txt:
            * platform/mac/fast/text/should-use-atsui-expected.txt:
            * platform/mac/fast/text/textIteratorNilRenderer-expected.txt:
            * platform/mac/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt:
            * platform/mac/fast/transforms/transformed-caret-expected.txt:
            * platform/mac/fast/transforms/transformed-focused-text-input-expected.txt:
            * platform/mac/svg/custom/hit-test-with-br-expected.txt:
            * platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt:
            * platform/mac/svg/text/selection-background-color-expected.txt:
            * platform/mac/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
    
            This requires updating the results of many layout tests,
            but has no functional change.
    
            * rendering/RenderTreeAsText.cpp:
            (WebCore::nodePosition):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63291 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 6f44865..07272ea 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,816 @@
+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:
+        * platform/mac/editing/deleting/4922367-expected.txt:
+        * platform/mac/editing/deleting/5026848-1-expected.txt:
+        * platform/mac/editing/deleting/5026848-2-expected.txt:
+        * platform/mac/editing/deleting/5026848-3-expected.txt:
+        * platform/mac/editing/deleting/5032066-expected.txt:
+        * platform/mac/editing/deleting/5091898-expected.txt:
+        * platform/mac/editing/deleting/5099303-expected.txt:
+        * platform/mac/editing/deleting/5115601-expected.txt:
+        * platform/mac/editing/deleting/5126166-expected.txt:
+        * platform/mac/editing/deleting/5144139-2-expected.txt:
+        * platform/mac/editing/deleting/5156801-2-expected.txt:
+        * platform/mac/editing/deleting/5168598-expected.txt:
+        * platform/mac/editing/deleting/5206311-1-expected.txt:
+        * platform/mac/editing/deleting/5206311-2-expected.txt:
+        * platform/mac/editing/deleting/5272440-expected.txt:
+        * platform/mac/editing/deleting/5300379-expected.txt:
+        * platform/mac/editing/deleting/5369009-expected.txt:
+        * platform/mac/editing/deleting/5390681-2-expected.txt:
+        * platform/mac/editing/deleting/5390681-expected.txt:
+        * platform/mac/editing/deleting/5408255-expected.txt:
+        * platform/mac/editing/deleting/5433862-2-expected.txt:
+        * platform/mac/editing/deleting/5483370-expected.txt:
+        * platform/mac/editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3608430-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3608445-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3608462-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3775172-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3800834-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3857753-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3865854-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3928305-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-3959464-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-4038408-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-4083333-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-after-span-ws-001-expected.txt:
+        * platform/mac/editing/deleting/delete-after-span-ws-002-expected.txt:
+        * platform/mac/editing/deleting/delete-after-span-ws-003-expected.txt:
+        * platform/mac/editing/deleting/delete-and-undo-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
+        * platform/mac/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
+        * platform/mac/editing/deleting/delete-at-start-or-end-expected.txt:
+        * platform/mac/editing/deleting/delete-block-contents-001-expected.txt:
+        * platform/mac/editing/deleting/delete-block-contents-002-expected.txt:
+        * platform/mac/editing/deleting/delete-block-contents-003-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-001-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-002-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-003-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-004-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-005-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-006-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-007-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-008-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-009-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-010-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-011-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-012-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-013-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-014-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-015-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-016-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-017-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-018-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-019-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-020-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-021-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-022-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-023-expected.txt:
+        * platform/mac/editing/deleting/delete-block-merge-contents-024-expected.txt:
+        * platform/mac/editing/deleting/delete-block-table-expected.txt:
+        * platform/mac/editing/deleting/delete-br-001-expected.txt:
+        * platform/mac/editing/deleting/delete-br-002-expected.txt:
+        * platform/mac/editing/deleting/delete-br-003-expected.txt:
+        * platform/mac/editing/deleting/delete-br-004-expected.txt:
+        * platform/mac/editing/deleting/delete-br-005-expected.txt:
+        * platform/mac/editing/deleting/delete-br-006-expected.txt:
+        * platform/mac/editing/deleting/delete-br-007-expected.txt:
+        * platform/mac/editing/deleting/delete-br-008-expected.txt:
+        * platform/mac/editing/deleting/delete-br-009-expected.txt:
+        * platform/mac/editing/deleting/delete-br-010-expected.txt:
+        * platform/mac/editing/deleting/delete-br-011-expected.txt:
+        * platform/mac/editing/deleting/delete-br-012-expected.txt:
+        * platform/mac/editing/deleting/delete-br-013-expected.txt:
+        * platform/mac/editing/deleting/delete-by-word-001-expected.txt:
+        * platform/mac/editing/deleting/delete-by-word-002-expected.txt:
+        * platform/mac/editing/deleting/delete-character-001-expected.txt:
+        * platform/mac/editing/deleting/delete-contiguous-ws-001-expected.txt:
+        * platform/mac/editing/deleting/delete-first-list-item-expected.txt:
+        * platform/mac/editing/deleting/delete-hr-expected.txt:
+        * platform/mac/editing/deleting/delete-image-001-expected.txt:
+        * platform/mac/editing/deleting/delete-image-002-expected.txt:
+        * platform/mac/editing/deleting/delete-image-003-expected.txt:
+        * platform/mac/editing/deleting/delete-image-004-expected.txt:
+        * platform/mac/editing/deleting/delete-leading-ws-001-expected.txt:
+        * platform/mac/editing/deleting/delete-line-001-expected.txt:
+        * platform/mac/editing/deleting/delete-line-002-expected.txt:
+        * platform/mac/editing/deleting/delete-line-003-expected.txt:
+        * platform/mac/editing/deleting/delete-line-004-expected.txt:
+        * platform/mac/editing/deleting/delete-line-005-expected.txt:
+        * platform/mac/editing/deleting/delete-line-006-expected.txt:
+        * platform/mac/editing/deleting/delete-line-007-expected.txt:
+        * platform/mac/editing/deleting/delete-line-008-expected.txt:
+        * platform/mac/editing/deleting/delete-line-009-expected.txt:
+        * platform/mac/editing/deleting/delete-line-010-expected.txt:
+        * platform/mac/editing/deleting/delete-line-011-expected.txt:
+        * platform/mac/editing/deleting/delete-line-012-expected.txt:
+        * platform/mac/editing/deleting/delete-line-013-expected.txt:
+        * platform/mac/editing/deleting/delete-line-014-expected.txt:
+        * platform/mac/editing/deleting/delete-line-015-expected.txt:
+        * platform/mac/editing/deleting/delete-line-016-expected.txt:
+        * platform/mac/editing/deleting/delete-line-017-expected.txt:
+        * platform/mac/editing/deleting/delete-line-end-ws-001-expected.txt:
+        * platform/mac/editing/deleting/delete-line-end-ws-002-expected.txt:
+        * platform/mac/editing/deleting/delete-listitem-001-expected.txt:
+        * platform/mac/editing/deleting/delete-listitem-002-expected.txt:
+        * platform/mac/editing/deleting/delete-mixed-editable-content-001-expected.txt:
+        * platform/mac/editing/deleting/delete-select-all-001-expected.txt:
+        * platform/mac/editing/deleting/delete-select-all-002-expected.txt:
+        * platform/mac/editing/deleting/delete-select-all-003-expected.txt:
+        * platform/mac/editing/deleting/delete-selection-001-expected.txt:
+        * platform/mac/editing/deleting/delete-tab-001-expected.txt:
+        * platform/mac/editing/deleting/delete-tab-002-expected.txt:
+        * platform/mac/editing/deleting/delete-tab-003-expected.txt:
+        * platform/mac/editing/deleting/delete-tab-004-expected.txt:
+        * platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt:
+        * platform/mac/editing/deleting/delete-to-select-table-expected.txt:
+        * platform/mac/editing/deleting/delete-trailing-ws-001-expected.txt:
+        * platform/mac/editing/deleting/delete-trailing-ws-002-expected.txt:
+        * platform/mac/editing/deleting/delete-ws-fixup-001-expected.txt:
+        * platform/mac/editing/deleting/delete-ws-fixup-002-expected.txt:
+        * platform/mac/editing/deleting/delete-ws-fixup-003-expected.txt:
+        * platform/mac/editing/deleting/delete-ws-fixup-004-expected.txt:
+        * platform/mac/editing/deleting/deletionUI-single-instance-expected.txt:
+        * platform/mac/editing/deleting/forward-delete-expected.txt:
+        * platform/mac/editing/deleting/list-item-1-expected.txt:
+        * platform/mac/editing/deleting/merge-different-styles-expected.txt:
+        * platform/mac/editing/deleting/merge-endOfParagraph-expected.txt:
+        * platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt:
+        * platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt:
+        * platform/mac/editing/deleting/merge-no-br-expected.txt:
+        * platform/mac/editing/deleting/merge-unrendered-space-expected.txt:
+        * platform/mac/editing/deleting/merge-whitespace-pre-expected.txt:
+        * platform/mac/editing/deleting/non-smart-delete-expected.txt:
+        * platform/mac/editing/deleting/paragraph-in-preserveNewline-expected.txt:
+        * platform/mac/editing/deleting/pruning-after-merge-2-expected.txt:
+        * platform/mac/editing/deleting/smart-delete-001-expected.txt:
+        * platform/mac/editing/deleting/smart-delete-002-expected.txt:
+        * platform/mac/editing/deleting/smart-delete-003-expected.txt:
+        * platform/mac/editing/deleting/smart-delete-004-expected.txt:
+        * platform/mac/editing/deleting/table-cells-expected.txt:
+        * platform/mac/editing/deleting/transpose-empty-expected.txt:
+        * platform/mac/editing/deleting/type-delete-after-quote-expected.txt:
+        * platform/mac/editing/deleting/whitespace-pre-1-expected.txt:
+        * platform/mac/editing/execCommand/4580583-1-expected.txt:
+        * platform/mac/editing/execCommand/4580583-2-expected.txt:
+        * platform/mac/editing/execCommand/4641880-1-expected.txt:
+        * platform/mac/editing/execCommand/4641880-2-expected.txt:
+        * platform/mac/editing/execCommand/4747450-expected.txt:
+        * platform/mac/editing/execCommand/4786404-1-expected.txt:
+        * platform/mac/editing/execCommand/4786404-2-expected.txt:
+        * platform/mac/editing/execCommand/4916402-expected.txt:
+        * platform/mac/editing/execCommand/4916541-expected.txt:
+        * platform/mac/editing/execCommand/4920488-expected.txt:
+        * platform/mac/editing/execCommand/4920742-1-expected.txt:
+        * platform/mac/editing/execCommand/4924441-expected.txt:
+        * platform/mac/editing/execCommand/5049671-expected.txt:
+        * platform/mac/editing/execCommand/5080333-1-expected.txt:
+        * platform/mac/editing/execCommand/5080333-2-expected.txt:
+        * platform/mac/editing/execCommand/5136770-expected.txt:
+        * platform/mac/editing/execCommand/5138441-expected.txt:
+        * platform/mac/editing/execCommand/5142012-1-expected.txt:
+        * platform/mac/editing/execCommand/5142012-2-expected.txt:
+        * platform/mac/editing/execCommand/5190926-expected.txt:
+        * platform/mac/editing/execCommand/5481523-expected.txt:
+        * platform/mac/editing/execCommand/5482023-expected.txt:
+        * platform/mac/editing/execCommand/5482524-expected.txt:
+        * platform/mac/editing/execCommand/5569741-expected.txt:
+        * platform/mac/editing/execCommand/5573879-expected.txt:
+        * platform/mac/editing/execCommand/create-list-from-range-selection-expected.txt:
+        * platform/mac/editing/execCommand/create-list-with-hr-expected.txt:
+        * platform/mac/editing/execCommand/findString-2-expected.txt:
+        * platform/mac/editing/execCommand/findString-expected.txt:
+        * platform/mac/editing/execCommand/format-block-expected.txt:
+        * platform/mac/editing/execCommand/format-block-from-range-selection-expected.txt:
+        * platform/mac/editing/execCommand/format-block-with-braces-expected.txt:
+        * platform/mac/editing/execCommand/format-block-with-trailing-br-expected.txt:
+        * platform/mac/editing/execCommand/hilitecolor-expected.txt:
+        * platform/mac/editing/execCommand/indent-empty-root-expected.txt:
+        * platform/mac/editing/execCommand/indent-list-item-expected.txt:
+        * platform/mac/editing/execCommand/indent-selection-expected.txt:
+        * platform/mac/editing/execCommand/insert-list-and-stitch-expected.txt:
+        * platform/mac/editing/execCommand/insert-list-empty-div-expected.txt:
+        * platform/mac/editing/execCommand/insertImage-expected.txt:
+        * platform/mac/editing/execCommand/nsresponder-indent-expected.txt:
+        * platform/mac/editing/execCommand/nsresponder-outdent-expected.txt:
+        * platform/mac/editing/execCommand/outdent-blockquote-test5-expected.txt:
+        * platform/mac/editing/execCommand/outdent-selection-expected.txt:
+        * platform/mac/editing/execCommand/print-expected.txt:
+        * platform/mac/editing/execCommand/remove-formatting-2-expected.txt:
+        * platform/mac/editing/execCommand/remove-formatting-expected.txt:
+        * platform/mac/editing/execCommand/remove-list-from-range-selection-expected.txt:
+        * platform/mac/editing/execCommand/remove-list-item-1-expected.txt:
+        * platform/mac/editing/execCommand/selectAll-expected.txt:
+        * platform/mac/editing/input/5576619-expected.txt:
+        * platform/mac/editing/input/devanagari-ligature-expected.txt:
+        * platform/mac/editing/input/emacs-ctrl-o-expected.txt:
+        * platform/mac/editing/inserting/12882-expected.txt:
+        * platform/mac/editing/inserting/4278698-expected.txt:
+        * platform/mac/editing/inserting/4840662-expected.txt:
+        * platform/mac/editing/inserting/4875189-1-expected.txt:
+        * platform/mac/editing/inserting/4875189-2-expected.txt:
+        * platform/mac/editing/inserting/4959067-expected.txt:
+        * platform/mac/editing/inserting/4960120-1-expected.txt:
+        * platform/mac/editing/inserting/4960120-2-expected.txt:
+        * platform/mac/editing/inserting/5002441-expected.txt:
+        * platform/mac/editing/inserting/5058163-1-expected.txt:
+        * platform/mac/editing/inserting/5058163-2-expected.txt:
+        * platform/mac/editing/inserting/5156401-2-expected.txt:
+        * platform/mac/editing/inserting/5418891-expected.txt:
+        * platform/mac/editing/inserting/5510537-expected.txt:
+        * platform/mac/editing/inserting/5549929-2-expected.txt:
+        * platform/mac/editing/inserting/5549929-3-expected.txt:
+        * platform/mac/editing/inserting/5607069-2-expected.txt:
+        * platform/mac/editing/inserting/5607069-3-expected.txt:
+        * platform/mac/editing/inserting/6703873-expected.txt:
+        * platform/mac/editing/inserting/before-after-input-element-expected.txt:
+        * platform/mac/editing/inserting/break-blockquote-after-delete-expected.txt:
+        * platform/mac/editing/inserting/editable-html-element-expected.txt:
+        * platform/mac/editing/inserting/editable-inline-element-expected.txt:
+        * platform/mac/editing/inserting/edited-whitespace-1-expected.txt:
+        * platform/mac/editing/inserting/editing-empty-divs-expected.txt:
+        * platform/mac/editing/inserting/insert-3654864-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-3659587-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-3775316-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-3778059-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-3786362-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-3800346-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-3851164-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-3907422-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-after-delete-001-expected.txt:
+        * platform/mac/editing/inserting/insert-at-end-01-expected.txt:
+        * platform/mac/editing/inserting/insert-at-end-02-expected.txt:
+        * platform/mac/editing/inserting/insert-br-001-expected.txt:
+        * platform/mac/editing/inserting/insert-br-002-expected.txt:
+        * platform/mac/editing/inserting/insert-br-003-expected.txt:
+        * platform/mac/editing/inserting/insert-br-004-expected.txt:
+        * platform/mac/editing/inserting/insert-br-005-expected.txt:
+        * platform/mac/editing/inserting/insert-br-006-expected.txt:
+        * platform/mac/editing/inserting/insert-br-007-expected.txt:
+        * platform/mac/editing/inserting/insert-br-008-expected.txt:
+        * platform/mac/editing/inserting/insert-br-009-expected.txt:
+        * platform/mac/editing/inserting/insert-br-at-tabspan-001-expected.txt:
+        * platform/mac/editing/inserting/insert-br-at-tabspan-002-expected.txt:
+        * platform/mac/editing/inserting/insert-br-at-tabspan-003-expected.txt:
+        * platform/mac/editing/inserting/insert-br-quoted-001-expected.txt:
+        * platform/mac/editing/inserting/insert-br-quoted-002-expected.txt:
+        * platform/mac/editing/inserting/insert-br-quoted-003-expected.txt:
+        * platform/mac/editing/inserting/insert-br-quoted-004-expected.txt:
+        * platform/mac/editing/inserting/insert-br-quoted-005-expected.txt:
+        * platform/mac/editing/inserting/insert-br-quoted-006-expected.txt:
+        * platform/mac/editing/inserting/insert-div-001-expected.txt:
+        * platform/mac/editing/inserting/insert-div-002-expected.txt:
+        * platform/mac/editing/inserting/insert-div-003-expected.txt:
+        * platform/mac/editing/inserting/insert-div-004-expected.txt:
+        * platform/mac/editing/inserting/insert-div-005-expected.txt:
+        * platform/mac/editing/inserting/insert-div-006-expected.txt:
+        * platform/mac/editing/inserting/insert-div-007-expected.txt:
+        * platform/mac/editing/inserting/insert-div-008-expected.txt:
+        * platform/mac/editing/inserting/insert-div-009-expected.txt:
+        * platform/mac/editing/inserting/insert-div-010-expected.txt:
+        * platform/mac/editing/inserting/insert-div-011-expected.txt:
+        * platform/mac/editing/inserting/insert-div-012-expected.txt:
+        * platform/mac/editing/inserting/insert-div-013-expected.txt:
+        * platform/mac/editing/inserting/insert-div-014-expected.txt:
+        * platform/mac/editing/inserting/insert-div-015-expected.txt:
+        * platform/mac/editing/inserting/insert-div-016-expected.txt:
+        * platform/mac/editing/inserting/insert-div-017-expected.txt:
+        * platform/mac/editing/inserting/insert-div-018-expected.txt:
+        * platform/mac/editing/inserting/insert-div-019-expected.txt:
+        * platform/mac/editing/inserting/insert-div-020-expected.txt:
+        * platform/mac/editing/inserting/insert-div-021-expected.txt:
+        * platform/mac/editing/inserting/insert-div-022-expected.txt:
+        * platform/mac/editing/inserting/insert-div-023-expected.txt:
+        * platform/mac/editing/inserting/insert-div-024-expected.txt:
+        * platform/mac/editing/inserting/insert-div-025-expected.txt:
+        * platform/mac/editing/inserting/insert-div-026-expected.txt:
+        * platform/mac/editing/inserting/insert-div-027-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-01-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-02-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-03-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-04-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-05-expected.txt:
+        * platform/mac/editing/inserting/insert-space-in-empty-doc-expected.txt:
+        * platform/mac/editing/inserting/insert-tab-001-expected.txt:
+        * platform/mac/editing/inserting/insert-tab-002-expected.txt:
+        * platform/mac/editing/inserting/insert-tab-003-expected.txt:
+        * platform/mac/editing/inserting/insert-tab-004-expected.txt:
+        * platform/mac/editing/inserting/insert-text-at-tabspan-001-expected.txt:
+        * platform/mac/editing/inserting/insert-text-at-tabspan-002-expected.txt:
+        * platform/mac/editing/inserting/insert-text-at-tabspan-003-expected.txt:
+        * platform/mac/editing/inserting/insert-text-with-newlines-expected.txt:
+        * platform/mac/editing/inserting/line-break-expected.txt:
+        * platform/mac/editing/inserting/multiple-lines-selected-expected.txt:
+        * platform/mac/editing/inserting/paragraph-separator-01-expected.txt:
+        * platform/mac/editing/inserting/paragraph-separator-02-expected.txt:
+        * platform/mac/editing/inserting/paragraph-separator-03-expected.txt:
+        * platform/mac/editing/inserting/paragraph-separator-in-table-1-expected.txt:
+        * platform/mac/editing/inserting/paragraph-separator-in-table-2-expected.txt:
+        * platform/mac/editing/inserting/redo-expected.txt:
+        * platform/mac/editing/inserting/return-key-with-selection-001-expected.txt:
+        * platform/mac/editing/inserting/return-key-with-selection-002-expected.txt:
+        * platform/mac/editing/inserting/return-key-with-selection-003-expected.txt:
+        * platform/mac/editing/inserting/typing-001-expected.txt:
+        * platform/mac/editing/inserting/typing-002-expected.txt:
+        * platform/mac/editing/inserting/typing-003-expected.txt:
+        * platform/mac/editing/inserting/typing-around-br-001-expected.txt:
+        * platform/mac/editing/inserting/typing-around-image-001-expected.txt:
+        * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt:
+        * platform/mac/editing/pasteboard/3976872-expected.txt:
+        * platform/mac/editing/pasteboard/4076267-2-expected.txt:
+        * platform/mac/editing/pasteboard/4076267-3-expected.txt:
+        * platform/mac/editing/pasteboard/4076267-expected.txt:
+        * platform/mac/editing/pasteboard/4242293-1-expected.txt:
+        * platform/mac/editing/pasteboard/4242293-expected.txt:
+        * platform/mac/editing/pasteboard/4631972-expected.txt:
+        * platform/mac/editing/pasteboard/4641033-expected.txt:
+        * platform/mac/editing/pasteboard/4700297-expected.txt:
+        * platform/mac/editing/pasteboard/4806874-expected.txt:
+        * platform/mac/editing/pasteboard/4861080-expected.txt:
+        * platform/mac/editing/pasteboard/4944770-1-expected.txt:
+        * platform/mac/editing/pasteboard/4944770-2-expected.txt:
+        * platform/mac/editing/pasteboard/4947130-expected.txt:
+        * platform/mac/editing/pasteboard/4989774-expected.txt:
+        * platform/mac/editing/pasteboard/5006779-expected.txt:
+        * platform/mac/editing/pasteboard/5027857-expected.txt:
+        * platform/mac/editing/pasteboard/5028447-expected.txt:
+        * platform/mac/editing/pasteboard/5032095-expected.txt:
+        * platform/mac/editing/pasteboard/5065605-expected.txt:
+        * platform/mac/editing/pasteboard/5071074-2-expected.txt:
+        * platform/mac/editing/pasteboard/5071074-expected.txt:
+        * platform/mac/editing/pasteboard/5075944-2-expected.txt:
+        * platform/mac/editing/pasteboard/5075944-3-expected.txt:
+        * platform/mac/editing/pasteboard/5075944-expected.txt:
+        * platform/mac/editing/pasteboard/5089327-expected.txt:
+        * platform/mac/editing/pasteboard/5134759-expected.txt:
+        * platform/mac/editing/pasteboard/5156401-1-expected.txt:
+        * platform/mac/editing/pasteboard/5247341-expected.txt:
+        * platform/mac/editing/pasteboard/5368833-expected.txt:
+        * platform/mac/editing/pasteboard/5387578-expected.txt:
+        * platform/mac/editing/pasteboard/5478250-expected.txt:
+        * platform/mac/editing/pasteboard/5483567-expected.txt:
+        * platform/mac/editing/pasteboard/5583362-expected.txt:
+        * platform/mac/editing/pasteboard/5601583-1-expected.txt:
+        * platform/mac/editing/pasteboard/8145-1-expected.txt:
+        * platform/mac/editing/pasteboard/8145-2-expected.txt:
+        * platform/mac/editing/pasteboard/8145-3-expected.txt:
+        * platform/mac/editing/pasteboard/bad-placeholder-expected.txt:
+        * platform/mac/editing/pasteboard/block-wrappers-necessary-expected.txt:
+        * platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt:
+        * platform/mac/editing/pasteboard/copy-standalone-image-expected.txt:
+        * platform/mac/editing/pasteboard/cut-text-001-expected.txt:
+        * platform/mac/editing/pasteboard/displaced-generic-placeholder-expected.txt:
+        * platform/mac/editing/pasteboard/displaced-placeholder-expected.txt:
+        * platform/mac/editing/pasteboard/display-block-on-spans-expected.txt:
+        * platform/mac/editing/pasteboard/drag-drop-dead-frame-expected.txt:
+        * platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt:
+        * platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt:
+        * platform/mac/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt:
+        * platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt:
+        * platform/mac/editing/pasteboard/emacs-cntl-y-001-expected.txt:
+        * platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt:
+        * platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt:
+        * platform/mac/editing/pasteboard/input-field-1-expected.txt:
+        * platform/mac/editing/pasteboard/interchange-newline-1-expected.txt:
+        * platform/mac/editing/pasteboard/interchange-newline-2-expected.txt:
+        * platform/mac/editing/pasteboard/interchange-newline-3-expected.txt:
+        * platform/mac/editing/pasteboard/interchange-newline-4-expected.txt:
+        * platform/mac/editing/pasteboard/merge-after-delete-1-expected.txt:
+        * platform/mac/editing/pasteboard/merge-after-delete-2-expected.txt:
+        * platform/mac/editing/pasteboard/merge-after-delete-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-1-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-2-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-3-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-4-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-5-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-blockquote-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-borders-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-list-expected.txt:
+        * platform/mac/editing/pasteboard/merge-end-table-expected.txt:
+        * platform/mac/editing/pasteboard/merge-start-blockquote-expected.txt:
+        * platform/mac/editing/pasteboard/merge-start-list-expected.txt:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt:
+        * platform/mac/editing/pasteboard/paste-4035648-fix-expected.txt:
+        * platform/mac/editing/pasteboard/paste-4038267-fix-expected.txt:
+        * platform/mac/editing/pasteboard/paste-4039777-fix-expected.txt:
+        * platform/mac/editing/pasteboard/paste-RTFD-expected.txt:
+        * platform/mac/editing/pasteboard/paste-TIFF-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-1-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-2-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-3-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt:
+        * platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-002-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-003-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-004-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-005-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-006-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-007-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-008-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-009-expected.txt:
+        * platform/mac/editing/pasteboard/paste-line-endings-010-expected.txt:
+        * platform/mac/editing/pasteboard/paste-list-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-match-style-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-match-style-002-expected.txt:
+        * platform/mac/editing/pasteboard/paste-pre-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-pre-002-expected.txt:
+        * platform/mac/editing/pasteboard/paste-table-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-table-003-expected.txt:
+        * platform/mac/editing/pasteboard/paste-table-cells-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-002-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-003-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-004-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-005-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-006-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-007-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-008-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-009-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-010-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-011-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-012-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-013-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-014-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-015-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-016-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-017-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-018-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-019-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
+        * platform/mac/editing/pasteboard/paste-unrendered-select-expected.txt:
+        * platform/mac/editing/pasteboard/paste-xml-expected.txt:
+        * platform/mac/editing/pasteboard/pasting-object-expected.txt:
+        * platform/mac/editing/pasteboard/pasting-tabs-expected.txt:
+        * platform/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt:
+        * platform/mac/editing/pasteboard/quirks-mode-br-1-expected.txt:
+        * platform/mac/editing/pasteboard/select-element-1-expected.txt:
+        * platform/mac/editing/pasteboard/smart-drag-drop-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-001-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-002-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-003-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-004-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-005-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-006-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-007-expected.txt:
+        * platform/mac/editing/pasteboard/smart-paste-008-expected.txt:
+        * platform/mac/editing/pasteboard/styled-element-markup-expected.txt:
+        * platform/mac/editing/pasteboard/testcase-9507-expected.txt:
+        * platform/mac/editing/pasteboard/undoable-fragment-removes-expected.txt:
+        * platform/mac/editing/pasteboard/unrendered-br-expected.txt:
+        * platform/mac/editing/selection/13804-expected.txt:
+        * platform/mac/editing/selection/14971-expected.txt:
+        * platform/mac/editing/selection/25228-expected.txt:
+        * platform/mac/editing/selection/3690703-2-expected.txt:
+        * platform/mac/editing/selection/3690703-expected.txt:
+        * platform/mac/editing/selection/3690719-expected.txt:
+        * platform/mac/editing/selection/4397952-expected.txt:
+        * platform/mac/editing/selection/4402375-expected.txt:
+        * platform/mac/editing/selection/4818145-expected.txt:
+        * platform/mac/editing/selection/4866671-expected.txt:
+        * platform/mac/editing/selection/4889598-expected.txt:
+        * platform/mac/editing/selection/4895428-1-expected.txt:
+        * platform/mac/editing/selection/4895428-2-expected.txt:
+        * platform/mac/editing/selection/4895428-3-expected.txt:
+        * platform/mac/editing/selection/4895428-4-expected.txt:
+        * platform/mac/editing/selection/4932260-1-expected.txt:
+        * platform/mac/editing/selection/4932260-2-expected.txt:
+        * platform/mac/editing/selection/4932260-3-expected.txt:
+        * platform/mac/editing/selection/4947387-expected.txt:
+        * platform/mac/editing/selection/4960116-expected.txt:
+        * platform/mac/editing/selection/4975120-expected.txt:
+        * platform/mac/editing/selection/4983858-expected.txt:
+        * platform/mac/editing/selection/5007143-2-expected.txt:
+        * platform/mac/editing/selection/5007143-expected.txt:
+        * platform/mac/editing/selection/5057506-2-expected.txt:
+        * platform/mac/editing/selection/5057506-expected.txt:
+        * platform/mac/editing/selection/5076323-1-expected.txt:
+        * platform/mac/editing/selection/5076323-2-expected.txt:
+        * platform/mac/editing/selection/5076323-3-expected.txt:
+        * platform/mac/editing/selection/5081257-1-expected.txt:
+        * platform/mac/editing/selection/5081257-2-expected.txt:
+        * platform/mac/editing/selection/5099303-expected.txt:
+        * platform/mac/editing/selection/5109817-expected.txt:
+        * platform/mac/editing/selection/5131716-1-expected.txt:
+        * platform/mac/editing/selection/5131716-2-expected.txt:
+        * platform/mac/editing/selection/5131716-3-expected.txt:
+        * platform/mac/editing/selection/5131716-4-expected.txt:
+        * platform/mac/editing/selection/5195166-2-expected.txt:
+        * platform/mac/editing/selection/5232159-expected.txt:
+        * platform/mac/editing/selection/5234383-1-expected.txt:
+        * platform/mac/editing/selection/5234383-2-expected.txt:
+        * platform/mac/editing/selection/5240265-expected.txt:
+        * platform/mac/editing/selection/5333725-expected.txt:
+        * platform/mac/editing/selection/5354455-1-expected.txt:
+        * platform/mac/editing/selection/5354455-2-expected.txt:
+        * platform/mac/editing/selection/6476-expected.txt:
+        * platform/mac/editing/selection/7152-1-expected.txt:
+        * platform/mac/editing/selection/7152-2-expected.txt:
+        * platform/mac/editing/selection/addRange-expected.txt:
+        * platform/mac/editing/selection/after-line-wrap-expected.txt:
+        * platform/mac/editing/selection/caret-and-focus-ring-expected.txt:
+        * platform/mac/editing/selection/caret-before-select-expected.txt:
+        * platform/mac/editing/selection/caret-rtl-2-expected.txt:
+        * platform/mac/editing/selection/caret-rtl-expected.txt:
+        * platform/mac/editing/selection/click-start-of-line-expected.txt:
+        * platform/mac/editing/selection/contains-boundaries-expected.txt:
+        * platform/mac/editing/selection/contenteditable-click-inside-expected.txt:
+        * platform/mac/editing/selection/designmode-no-caret-expected.txt:
+        * platform/mac/editing/selection/display-table-text-expected.txt:
+        * platform/mac/editing/selection/doubleclick-crash-expected.txt:
+        * platform/mac/editing/selection/drag-select-1-expected.txt:
+        * platform/mac/editing/selection/drag-text-delay-expected.txt:
+        * platform/mac/editing/selection/drag-to-contenteditable-iframe-expected.txt:
+        * platform/mac/editing/selection/editable-html-element-expected.txt:
+        * platform/mac/editing/selection/editable-links-expected.txt:
+        * platform/mac/editing/selection/editable-non-editable-crash-expected.txt:
+        * platform/mac/editing/selection/end-of-document-expected.txt:
+        * platform/mac/editing/selection/expanding-selections-expected.txt:
+        * platform/mac/editing/selection/expanding-selections2-expected.txt:
+        * platform/mac/editing/selection/extend-by-character-001-expected.txt:
+        * platform/mac/editing/selection/extend-by-character-002-expected.txt:
+        * platform/mac/editing/selection/extend-by-character-003-expected.txt:
+        * platform/mac/editing/selection/extend-by-character-004-expected.txt:
+        * platform/mac/editing/selection/extend-by-character-005-expected.txt:
+        * platform/mac/editing/selection/extend-by-character-006-expected.txt:
+        * platform/mac/editing/selection/extend-by-sentence-001-expected.txt:
+        * platform/mac/editing/selection/extend-by-word-001-expected.txt:
+        * platform/mac/editing/selection/extend-by-word-002-expected.txt:
+        * platform/mac/editing/selection/fake-doubleclick-expected.txt:
+        * platform/mac/editing/selection/fake-drag-expected.txt:
+        * platform/mac/editing/selection/focus-body-expected.txt:
+        * platform/mac/editing/selection/focus_editable_html-expected.txt:
+        * platform/mac/editing/selection/iframe-expected.txt:
+        * platform/mac/editing/selection/image-before-linebreak-expected.txt:
+        * platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt:
+        * platform/mac/editing/selection/inline-closest-leaf-child-expected.txt:
+        * platform/mac/editing/selection/inline-table-expected.txt:
+        * platform/mac/editing/selection/leave-requested-block-expected.txt:
+        * platform/mac/editing/selection/line-wrap-1-expected.txt:
+        * platform/mac/editing/selection/line-wrap-2-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-1-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-2-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-3-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-4-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-5-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-6-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-7-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-8-expected.txt:
+        * platform/mac/editing/selection/mixed-editability-9-expected.txt:
+        * platform/mac/editing/selection/move-3875618-fix-expected.txt:
+        * platform/mac/editing/selection/move-3875641-fix-expected.txt:
+        * platform/mac/editing/selection/move-backwords-by-word-001-expected.txt:
+        * platform/mac/editing/selection/move-between-blocks-no-001-expected.txt:
+        * platform/mac/editing/selection/move-between-blocks-yes-001-expected.txt:
+        * platform/mac/editing/selection/move-by-character-001-expected.txt:
+        * platform/mac/editing/selection/move-by-character-002-expected.txt:
+        * platform/mac/editing/selection/move-by-character-003-expected.txt:
+        * platform/mac/editing/selection/move-by-character-004-expected.txt:
+        * platform/mac/editing/selection/move-by-character-005-expected.txt:
+        * platform/mac/editing/selection/move-by-character-6-expected.txt:
+        * platform/mac/editing/selection/move-by-line-001-expected.txt:
+        * platform/mac/editing/selection/move-by-line-002-expected.txt:
+        * platform/mac/editing/selection/move-by-sentence-001-expected.txt:
+        * platform/mac/editing/selection/move-by-sentence-linebreak-expected.txt:
+        * platform/mac/editing/selection/move-by-word-001-expected.txt:
+        * platform/mac/editing/selection/move-past-trailing-space-expected.txt:
+        * platform/mac/editing/selection/node-removal-2-expected.txt:
+        * platform/mac/editing/selection/paragraph-granularity-expected.txt:
+        * platform/mac/editing/selection/previous-line-position-expected.txt:
+        * platform/mac/editing/selection/range-between-block-and-inline-expected.txt:
+        * platform/mac/editing/selection/replace-selection-1-expected.txt:
+        * platform/mac/editing/selection/replaced-boundaries-1-expected.txt:
+        * platform/mac/editing/selection/replaced-boundaries-2-expected.txt:
+        * platform/mac/editing/selection/replaced-boundaries-3-expected.txt:
+        * platform/mac/editing/selection/select-all-001-expected.txt:
+        * platform/mac/editing/selection/select-all-002-expected.txt:
+        * platform/mac/editing/selection/select-all-003-expected.txt:
+        * platform/mac/editing/selection/select-all-004-expected.txt:
+        * platform/mac/editing/selection/select-all-005-expected.txt:
+        * platform/mac/editing/selection/select-all-006-expected.txt:
+        * platform/mac/editing/selection/select-box-expected.txt:
+        * platform/mac/editing/selection/select-element-paragraph-boundary-expected.txt:
+        * platform/mac/editing/selection/select-from-textfield-outwards-expected.txt:
+        * platform/mac/editing/selection/select-missing-image-expected.txt:
+        * platform/mac/editing/selection/select-text-overflow-ellipsis-expected.txt:
+        * platform/mac/editing/selection/selection-3748164-fix-expected.txt:
+        * platform/mac/editing/selection/selection-actions-expected.txt:
+        * platform/mac/editing/selection/selection-background-expected.txt:
+        * platform/mac/editing/selection/table-caret-1-expected.txt:
+        * platform/mac/editing/selection/table-caret-2-expected.txt:
+        * platform/mac/editing/selection/table-caret-3-expected.txt:
+        * platform/mac/editing/selection/transformed-selection-rects-expected.txt:
+        * platform/mac/editing/selection/triple-click-in-pre-expected.txt:
+        * platform/mac/editing/selection/unrendered-001-expected.txt:
+        * platform/mac/editing/selection/unrendered-002-expected.txt:
+        * platform/mac/editing/selection/unrendered-003-expected.txt:
+        * platform/mac/editing/selection/unrendered-004-expected.txt:
+        * platform/mac/editing/selection/unrendered-005-expected.txt:
+        * platform/mac/editing/selection/unrendered-space-expected.txt:
+        * platform/mac/editing/selection/word-granularity-expected.txt:
+        * platform/mac/editing/selection/wrapped-line-caret-1-expected.txt:
+        * platform/mac/editing/selection/wrapped-line-caret-2-expected.txt:
+        * platform/mac/editing/spelling/spellcheck-attribute-expected.txt:
+        * platform/mac/editing/spelling/spelling-expected.txt:
+        * platform/mac/editing/spelling/spelling-linebreak-expected.txt:
+        * platform/mac/editing/style/4916887-expected.txt:
+        * platform/mac/editing/style/5017613-1-expected.txt:
+        * platform/mac/editing/style/5017613-2-expected.txt:
+        * platform/mac/editing/style/5046875-1-expected.txt:
+        * platform/mac/editing/style/5046875-2-expected.txt:
+        * platform/mac/editing/style/5065910-expected.txt:
+        * platform/mac/editing/style/5084241-expected.txt:
+        * platform/mac/editing/style/5091898-expected.txt:
+        * platform/mac/editing/style/5228141-expected.txt:
+        * platform/mac/editing/style/5279521-expected.txt:
+        * platform/mac/editing/style/apple-style-editable-mix-expected.txt:
+        * platform/mac/editing/style/block-style-001-expected.txt:
+        * platform/mac/editing/style/block-style-002-expected.txt:
+        * platform/mac/editing/style/block-style-003-expected.txt:
+        * platform/mac/editing/style/block-style-004-expected.txt:
+        * platform/mac/editing/style/block-style-005-expected.txt:
+        * platform/mac/editing/style/block-style-006-expected.txt:
+        * platform/mac/editing/style/block-styles-007-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-001-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-002-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-003-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-004-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-005-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-006-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-007-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-008-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-009-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-010-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-011-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-012-expected.txt:
+        * platform/mac/editing/style/create-block-for-style-013-expected.txt:
+        * platform/mac/editing/style/designmode-expected.txt:
+        * platform/mac/editing/style/font-family-with-space-expected.txt:
+        * platform/mac/editing/style/fontsize-1-expected.txt:
+        * platform/mac/editing/style/highlight-expected.txt:
+        * platform/mac/editing/style/non-inheritable-styles-expected.txt:
+        * platform/mac/editing/style/relative-font-size-change-001-expected.txt:
+        * platform/mac/editing/style/relative-font-size-change-002-expected.txt:
+        * platform/mac/editing/style/relative-font-size-change-003-expected.txt:
+        * platform/mac/editing/style/relative-font-size-change-004-expected.txt:
+        * platform/mac/editing/style/smoosh-styles-001-expected.txt:
+        * platform/mac/editing/style/smoosh-styles-003-expected.txt:
+        * platform/mac/editing/style/style-3681552-fix-001-expected.txt:
+        * platform/mac/editing/style/style-3681552-fix-002-expected.txt:
+        * platform/mac/editing/style/style-3690704-fix-expected.txt:
+        * platform/mac/editing/style/style-3998892-fix-expected.txt:
+        * platform/mac/editing/style/style-boundary-001-expected.txt:
+        * platform/mac/editing/style/style-boundary-002-expected.txt:
+        * platform/mac/editing/style/style-boundary-003-expected.txt:
+        * platform/mac/editing/style/style-boundary-004-expected.txt:
+        * platform/mac/editing/style/style-boundary-005-expected.txt:
+        * platform/mac/editing/style/table-selection-expected.txt:
+        * platform/mac/editing/style/typing-style-001-expected.txt:
+        * platform/mac/editing/style/typing-style-002-expected.txt:
+        * platform/mac/editing/style/typing-style-003-expected.txt:
+        * platform/mac/editing/style/unbold-in-bold-expected.txt:
+        * platform/mac/editing/undo/4063751-expected.txt:
+        * platform/mac/editing/undo/5378473-expected.txt:
+        * platform/mac/editing/undo/redo-typing-001-expected.txt:
+        * platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt:
+        * platform/mac/editing/undo/undo-combined-delete-expected.txt:
+        * platform/mac/editing/undo/undo-delete-boundary-expected.txt:
+        * platform/mac/editing/undo/undo-delete-expected.txt:
+        * platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt:
+        * platform/mac/editing/undo/undo-forward-delete-expected.txt:
+        * platform/mac/editing/undo/undo-misspellings-expected.txt:
+        * platform/mac/editing/undo/undo-typing-001-expected.txt:
+        * platform/mac/editing/unsupported-content/list-delete-001-expected.txt:
+        * platform/mac/editing/unsupported-content/list-delete-003-expected.txt:
+        * platform/mac/editing/unsupported-content/list-type-after-expected.txt:
+        * platform/mac/editing/unsupported-content/list-type-before-expected.txt:
+        * platform/mac/editing/unsupported-content/table-delete-001-expected.txt:
+        * platform/mac/editing/unsupported-content/table-delete-002-expected.txt:
+        * platform/mac/editing/unsupported-content/table-delete-003-expected.txt:
+        * platform/mac/editing/unsupported-content/table-type-after-expected.txt:
+        * platform/mac/editing/unsupported-content/table-type-before-expected.txt:
+        * platform/mac/fast/backgrounds/solid-color-context-restore-expected.txt:
+        * platform/mac/fast/block/float/relative-painted-twice-expected.txt:
+        * platform/mac/fast/css-generated-content/hover-style-change-expected.txt:
+        * platform/mac/fast/css/layerZOrderCrash-expected.txt:
+        * platform/mac/fast/css/shadow-multiple-expected.txt:
+        * platform/mac/fast/css/universal-hover-quirk-expected.txt:
+        * platform/mac/fast/dom/delete-contents-expected.txt:
+        * platform/mac/fast/dom/focus-contenteditable-expected.txt:
+        * platform/mac/fast/dynamic/layer-hit-test-crash-expected.txt:
+        * platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt:
+        * platform/mac/fast/events/5056619-expected.txt:
+        * platform/mac/fast/events/autoscroll-expected.txt:
+        * platform/mac/fast/events/context-no-deselect-expected.txt:
+        * platform/mac/fast/events/label-focus-expected.txt:
+        * platform/mac/fast/events/pointer-events-dashboard-expected.txt:
+        * platform/mac/fast/events/updateLayoutForHitTest-expected.txt:
+        * platform/mac/fast/forms/caret-rtl-expected.txt:
+        * platform/mac/fast/forms/form-added-to-table-expected.txt:
+        * platform/mac/fast/forms/input-appearance-focus-expected.txt:
+        * platform/mac/fast/forms/input-appearance-readonly-expected.txt:
+        * platform/mac/fast/forms/input-appearance-selection-expected.txt:
+        * platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt:
+        * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt:
+        * platform/mac/fast/forms/input-paste-undo-expected.txt:
+        * platform/mac/fast/forms/input-readonly-autoscroll-expected.txt:
+        * platform/mac/fast/forms/input-text-click-inside-expected.txt:
+        * platform/mac/fast/forms/input-text-click-outside-expected.txt:
+        * platform/mac/fast/forms/input-text-double-click-expected.txt:
+        * platform/mac/fast/forms/input-text-drag-down-expected.txt:
+        * platform/mac/fast/forms/input-text-option-delete-expected.txt:
+        * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt:
+        * platform/mac/fast/forms/input-text-self-emptying-click-expected.txt:
+        * platform/mac/fast/forms/plaintext-mode-2-expected.txt:
+        * platform/mac/fast/forms/search-rtl-expected.txt:
+        * platform/mac/fast/forms/search-transformed-expected.txt:
+        * platform/mac/fast/forms/search-zoomed-expected.txt:
+        * platform/mac/fast/forms/tabbing-input-iframe-expected.txt:
+        * platform/mac/fast/forms/textarea-scrollbar-expected.txt:
+        * platform/mac/fast/forms/textarea-scrolled-type-expected.txt:
+        * platform/mac/fast/forms/textfield-outline-expected.txt:
+        * platform/mac/fast/forms/textfield-overflow-expected.txt:
+        * platform/mac/fast/frames/take-focus-from-iframe-expected.txt:
+        * platform/mac/fast/inline-block/14498-positionForCoordinates-expected.txt:
+        * platform/mac/fast/inline/25277-2-expected.txt:
+        * platform/mac/fast/inline/25277-expected.txt:
+        * platform/mac/fast/lists/drag-into-marker-expected.txt:
+        * platform/mac/fast/lists/markers-in-selection-expected.txt:
+        * platform/mac/fast/overflow/image-selection-highlight-expected.txt:
+        * platform/mac/fast/overflow/overflow-focus-ring-expected.txt:
+        * platform/mac/fast/overflow/overflow-text-hit-testing-expected.txt:
+        * platform/mac/fast/reflections/inline-crash-expected.txt:
+        * platform/mac/fast/repaint/4776765-expected.txt:
+        * platform/mac/fast/repaint/block-selection-gap-in-composited-layer-expected.txt:
+        * platform/mac/fast/repaint/caret-outside-block-expected.txt:
+        * platform/mac/fast/repaint/delete-into-nested-block-expected.txt:
+        * platform/mac/fast/repaint/inline-outline-repaint-expected.txt:
+        * platform/mac/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt:
+        * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt:
+        * platform/mac/fast/repaint/selected-replaced-expected.txt:
+        * platform/mac/fast/repaint/selection-after-delete-expected.txt:
+        * platform/mac/fast/repaint/selection-after-remove-expected.txt:
+        * platform/mac/fast/repaint/subtree-root-skipped-expected.txt:
+        * platform/mac/fast/replaced/selection-rect-expected.txt:
+        * platform/mac/fast/replaced/selection-rect-in-table-cell-expected.txt:
+        * platform/mac/fast/replaced/selection-rect-transform-expected.txt:
+        * platform/mac/fast/selectors/159-expected.txt:
+        * platform/mac/fast/selectors/177a-expected.txt:
+        * platform/mac/fast/table/click-near-anonymous-table-expected.txt:
+        * platform/mac/fast/text/atsui-kerning-and-ligatures-expected.txt:
+        * platform/mac/fast/text/atsui-partial-selection-expected.txt:
+        * platform/mac/fast/text/atsui-pointtooffset-calls-cg-expected.txt:
+        * platform/mac/fast/text/atsui-rtl-override-selection-expected.txt:
+        * platform/mac/fast/text/delete-hard-break-character-expected.txt:
+        * platform/mac/fast/text/in-rendered-text-rtl-expected.txt:
+        * platform/mac/fast/text/international/khmer-selection-expected.txt:
+        * platform/mac/fast/text/international/rtl-caret-expected.txt:
+        * platform/mac/fast/text/justified-selection-at-edge-expected.txt:
+        * platform/mac/fast/text/justified-selection-expected.txt:
+        * platform/mac/fast/text/justified-text-rect-expected.txt:
+        * platform/mac/fast/text/selection-painted-separately-expected.txt:
+        * platform/mac/fast/text/should-use-atsui-expected.txt:
+        * platform/mac/fast/text/textIteratorNilRenderer-expected.txt:
+        * platform/mac/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt:
+        * platform/mac/fast/transforms/transformed-caret-expected.txt:
+        * platform/mac/fast/transforms/transformed-focused-text-input-expected.txt:
+        * platform/mac/svg/custom/hit-test-with-br-expected.txt:
+        * platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt:
+        * platform/mac/svg/text/selection-background-color-expected.txt:
+        * platform/mac/svg/text/selection-styles-expected.txt:
+
 2010-07-14  Kent Tamura  <tkent at chromium.org>
 
         Unreviewed, test expectation update.
diff --git a/LayoutTests/platform/mac/editing/deleting/4845371-expected.txt b/LayoutTests/platform/mac/editing/deleting/4845371-expected.txt
index 2999c46..6049a32 100644
--- a/LayoutTests/platform/mac/editing/deleting/4845371-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/4845371-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (6,2) size 24x20 [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 22x18
                   text run at (1,1) width 22: "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/mac/editing/deleting/4922367-expected.txt b/LayoutTests/platform/mac/editing/deleting/4922367-expected.txt
index 0f3cadb..4f33ecc 100644
--- a/LayoutTests/platform/mac/editing/deleting/4922367-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/4922367-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,28) size 784x0
         RenderBlock (anonymous) at (0,28) size 784x0
       RenderBlock {UL} at (0,96) 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/mac/editing/deleting/5026848-1-expected.txt b/LayoutTests/platform/mac/editing/deleting/5026848-1-expected.txt
index 2f50699..2d994cf 100644
--- a/LayoutTests/platform/mac/editing/deleting/5026848-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5026848-1-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 323: "shouldn't see anything in the editable region below."
       RenderBlock {DIV} at (0,52) size 784x18
         RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/deleting/5026848-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/5026848-2-expected.txt
index 0c46fae..c8aa969 100644
--- a/LayoutTests/platform/mac/editing/deleting/5026848-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5026848-2-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (1,1) size 82x18
                   text run at (1,1) width 82: "Non-editable"
         RenderBlock (anonymous) at (0,24) 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/mac/editing/deleting/5026848-3-expected.txt b/LayoutTests/platform/mac/editing/deleting/5026848-3-expected.txt
index 958c435..89ffd63 100644
--- a/LayoutTests/platform/mac/editing/deleting/5026848-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5026848-3-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (198,2) size 4x22 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
               RenderTableCell {TD} at (204,2) size 4x22 [border: (1px inset #808080)] [r=0 c=3 rs=1 cs=1]
         RenderBlock (anonymous) at (0,28) 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/mac/editing/deleting/5032066-expected.txt b/LayoutTests/platform/mac/editing/deleting/5032066-expected.txt
index 448cb70..5c679a8 100644
--- a/LayoutTests/platform/mac/editing/deleting/5032066-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5032066-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
                 RenderInline {SPAN} at (0,0) size 168x18
                   RenderText {#text} at (238,2) size 168x18
                     text run at (238,2) width 168: "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/mac/editing/deleting/5091898-expected.txt b/LayoutTests/platform/mac/editing/deleting/5091898-expected.txt
index 264ca4a..6e4d455 100644
--- a/LayoutTests/platform/mac/editing/deleting/5091898-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5091898-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
         RenderInline {DIV} at (0,0) size 168x18
           RenderText {#text} at (183,0) size 168x18
             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/mac/editing/deleting/5099303-expected.txt b/LayoutTests/platform/mac/editing/deleting/5099303-expected.txt
index dcaf14d..70505dd 100644
--- a/LayoutTests/platform/mac/editing/deleting/5099303-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5099303-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,28) size 784x18
           RenderText {#text} at (0,0) size 9x18
             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/mac/editing/deleting/5115601-expected.txt b/LayoutTests/platform/mac/editing/deleting/5115601-expected.txt
index adcc69f..18bf1cc 100644
--- a/LayoutTests/platform/mac/editing/deleting/5115601-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5115601-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
                     RenderText {#text} at (2,2) size 298x18
                       text run at (2,2) width 298: "This sentence should be inside the editable cell."
         RenderBlock (anonymous) at (0,28) 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/mac/editing/deleting/5126166-expected.txt b/LayoutTests/platform/mac/editing/deleting/5126166-expected.txt
index 18d5c71..f96e6cc 100644
--- a/LayoutTests/platform/mac/editing/deleting/5126166-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5126166-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (8,2) size 339x22 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 335x18
                   text run at (2,2) width 335: "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/mac/editing/deleting/5144139-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/5144139-2-expected.txt
index 02cd5b5..fe24561 100644
--- a/LayoutTests/platform/mac/editing/deleting/5144139-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5144139-2-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (26,2) size 13x21 [r=0 c=2 rs=1 cs=1]
                 RenderText {#text} at (1,2) size 11x18
                   text run at (1,2) width 11: "\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/mac/editing/deleting/5156801-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/5156801-2-expected.txt
index 95df80b..6b6cb5f 100644
--- a/LayoutTests/platform/mac/editing/deleting/5156801-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5156801-2-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
                 RenderInline {A} at (0,0) size 48x18 [color=#0000EE]
                   RenderText {#text} at (0,18) size 48x18
                     text run at (0,18) width 48: "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/mac/editing/deleting/5168598-expected.txt b/LayoutTests/platform/mac/editing/deleting/5168598-expected.txt
index 484c327..13f50d2 100644
--- a/LayoutTests/platform/mac/editing/deleting/5168598-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5168598-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
 layer at (13,83) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderBR {BR} at (1,0) size 0x13
-caret: position 0 of child 0 {BR} 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 {DIV} of child 3 {INPUT} of body
diff --git a/LayoutTests/platform/mac/editing/deleting/5206311-1-expected.txt b/LayoutTests/platform/mac/editing/deleting/5206311-1-expected.txt
index b73cffc..1f6eac7 100644
--- a/LayoutTests/platform/mac/editing/deleting/5206311-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5206311-1-expected.txt
@@ -91,4 +91,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (30,26) size 12x22 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 8x18
                   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/mac/editing/deleting/5206311-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/5206311-2-expected.txt
index e0df028..401a43f 100644
--- a/LayoutTests/platform/mac/editing/deleting/5206311-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5206311-2-expected.txt
@@ -73,4 +73,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (30,26) size 12x22 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 8x18
                   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/mac/editing/deleting/5272440-expected.txt b/LayoutTests/platform/mac/editing/deleting/5272440-expected.txt
index 19ca7d7..e02e138 100644
--- a/LayoutTests/platform/mac/editing/deleting/5272440-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5272440-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (1,1) size 387x18
             text run at (1,1) width 387: "There shouldn't be any blank lines in the black bordered area."
           RenderBR {BR} at (388,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/mac/editing/deleting/5300379-expected.txt b/LayoutTests/platform/mac/editing/deleting/5300379-expected.txt
index 75301dc..78e753c 100644
--- a/LayoutTests/platform/mac/editing/deleting/5300379-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5300379-expected.txt
@@ -8,4 +8,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 50x18
           text run at (0,0) width 50: "Success"
       RenderBlock {DIV} at (0,18) 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/mac/editing/deleting/5369009-expected.txt b/LayoutTests/platform/mac/editing/deleting/5369009-expected.txt
index 7899111..deff504 100644
--- a/LayoutTests/platform/mac/editing/deleting/5369009-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5369009-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 44x18
             RenderText {#text} at (35,0) size 44x18
               text run at (35,0) width 44: "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/mac/editing/deleting/5390681-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/5390681-2-expected.txt
index a8bb54d..657e4c8 100644
--- a/LayoutTests/platform/mac/editing/deleting/5390681-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5390681-2-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 20x18
           RenderText {#text} at (0,0) size 20x18
             text run at (0,0) width 20: "bar"
-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/mac/editing/deleting/5390681-expected.txt b/LayoutTests/platform/mac/editing/deleting/5390681-expected.txt
index 72dc0b9..66aebc7 100644
--- a/LayoutTests/platform/mac/editing/deleting/5390681-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5390681-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 20x18
           RenderText {#text} at (0,18) size 20x18
             text run at (0,18) width 20: "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/mac/editing/deleting/5408255-expected.txt b/LayoutTests/platform/mac/editing/deleting/5408255-expected.txt
index 5268062..3303571 100644
--- a/LayoutTests/platform/mac/editing/deleting/5408255-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5408255-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 87: "select:ignore. "
           text run at (87,18) width 450: "The list should be removed, the editable region below should be empty."
       RenderBlock {DIV} at (0,52) size 784x50
-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/mac/editing/deleting/5433862-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/5433862-2-expected.txt
index fdd529b..ab62a4a 100644
--- a/LayoutTests/platform/mac/editing/deleting/5433862-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5433862-2-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
                 RenderBR {BR} at (6,6) size 0x18
               RenderTableCell {TD} at (71,98) size 34x30 [border: (1px inset #808080)] [r=3 c=2 rs=1 cs=1]
                 RenderBR {BR} at (6,6) size 0x18
-caret: position 0 of child 0 {BR} of child 0 {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 0 of child 0 {BR} of child 0 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/deleting/5483370-expected.txt b/LayoutTests/platform/mac/editing/deleting/5483370-expected.txt
index 8613255..2e1ecd7 100644
--- a/LayoutTests/platform/mac/editing/deleting/5483370-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/5483370-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             RenderTableRow {TR} at (0,26) size 27x4
               RenderTableCell {TD} at (2,26) size 17x4 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderTableCell {TD} at (21,26) size 4x4 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
-caret: position 2 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 2 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/mac/editing/deleting/collapse-whitespace-3587601-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
index 03b9c5c..c7cc109 100644
--- a/LayoutTests/platform/mac/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
+++ b/LayoutTests/platform/mac/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 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/deleting/delete-3608430-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3608430-fix-expected.txt
index 44721c9..6198a35 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3608430-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3608430-fix-expected.txt
@@ -154,4 +154,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 129x28
             text run at (14,14) width 129: "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/mac/editing/deleting/delete-3608445-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3608445-fix-expected.txt
index e4389b4..55baff0 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3608445-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3608445-fix-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
             text run at (14,70) width 94: " war. We "
             text run at (108,70) width 111: "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/mac/editing/deleting/delete-3608462-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3608462-fix-expected.txt
index 0c8e235..29d2d83 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3608462-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3608462-fix-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (90,204) size 105x28
             text run at (90,204) width 105: " 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/mac/editing/deleting/delete-3775172-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3775172-fix-expected.txt
index 5010cb0..3390998 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3775172-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3775172-fix-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,18) 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/mac/editing/deleting/delete-3800834-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3800834-fix-expected.txt
index 949564a..b5f21da 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3800834-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3800834-fix-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,42) size 756x0
         RenderBlock (anonymous) at (14,42) 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/mac/editing/deleting/delete-3857753-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3857753-fix-expected.txt
index 564e381..fd2709c 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3857753-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3857753-fix-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
         RenderInline {I} at (0,0) size 40x28
           RenderText {#text} at (54,0) size 40x28
             text run at (54,0) width 40: "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/mac/editing/deleting/delete-3865854-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3865854-fix-expected.txt
index af9b998..52e81f9 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3865854-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3865854-fix-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderInline {I} at (0,0) size 40x28
             RenderText {#text} at (0,0) size 40x28
               text run at (0,0) width 40: "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/mac/editing/deleting/delete-3928305-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3928305-fix-expected.txt
index ea458ea..d2143a1 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3928305-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3928305-fix-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (14,70) size 756x28
           RenderText {#text} at (0,0) size 34x28
             text run at (0,0) width 34: "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/mac/editing/deleting/delete-3959464-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-3959464-fix-expected.txt
index 3b13046..d170cc4 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-3959464-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-3959464-fix-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (14,14) size 0x28
         RenderBlock {DIV} at (0,112) size 784x56 [border: (2px solid #FF0000)]
           RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/deleting/delete-4038408-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-4038408-fix-expected.txt
index e6d87b5..1bc25f8 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-4038408-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-4038408-fix-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,68) size 756x18
             RenderText {#text} at (0,0) size 195x18
               text run at (0,0) width 195: "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/mac/editing/deleting/delete-4083333-fix-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-4083333-fix-expected.txt
index 28edcf0..149dfb2 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-4083333-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-4083333-fix-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderInline {A} at (0,0) size 26x28 [color=#0000EE]
             RenderText {#text} at (94,14) size 26x28
               text run at (94,14) width 26: "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/mac/editing/deleting/delete-after-span-ws-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-001-expected.txt
index 4c9f277..b3c46c1 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-001-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 34x28
           text run at (106,84) width 34: "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/mac/editing/deleting/delete-after-span-ws-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-002-expected.txt
index 4c9f277..b3c46c1 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-002-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 34x28
           text run at (106,84) width 34: "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/mac/editing/deleting/delete-after-span-ws-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-003-expected.txt
index 4c9f277..b3c46c1 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-after-span-ws-003-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 34x28
           text run at (106,84) width 34: "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/mac/editing/deleting/delete-and-undo-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-and-undo-expected.txt
index 22e8c1e..f4b19d6 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-and-undo-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-and-undo-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 109x28
             text run at (14,14) width 109: "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/mac/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt
index 81dbed2..f13f628 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt
+++ b/LayoutTests/platform/mac/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 0x28
           RenderBlock {P} at (2,58) size 780x28
             RenderBR {BR} at (0,0) size 0x28
-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/mac/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt
index 0f108e2..dd38158 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt
+++ b/LayoutTests/platform/mac/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 0x28
           RenderBlock {P} at (2,58) size 780x28
             RenderBR {BR} at (0,0) size 0x28
-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/mac/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt
index f85858b..a6b3a3b 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,30) size 780x28
             RenderText {#text} at (0,0) size 17x28
               text run at (0,0) width 17: "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/mac/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt
index ed53063..a481f53 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,30) size 780x28
             RenderText {#text} at (0,0) size 17x28
               text run at (0,0) width 17: "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/mac/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt
index dbcd18e..e41bd7e 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt
+++ b/LayoutTests/platform/mac/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 17: "A"
           RenderBlock (anonymous) at (2,30) size 780x28
             RenderBR {BR} at (0,0) size 0x28
-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/mac/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt
index 77a5c19..1dbaf2d 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt
+++ b/LayoutTests/platform/mac/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 17: "A"
           RenderBlock {P} at (2,30) size 780x28
             RenderBR {BR} at (0,0) size 0x28
-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/mac/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt
index 3208a4a..a24fbfa 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,58) size 780x28
             RenderText {#text} at (0,0) size 20x28
               text run at (0,0) width 20: "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/mac/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt
index d6d40e3..c178346 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,86) size 780x28
             RenderText {#text} at (0,0) size 20x28
               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/mac/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt
index 3ae55bb..2237f27 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderBlock {P} at (2,58) size 780x28
             RenderText {#text} at (0,0) size 40x28
               text run at (0,0) width 40: "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/mac/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt
index 48004da..441381a 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt
@@ -61,4 +61,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,118) size 780x28
             RenderText {#text} at (0,0) size 114x28
               text run at (0,0) width 114: "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/mac/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt
index 236ea47..4127130 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
         RenderBlock {P} at (2,82) size 780x32 [border: (2px solid #FF0000)]
           RenderBR {BR} at (2,2) size 0x28
         RenderBlock (anonymous) at (2,138) 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/mac/editing/deleting/delete-at-start-or-end-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-at-start-or-end-expected.txt
index cdee849..6cbd6f7 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-at-start-or-end-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-at-start-or-end-expected.txt
@@ -9,4 +9,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 784x18
-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/mac/editing/deleting/delete-block-contents-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-contents-001-expected.txt
index 74cf80a..df543bf 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-contents-001-expected.txt
+++ b/LayoutTests/platform/mac/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 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/deleting/delete-block-contents-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-contents-002-expected.txt
index e5248af..2f2673b 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-contents-002-expected.txt
+++ b/LayoutTests/platform/mac/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 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/deleting/delete-block-contents-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-contents-003-expected.txt
index b1beefc..2e4f607 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-contents-003-expected.txt
+++ b/LayoutTests/platform/mac/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,56) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/deleting/delete-block-merge-contents-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-001-expected.txt
index c59dea6..d786362 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-001-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (40,0) size 44x28
             text run at (40,0) width 44: "Two"
           RenderText {#text} at (0,0) size 0x0
-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/mac/editing/deleting/delete-block-merge-contents-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-002-expected.txt
index 8a4f014..7ab739f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-002-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (84,22) size 0x0
           RenderText {#text} at (0,28) size 57x28
             text run at (0,28) width 57: "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/mac/editing/deleting/delete-block-merge-contents-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-003-expected.txt
index 8a4f014..7ab739f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-003-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (84,22) size 0x0
           RenderText {#text} at (0,28) size 57x28
             text run at (0,28) width 57: "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/mac/editing/deleting/delete-block-merge-contents-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-004-expected.txt
index 8a4f014..7ab739f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-004-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (84,22) size 0x0
           RenderText {#text} at (0,28) size 57x28
             text run at (0,28) width 57: "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/mac/editing/deleting/delete-block-merge-contents-005-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-005-expected.txt
index 5236b65..86f58d2 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-005-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,56) size 756x28
             RenderText {#text} at (0,0) size 45x28
               text run at (0,0) width 45: "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/mac/editing/deleting/delete-block-merge-contents-006-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-006-expected.txt
index 85294c1..f30d232 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-006-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,56) size 756x28
             RenderText {#text} at (0,0) size 45x28
               text run at (0,0) width 45: "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/mac/editing/deleting/delete-block-merge-contents-007-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-007-expected.txt
index 85294c1..f30d232 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-007-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,56) size 756x28
             RenderText {#text} at (0,0) size 45x28
               text run at (0,0) width 45: "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/mac/editing/deleting/delete-block-merge-contents-008-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-008-expected.txt
index c1cd613..17553aa 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-008-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
             RenderBlock (anonymous) at (0,28) size 756x28
               RenderText {#text} at (0,0) size 45x28
                 text run at (0,0) width 45: "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/mac/editing/deleting/delete-block-merge-contents-009-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-009-expected.txt
index cf447fc..df395d4 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-009-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,84) size 756x28
             RenderText {#text} at (0,0) size 43x28
               text run at (0,0) width 43: "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/mac/editing/deleting/delete-block-merge-contents-010-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-010-expected.txt
index 4271357..6694a89 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-010-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-010-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
             text run at (84,0) width 57: "Three"
           RenderText {#text} at (141,0) size 45x28
             text run at (141,0) width 45: "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/mac/editing/deleting/delete-block-merge-contents-011-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-011-expected.txt
index 70e74d7..364adac 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-011-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-011-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,84) size 756x28
             RenderText {#text} at (0,0) size 57x28
               text run at (0,0) width 57: "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/mac/editing/deleting/delete-block-merge-contents-012-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-012-expected.txt
index e934fb6..ad5e51c 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-012-expected.txt
+++ b/LayoutTests/platform/mac/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 71: "This is "
             RenderText {#text} at (71,0) size 106x28
               text run at (71,0) width 106: " 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/mac/editing/deleting/delete-block-merge-contents-013-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-013-expected.txt
index 7c369f0..ca03386 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-013-expected.txt
+++ b/LayoutTests/platform/mac/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 71: "This is "
             RenderText {#text} at (71,0) size 100x28
               text run at (71,0) width 100: "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/mac/editing/deleting/delete-block-merge-contents-014-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-014-expected.txt
index ae2472f..65e0d15 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-014-expected.txt
+++ b/LayoutTests/platform/mac/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 65: "This is"
             RenderText {#text} at (65,0) size 106x28
               text run at (65,0) width 106: " 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/mac/editing/deleting/delete-block-merge-contents-015-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-015-expected.txt
index ae2472f..65e0d15 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-015-expected.txt
+++ b/LayoutTests/platform/mac/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 65: "This is"
             RenderText {#text} at (65,0) size 106x28
               text run at (65,0) width 106: " 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/mac/editing/deleting/delete-block-merge-contents-016-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-016-expected.txt
index ae2472f..65e0d15 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-016-expected.txt
+++ b/LayoutTests/platform/mac/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 65: "This is"
             RenderText {#text} at (65,0) size 106x28
               text run at (65,0) width 106: " 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/mac/editing/deleting/delete-block-merge-contents-017-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-017-expected.txt
index ebf59d6..20b9392 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-017-expected.txt
+++ b/LayoutTests/platform/mac/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 71: "This is "
             RenderText {#text} at (71,0) size 106x28
               text run at (71,0) width 106: " 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/mac/editing/deleting/delete-block-merge-contents-018-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-018-expected.txt
index 1b52324..fd87562 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-018-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-018-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)]
             RenderText {#text} at (14,14) size 111x28
               text run at (14,14) width 111: "...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/mac/editing/deleting/delete-block-merge-contents-019-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-019-expected.txt
index b15ec5b..39e0b6b 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-019-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-019-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (31,14) size 17x28
             text run at (31,14) width 17: "X"
           RenderText {#text} at (0,0) size 0x0
-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/mac/editing/deleting/delete-block-merge-contents-020-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-020-expected.txt
index 7c85776..ceb6540 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-020-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-020-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (31,14) size 17x28
             text run at (31,14) width 17: "X"
           RenderText {#text} at (0,0) size 0x0
-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/mac/editing/deleting/delete-block-merge-contents-021-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-021-expected.txt
index 8e9f302..42e8707 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-021-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-021-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)]
             RenderText {#text} at (14,14) size 34x28
               text run at (14,14) width 34: "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/mac/editing/deleting/delete-block-merge-contents-022-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-022-expected.txt
index 2c673c7..d0358f7 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-022-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-022-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (14,14) size 728x56 [border: (2px solid #FFA500)]
               RenderText {#text} at (14,14) size 34x28
                 text run at (14,14) width 34: "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/mac/editing/deleting/delete-block-merge-contents-023-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-023-expected.txt
index c5383be..a74cefa 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-023-expected.txt
+++ b/LayoutTests/platform/mac/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 750x28
               RenderText {#text} at (0,0) size 34x28
                 text run at (0,0) width 34: "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/mac/editing/deleting/delete-block-merge-contents-024-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-024-expected.txt
index 2f7e658..404aafd 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-024-expected.txt
+++ b/LayoutTests/platform/mac/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 750x28
               RenderText {#text} at (0,0) size 17x28
                 text run at (0,0) width 17: "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/mac/editing/deleting/delete-block-table-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-block-table-expected.txt
index a12d42e..562f4bb 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-block-table-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-block-table-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
                   RenderText {#text} at (38,1) size 21x18
                     text run at (38,1) width 21: "fter"
         RenderBlock (anonymous) at (0,70) 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/mac/editing/deleting/delete-br-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-001-expected.txt
index 4fd15d2..aae5391 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-001-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (218,14) size 92x28
             text run at (218,14) width 92: "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/mac/editing/deleting/delete-br-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt
index 838780b..5191b31 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 92x28
             text run at (14,70) width 92: "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/mac/editing/deleting/delete-br-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-003-expected.txt
index 153d6ea..e82d6a3 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-003-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 92x28
             text run at (14,70) width 92: "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/mac/editing/deleting/delete-br-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt
index 6fc14a7..d3fb5ef 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt
@@ -43,4 +43,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 92x28
             text run at (14,70) width 92: "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/mac/editing/deleting/delete-br-005-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt
index e936460..32dffec 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt
@@ -45,4 +45,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 92x28
             text run at (14,42) width 92: "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/mac/editing/deleting/delete-br-006-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt
index 8bf2fb3..028ba06 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (218,14) size 92x28
             text run at (218,14) width 92: "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/mac/editing/deleting/delete-br-007-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-007-expected.txt
index 9a7845b..c6e2a28 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-007-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (212,14) size 92x28
             text run at (212,14) width 92: "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/mac/editing/deleting/delete-br-008-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-008-expected.txt
index ebc2ece..ca7561f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-008-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 44x28
           text run at (14,14) width 44: "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/mac/editing/deleting/delete-br-009-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-009-expected.txt
index 5527439..e3f4195 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-009-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 44x28
           text run at (14,14) width 44: "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/mac/editing/deleting/delete-br-010-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-010-expected.txt
index 1c553fd..4af9947 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-010-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-010-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (54,14) size 44x28
           text run at (54,14) width 44: "Two"
       RenderBlock (anonymous) at (0,56) 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/mac/editing/deleting/delete-br-011-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-011-expected.txt
index 95923b0..06b178b 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-011-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-011-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
             RenderInline {SPAN} at (0,0) size 0x28
               RenderBR {BR} at (14,14) size 0x28
       RenderBlock (anonymous) at (0,74) size 784x0
-caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 0 {SPAN} 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 0 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/deleting/delete-br-012-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-012-expected.txt
index 29ab666..97c602e 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-012-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-012-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
         RenderInline {FONT} at (0,0) size 0x37
           RenderInline {SPAN} at (0,0) size 0x28
             RenderBR {BR} at (3,3) size 0x28
-caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 0 {FONT} of child 2 {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 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/deleting/delete-br-013-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-br-013-expected.txt
index f8097c2..f58a661 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-br-013-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-br-013-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 191x18
           RenderText {#text} at (0,0) size 191x18
             text run at (0,0) width 191: "This text should be underlined"
-caret: position 30 of child 0 {#text} of child 0 {SPAN} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 30 of child 0 {#text} of child 0 {SPAN} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/deleting/delete-by-word-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-by-word-001-expected.txt
index 2ac5403..531ef27 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-by-word-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-by-word-001-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 418x28
             text run at (2,2) width 418: "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/mac/editing/deleting/delete-by-word-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-by-word-002-expected.txt
index 337c6a6..d509ca9 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-by-word-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-by-word-002-expected.txt
@@ -35,5 +35,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 178x28
             text run at (2,2) width 178: "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/mac/editing/deleting/delete-character-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-character-001-expected.txt
index bb6c229..3f1b45f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-character-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-character-001-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             text run at (40,14) width 37: "bar "
             text run at (77,14) width 34: "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/mac/editing/deleting/delete-contiguous-ws-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-contiguous-ws-001-expected.txt
index 6faf85c..fdc7f9f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-contiguous-ws-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-contiguous-ws-001-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 78x28
             text run at (14,14) width 78: "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/mac/editing/deleting/delete-first-list-item-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-first-list-item-expected.txt
index 641ac73..a82c324 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-first-list-item-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-first-list-item-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderText {#text} at (0,0) size 20x18
               text run at (0,0) width 20: "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/mac/editing/deleting/delete-hr-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-hr-expected.txt
index 043b310..227ecf4 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-hr-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-hr-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 21x18
               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/mac/editing/deleting/delete-image-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-image-001-expected.txt
index 9ab469f..15e6204 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-image-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-image-001-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
             text run at (14,204) width 61: "nation"
           RenderImage {IMG} at (75,123) 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/mac/editing/deleting/delete-image-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-image-002-expected.txt
index 3fb687b..fc53f0d 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-image-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-image-002-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
             text run at (14,232) width 61: "nation"
           RenderImage {IMG} at (75,151) 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/mac/editing/deleting/delete-image-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-image-003-expected.txt
index 233e12c..4dfa749 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-image-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-image-003-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (25,14) size 74x28
             text run at (25,14) width 74: " 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/mac/editing/deleting/delete-image-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-image-004-expected.txt
index d607679..d081824 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-image-004-expected.txt
+++ b/LayoutTests/platform/mac/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 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/deleting/delete-leading-ws-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-leading-ws-001-expected.txt
index 8c2d5cc..2ba737a 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-leading-ws-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-leading-ws-001-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 14x28
             text run at (14,14) width 8: "f"
             text run at (22,14) width 6: " "
-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/mac/editing/deleting/delete-line-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-001-expected.txt
index 10f3af3..f410736 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-001-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x28
         RenderText {#text} at (0,0) size 197x28
           text run at (0,0) width 197: "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/mac/editing/deleting/delete-line-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-002-expected.txt
index a32e190..7a01ef3 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-002-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x28
         RenderText {#text} at (0,0) size 197x28
           text run at (0,0) width 197: "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/mac/editing/deleting/delete-line-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-003-expected.txt
index a84b6b3..4b14431 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-003-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (139,22) size 0x0
         RenderText {#text} at (0,28) size 241x28
           text run at (0,28) width 241: "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/mac/editing/deleting/delete-line-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-004-expected.txt
index 0209644..e53d5e4 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-004-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,28) size 600x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/deleting/delete-line-005-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-005-expected.txt
index 5a686c5..717170b 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-005-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/deleting/delete-line-006-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-006-expected.txt
index 25f5cd2..dc65361 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-006-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/deleting/delete-line-007-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-007-expected.txt
index cc52bbe..32f2383 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-007-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/deleting/delete-line-008-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-008-expected.txt
index 9d12554..0c5f46f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-008-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 600x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/deleting/delete-line-009-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-009-expected.txt
index ee4a227..ab3d01c 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-009-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,28) size 600x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/deleting/delete-line-010-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-010-expected.txt
index ee4a227..ab3d01c 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-010-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-010-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,28) size 600x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/deleting/delete-line-011-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-011-expected.txt
index da8c997..1ce30ad 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-011-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-011-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 96: "There is a"
         RenderText {#text} at (96,0) size 241x28
           text run at (96,0) width 241: "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/mac/editing/deleting/delete-line-012-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-012-expected.txt
index f2d5f4f..6438962 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-012-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-012-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 96: "There is a"
         RenderText {#text} at (96,0) size 241x28
           text run at (96,0) width 241: "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/mac/editing/deleting/delete-line-013-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-013-expected.txt
index 9df8bea..10f0443 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-013-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/deleting/delete-line-014-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-014-expected.txt
index e4d9ca9..77f8978 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-014-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/deleting/delete-line-015-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-015-expected.txt
index 97c5657..22dfc64 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-015-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-015-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,18) size 784x18
           RenderBR {BR} at (0,0) size 0x18
         RenderBlock (anonymous) at (0,36) 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/mac/editing/deleting/delete-line-016-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-016-expected.txt
index 37091aa..6aa556a 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-016-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-016-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,18) size 784x50
           RenderBR {BR} at (0,0) size 0x18
         RenderBlock (anonymous) at (0,68) 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/mac/editing/deleting/delete-line-017-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-017-expected.txt
index 19bbd9d..0f5586d 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-017-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-017-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,18) size 784x18
           RenderText {#text} at (0,0) size 8x18
             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/mac/editing/deleting/delete-line-end-ws-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-end-ws-001-expected.txt
index a2dbc57..959829a 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-end-ws-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-end-ws-001-expected.txt
@@ -76,4 +76,4 @@ layer at (0,0) size 820x585
             text run at (614,84) width 6: " "
             text run at (74,132) width 304: "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/mac/editing/deleting/delete-line-end-ws-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-line-end-ws-002-expected.txt
index 7fa2949..1fd0cf7 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-line-end-ws-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-line-end-ws-002-expected.txt
@@ -76,4 +76,4 @@ layer at (0,0) size 820x585
             text run at (614,84) width 6: " "
             text run at (74,132) width 304: "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/mac/editing/deleting/delete-listitem-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-listitem-001-expected.txt
index 7e5e5c7..3d96d73 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-listitem-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-listitem-001-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderListItem {LI} at (40,56) size 716x28
             RenderText {#text} at (0,0) size 38x28
               text run at (0,0) width 38: "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/mac/editing/deleting/delete-listitem-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-listitem-002-expected.txt
index c1b8890..956b66e 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-listitem-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-listitem-002-expected.txt
@@ -55,4 +55,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-22,0) size 9x28: bullet
             RenderText {#text} at (0,0) size 38x28
               text run at (0,0) width 38: "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/mac/editing/deleting/delete-mixed-editable-content-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-mixed-editable-content-001-expected.txt
index e81aa81..352bdf6 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-mixed-editable-content-001-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/deleting/delete-select-all-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-select-all-001-expected.txt
index 1316d85..2dc9f5f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-select-all-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-select-all-001-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x46 [border: (2px solid #FF0000)]
         RenderInline {SPAN} at (0,0) size 0x18
           RenderBR {BR} at (14,14) size 0x18
-caret: position 0 of child 0 {BR} of child 0 {SPAN} 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 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/deleting/delete-select-all-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-select-all-002-expected.txt
index c265094..8de6c45 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-select-all-002-expected.txt
+++ b/LayoutTests/platform/mac/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 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/deleting/delete-select-all-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-select-all-003-expected.txt
index cc02c15..ab19700 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-select-all-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-select-all-003-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderListItem {LI} at (40,0) size 716x28
             RenderListMarker at (-22,0) size 9x28: bullet
             RenderBR {BR} at (0,0) size 0x28
-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/mac/editing/deleting/delete-selection-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-selection-001-expected.txt
index ab07b73..ea6fba1 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-selection-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-selection-001-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 43: " bar "
             text run at (57,14) width 34: "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/mac/editing/deleting/delete-tab-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-tab-001-expected.txt
index c3b760e..f88bed2 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-tab-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-tab-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (62,14) size 32x28
             text run at (62,14) width 32: "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/mac/editing/deleting/delete-tab-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-tab-002-expected.txt
index 23ae4d3..c643a28 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-tab-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-tab-002-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 16x28
             RenderText {#text} at (46,14) size 16x28
               text run at (46,14) width 16: "\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/mac/editing/deleting/delete-tab-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-tab-003-expected.txt
index 016f0de..f3cf000 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-tab-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-tab-003-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (62,14) size 12x28
             text run at (62,14) width 12: "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/mac/editing/deleting/delete-tab-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-tab-004-expected.txt
index 8595f57..3f9c402 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-tab-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-tab-004-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (62,42) size 32x28
             text run at (62,42) width 32: "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/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt
index ed37ce1..0d212b7 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 76x18
           RenderText {#text} at (0,0) size 76x18
             text run at (0,0) width 76: "four five six"
-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/mac/editing/deleting/delete-to-select-table-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-to-select-table-expected.txt
index 9ac8730..cbbab41 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-to-select-table-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-to-select-table-expected.txt
@@ -54,5 +54,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (31,24) size 47x20 [r=1 c=1 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 45x18
                   text run at (1,1) width 45: "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/mac/editing/deleting/delete-trailing-ws-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-trailing-ws-001-expected.txt
index ab07b73..ea6fba1 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-trailing-ws-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-trailing-ws-001-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 43: " bar "
             text run at (57,14) width 34: "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/mac/editing/deleting/delete-trailing-ws-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-trailing-ws-002-expected.txt
index 3250546..36ffdc6 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-trailing-ws-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-trailing-ws-002-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 40x28
             text run at (14,42) width 40: " 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/mac/editing/deleting/delete-ws-fixup-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-001-expected.txt
index 15d546d..4e0d4f7 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-001-expected.txt
@@ -59,4 +59,4 @@ layer at (0,0) size 800x600
             text run at (14,42) width 232: "conceived    in Liberty, "
             text run at (246,42) width 386: "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/mac/editing/deleting/delete-ws-fixup-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-002-expected.txt
index d9b1e50..7e0854b 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-002-expected.txt
@@ -66,4 +66,4 @@ layer at (0,0) size 800x600
             text run at (14,42) width 232: "conceived    in Liberty, "
             text run at (246,42) width 386: "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/mac/editing/deleting/delete-ws-fixup-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-003-expected.txt
index a552b86..78b0e6a 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-003-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (57,14) size 32x28
             text run at (57,14) width 32: "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/mac/editing/deleting/delete-ws-fixup-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-004-expected.txt
index 5cd74dd..518f68f 100644
--- a/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/delete-ws-fixup-004-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (69,14) size 32x28
             text run at (69,14) width 32: "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/mac/editing/deleting/deletionUI-single-instance-expected.txt b/LayoutTests/platform/mac/editing/deleting/deletionUI-single-instance-expected.txt
index 1bf985d..ed81986 100644
--- a/LayoutTests/platform/mac/editing/deleting/deletionUI-single-instance-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/deletionUI-single-instance-expected.txt
@@ -31,4 +31,4 @@ layer at (24,94) size 752x82 layerType: foreground only
         RenderTableCell (anonymous) at (2,2) size 748x0 [r=0 c=0 rs=1 cs=1]
 layer at (7,79) 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/mac/editing/deleting/forward-delete-expected.txt b/LayoutTests/platform/mac/editing/deleting/forward-delete-expected.txt
index 9834d14..5d1f38e 100644
--- a/LayoutTests/platform/mac/editing/deleting/forward-delete-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/forward-delete-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 31x28
             text run at (14,14) width 31: "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/mac/editing/deleting/list-item-1-expected.txt b/LayoutTests/platform/mac/editing/deleting/list-item-1-expected.txt
index cf2b964..0f2fa41 100644
--- a/LayoutTests/platform/mac/editing/deleting/list-item-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/list-item-1-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderListItem {LI} at (40,18) size 744x18
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/deleting/merge-different-styles-expected.txt b/LayoutTests/platform/mac/editing/deleting/merge-different-styles-expected.txt
index 6a97e55..ec60baa 100644
--- a/LayoutTests/platform/mac/editing/deleting/merge-different-styles-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/merge-different-styles-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 24x18
             RenderText {#text} at (21,0) size 24x18
               text run at (21,0) width 24: "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/mac/editing/deleting/merge-endOfParagraph-expected.txt b/LayoutTests/platform/mac/editing/deleting/merge-endOfParagraph-expected.txt
index f99c667..684ffa5 100644
--- a/LayoutTests/platform/mac/editing/deleting/merge-endOfParagraph-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/merge-endOfParagraph-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (5,174) size 774x32 [border: (1px solid #000000)]
         RenderBlock {DIV} at (6,6) size 762x20 [border: (1px solid #FF0000)]
           RenderBR {BR} at (1,1) size 0x18
-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/mac/editing/deleting/merge-into-empty-block-1-expected.txt b/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt
index f8cf8e7..7c3c364 100644
--- a/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 21x18
             RenderText {#text} at (28,0) size 21x18
               text run at (28,0) width 21: "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/mac/editing/deleting/merge-into-empty-block-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt
index ff329c5..30c9dfd 100644
--- a/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             RenderInline {SPAN} at (0,0) size 21x18
               RenderText {#text} at (0,0) size 21x18
                 text run at (0,0) width 21: "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/mac/editing/deleting/merge-no-br-expected.txt b/LayoutTests/platform/mac/editing/deleting/merge-no-br-expected.txt
index 8306834..a40ca0b 100644
--- a/LayoutTests/platform/mac/editing/deleting/merge-no-br-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/merge-no-br-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (11,67) size 714x18
             RenderText {#text} at (0,0) size 30x18
               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/mac/editing/deleting/merge-unrendered-space-expected.txt b/LayoutTests/platform/mac/editing/deleting/merge-unrendered-space-expected.txt
index ce03d82..47176d9 100644
--- a/LayoutTests/platform/mac/editing/deleting/merge-unrendered-space-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/merge-unrendered-space-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,18) size 784x18
           RenderText {#text} at (0,0) size 22x18
             text run at (0,0) width 22: "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/mac/editing/deleting/merge-whitespace-pre-expected.txt b/LayoutTests/platform/mac/editing/deleting/merge-whitespace-pre-expected.txt
index 6d7bde2..8bb35b0 100644
--- a/LayoutTests/platform/mac/editing/deleting/merge-whitespace-pre-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/merge-whitespace-pre-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
         RenderBlock {PRE} at (0,31) size 784x15
           RenderText {#text} at (0,0) size 24x15
             text run at (0,0) width 24: "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/mac/editing/deleting/non-smart-delete-expected.txt b/LayoutTests/platform/mac/editing/deleting/non-smart-delete-expected.txt
index 0b3d987..013584f 100644
--- a/LayoutTests/platform/mac/editing/deleting/non-smart-delete-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/non-smart-delete-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 77x28
             text run at (2,2) width 77: " 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/mac/editing/deleting/paragraph-in-preserveNewline-expected.txt b/LayoutTests/platform/mac/editing/deleting/paragraph-in-preserveNewline-expected.txt
index c62a7e1..661c1bb 100644
--- a/LayoutTests/platform/mac/editing/deleting/paragraph-in-preserveNewline-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/paragraph-in-preserveNewline-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 24x30
             text run at (0,0) width 0: " "
             text run at (0,15) width 24: "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/mac/editing/deleting/pruning-after-merge-2-expected.txt b/LayoutTests/platform/mac/editing/deleting/pruning-after-merge-2-expected.txt
index bde23bf..fd7e823 100644
--- a/LayoutTests/platform/mac/editing/deleting/pruning-after-merge-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/pruning-after-merge-2-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 24x18
             RenderText {#text} at (21,0) size 24x18
               text run at (21,0) width 24: "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/mac/editing/deleting/smart-delete-001-expected.txt b/LayoutTests/platform/mac/editing/deleting/smart-delete-001-expected.txt
index 9226eda..a35186d 100644
--- a/LayoutTests/platform/mac/editing/deleting/smart-delete-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/smart-delete-001-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 71x28
             text run at (2,2) width 71: "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/mac/editing/deleting/smart-delete-002-expected.txt b/LayoutTests/platform/mac/editing/deleting/smart-delete-002-expected.txt
index 5fd78bc..6e82bbb 100644
--- a/LayoutTests/platform/mac/editing/deleting/smart-delete-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/smart-delete-002-expected.txt
@@ -36,4 +36,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 72x28
             text run at (2,2) width 72: "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/mac/editing/deleting/smart-delete-003-expected.txt b/LayoutTests/platform/mac/editing/deleting/smart-delete-003-expected.txt
index 9d360d9..877a4f1 100644
--- a/LayoutTests/platform/mac/editing/deleting/smart-delete-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/smart-delete-003-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 21: "foo"
         RenderText {#text} at (21,0) size 26x18
           text run at (21,0) width 26: " 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/mac/editing/deleting/smart-delete-004-expected.txt b/LayoutTests/platform/mac/editing/deleting/smart-delete-004-expected.txt
index 0f29713..91edce3 100644
--- a/LayoutTests/platform/mac/editing/deleting/smart-delete-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/smart-delete-004-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 21: "foo"
         RenderText {#text} at (21,0) size 26x18
           text run at (21,0) width 26: " 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/mac/editing/deleting/table-cells-expected.txt b/LayoutTests/platform/mac/editing/deleting/table-cells-expected.txt
index 30273a2..3da72ff 100644
--- a/LayoutTests/platform/mac/editing/deleting/table-cells-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/table-cells-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
                 RenderBlock {DIV} at (2,2) size 174x18
                   RenderText {#text} at (0,0) size 174x18
                     text run at (0,0) width 174: " 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/mac/editing/deleting/transpose-empty-expected.txt b/LayoutTests/platform/mac/editing/deleting/transpose-empty-expected.txt
index 6c8b998..e9ff7ad 100644
--- a/LayoutTests/platform/mac/editing/deleting/transpose-empty-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/deleting/type-delete-after-quote-expected.txt b/LayoutTests/platform/mac/editing/deleting/type-delete-after-quote-expected.txt
index 6adcbb4..abaa652 100644
--- a/LayoutTests/platform/mac/editing/deleting/type-delete-after-quote-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/type-delete-after-quote-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (12,0) size 140x18
             text run at (12,0) width 140: "This should be quoted"
         RenderBlock (anonymous) at (0,34) size 784x0
-caret: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/deleting/whitespace-pre-1-expected.txt b/LayoutTests/platform/mac/editing/deleting/whitespace-pre-1-expected.txt
index 2d56df7..df2f052 100644
--- a/LayoutTests/platform/mac/editing/deleting/whitespace-pre-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/deleting/whitespace-pre-1-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 353: "There should be three paragraphs in this editable region."
           text run at (353,18) width 0: " "
           text run at (0,36) width 192: "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/mac/editing/execCommand/4580583-1-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4580583-1-expected.txt
index c7c1a9c..c0727aa 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4580583-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4580583-1-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-20,0) size 16x18: "4"
               RenderText {#text} at (0,0) size 30x18
                 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/mac/editing/execCommand/4580583-2-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4580583-2-expected.txt
index cc43f31..d33f252 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4580583-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4580583-2-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-20,0) size 16x18: "4"
               RenderText {#text} at (0,0) size 30x18
                 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/mac/editing/execCommand/4641880-1-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4641880-1-expected.txt
index badefd0..6c3421f 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4641880-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4641880-1-expected.txt
@@ -26,5 +26,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 237x18
             text run at (0,0) width 237: "This paragraph should not be in a list."
           RenderBR {BR} at (237,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/mac/editing/execCommand/4641880-2-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4641880-2-expected.txt
index 6d229ff..8dfe6bd 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4641880-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4641880-2-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 246x18
             text run at (0,0) width 246: "This paragraph should not be indented."
           RenderBR {BR} at (246,14) size 0x0
-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 35 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 1 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
+selection end:   position 35 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/4747450-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4747450-expected.txt
index 0b62293..0b6f950 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4747450-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4747450-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-17,0) size 7x18: bullet
               RenderBR {BR} at (0,0) size 0x18
           RenderBlock (anonymous) at (0,34) 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/mac/editing/execCommand/4786404-1-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4786404-1-expected.txt
index ccf1ddf..94454b5 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4786404-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4786404-1-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x18 [color=#000000]
         RenderText {#text} at (0,0) size 71x18
           text run at (0,0) width 71: "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/mac/editing/execCommand/4786404-2-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4786404-2-expected.txt
index 8b845d3..8372271 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4786404-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4786404-2-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x18
         RenderText {#text} at (0,0) size 71x18
           text run at (0,0) width 71: "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/mac/editing/execCommand/4916402-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4916402-expected.txt
index 9313a21..9e928c0 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4916402-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4916402-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 20x18
               text run at (0,0) width 20: "bar"
         RenderBlock (anonymous) at (0,68) 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/mac/editing/execCommand/4916541-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4916541-expected.txt
index ca5aeab..ef8e68a 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4916541-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4916541-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,18) size 20x18
               text run at (0,18) width 20: "bar"
         RenderBlock (anonymous) at (0,36) size 784x0
-selection start: position 1 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
-selection end:   position 2 of child 0 {#text} of child 1 {SPAN} 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 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 1 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/4920488-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4920488-expected.txt
index fa0c695..813fa5f 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4920488-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4920488-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x18
         RenderText {#text} at (0,0) size 53x18
           text run at (0,0) width 53: "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/mac/editing/execCommand/4920742-1-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4920742-1-expected.txt
index 93f2bdd..7daa237 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4920742-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4920742-1-expected.txt
@@ -19,5 +19,5 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (21,14) size 0x0
           RenderBR {BR} at (0,18) size 0x18
           RenderBR {BR} at (0,36) size 0x18
-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 1 of child 2 {BR} of child 0 {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 1 of child 2 {BR} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/4924441-expected.txt b/LayoutTests/platform/mac/editing/execCommand/4924441-expected.txt
index fbacac1..b510428 100644
--- a/LayoutTests/platform/mac/editing/execCommand/4924441-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/4924441-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 21x18
                 text run at (0,0) width 21: "foo"
         RenderBlock (anonymous) at (0,34) 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/mac/editing/execCommand/5049671-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5049671-expected.txt
index bd9176d..805a54a 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5049671-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5049671-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x18
         RenderText {#text} at (0,0) size 239x18
           text run at (0,0) width 239: "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/mac/editing/execCommand/5080333-1-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5080333-1-expected.txt
index 394ca78..97a843f 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5080333-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5080333-1-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,121) size 784x18
           RenderText {#text} at (0,0) size 22x18
             text run at (0,0) width 22: "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/mac/editing/execCommand/5080333-2-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5080333-2-expected.txt
index 10ea4fc..2c7ae80 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5080333-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5080333-2-expected.txt
@@ -19,5 +19,5 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,121) size 784x18
           RenderText {#text} at (0,0) size 22x18
             text run at (0,0) width 22: "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/mac/editing/execCommand/5136770-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5136770-expected.txt
index 817d712..65c14ab 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5136770-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5136770-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 237x18
                 text run at (0,0) width 237: "This should be an unordered list item."
           RenderBlock (anonymous) at (0,70) 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/mac/editing/execCommand/5138441-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5138441-expected.txt
index 69948fb..a6e97ff 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5138441-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5138441-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (8,26) size 768x36 [border: (1px dashed #AAAAAA)]
           RenderText {#text} at (9,9) size 175x18
             text run at (9,9) width 175: "This text should be Quoted."
-caret: position 0 of child 0 {#text} of child 0 {DIV} 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 0 {DIV} of child 1 {BLOCKQUOTE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/5142012-1-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5142012-1-expected.txt
index cdb36ee..87ea53a 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5142012-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5142012-1-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
               text run at (0,0) width 15: "W"
           RenderText {#text} at (15,0) size 30x18
             text run at (15,0) width 30: "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/mac/editing/execCommand/5142012-2-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5142012-2-expected.txt
index bf14221..c0d6a52 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5142012-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5142012-2-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
               text run at (336,0) width 400: "This paragraph should be a link and should be inside a list item."
           RenderText {#text} at (0,0) size 0x0
       RenderBlock (anonymous) at (0,34) 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/mac/editing/execCommand/5190926-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5190926-expected.txt
index 376629d..1b2c204 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5190926-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5190926-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 222x18
               text run at (0,0) width 222: "And all three should be underlined."
       RenderBlock (anonymous) at (0,70) 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/mac/editing/execCommand/5481523-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5481523-expected.txt
index 3fc2305..59388a8 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5481523-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5481523-expected.txt
@@ -28,5 +28,5 @@ layer at (0,0) size 800x600
                     RenderText {#text} at (2,2) size 30x18
                       text run at (2,2) width 30: "Four"
         RenderBlock (anonymous) at (0,52) size 784x0
-selection start: position 0 of child 0 {TABLE} of child 0 {BLOCKQUOTE} of child 1 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {TABLE} of child 0 {BLOCKQUOTE} of child 1 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {TABLE} of child 0 {BLOCKQUOTE} of child 1 {BLOCKQUOTE} of child 2 {DIV} of body
+selection end:   position 2 of child 0 {TABLE} of child 0 {BLOCKQUOTE} of child 1 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/5482023-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5482023-expected.txt
index eaf8cec..2e47a95 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5482023-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5482023-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (512,37) width 259: "This text should be"
           text run at (771,37) width 8: " "
           text run at (0,74) width 287: "inside an h1 element."
-caret: position 132 of child 0 {#text} of child 0 {H1} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 132 of child 0 {#text} of child 0 {H1} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/5482524-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5482524-expected.txt
index d5bd943..516aba0 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5482524-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5482524-expected.txt
@@ -38,5 +38,5 @@ layer at (0,0) size 800x600
                     RenderListMarker at (-17,0) size 7x18: bullet
                     RenderBR {BR} at (0,0) size 0x18
                 RenderBlock (anonymous) at (2,36) size 40x0
-selection start: position 0 of child 0 {#text} of child 0 {LI} of child 0 {UL} 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
-selection end:   position 0 of child 0 {LI} of child 0 {UL} of child 1 {TD} of child 1 {TR} of child 0 {TBODY} 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 {#text} of child 0 {LI} of child 0 {UL} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
+selection end:   position 0 of child 0 {LI} of child 0 {UL} of child 1 {TD} of child 1 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/5569741-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5569741-expected.txt
index 2672486..41b3f94 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5569741-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5569741-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderListItem {LI} at (40,36) size 744x18
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderBR {BR} at (0,0) size 0x18
-caret: position 0 of child 0 {BR} of child 1 {LI} of child 1 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 1 {LI} of child 1 {UL} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/5573879-expected.txt b/LayoutTests/platform/mac/editing/execCommand/5573879-expected.txt
index 8da9a04..f8accdd 100644
--- a/LayoutTests/platform/mac/editing/execCommand/5573879-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/5573879-expected.txt
@@ -14,5 +14,5 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (21,14) size 0x0
           RenderText {#text} at (0,18) size 20x18
             text run at (0,18) width 20: "bar"
-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 2 {#text} of child 0 {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 2 {#text} of child 0 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/create-list-from-range-selection-expected.txt b/LayoutTests/platform/mac/editing/execCommand/create-list-from-range-selection-expected.txt
index d82c843..e24430e 100644
--- a/LayoutTests/platform/mac/editing/execCommand/create-list-from-range-selection-expected.txt
+++ b/LayoutTests/platform/mac/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 22x18
               text run at (0,0) width 22: "baz"
         RenderBlock (anonymous) at (0,124) 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/mac/editing/execCommand/create-list-with-hr-expected.txt b/LayoutTests/platform/mac/editing/execCommand/create-list-with-hr-expected.txt
index 4b79077..a254591 100644
--- a/LayoutTests/platform/mac/editing/execCommand/create-list-with-hr-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/create-list-with-hr-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
             RenderBlock (anonymous) at (0,10) size 744x18
               RenderListMarker at (-17,0) size 7x18: bullet
         RenderBlock (anonymous) at (0,44) 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/mac/editing/execCommand/findString-2-expected.txt b/LayoutTests/platform/mac/editing/execCommand/findString-2-expected.txt
index 434a552..0d00901 100644
--- a/LayoutTests/platform/mac/editing/execCommand/findString-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/findString-2-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
             text run at (25,0) width 20: "bar"
         RenderText {#text} at (45,0) size 101x18
           text run at (45,0) width 101: " 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/mac/editing/execCommand/findString-expected.txt b/LayoutTests/platform/mac/editing/execCommand/findString-expected.txt
index 28c03f6..c97126d 100644
--- a/LayoutTests/platform/mac/editing/execCommand/findString-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/findString-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
             text run at (1,19) width 20: "bar"
         RenderText {#text} at (21,19) size 26x18
           text run at (21,19) width 26: " 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/mac/editing/execCommand/format-block-expected.txt b/LayoutTests/platform/mac/editing/execCommand/format-block-expected.txt
index 84fc468..7b44dff 100644
--- a/LayoutTests/platform/mac/editing/execCommand/format-block-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/format-block-expected.txt
@@ -45,4 +45,4 @@ layer at (0,0) size 800x600
         RenderBlock {ADDRESS} at (1,193) size 782x18
           RenderText {#text} at (0,0) size 279x18
             text run at (0,0) width 279: "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/mac/editing/execCommand/format-block-from-range-selection-expected.txt b/LayoutTests/platform/mac/editing/execCommand/format-block-from-range-selection-expected.txt
index 0a17ac8..fa510ff 100644
--- a/LayoutTests/platform/mac/editing/execCommand/format-block-from-range-selection-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/format-block-from-range-selection-expected.txt
@@ -44,5 +44,5 @@ layer at (0,0) size 800x600
         RenderBlock {DL} at (1,187) size 782x18
           RenderText {#text} at (0,0) size 20x18
             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/mac/editing/execCommand/format-block-with-braces-expected.txt b/LayoutTests/platform/mac/editing/execCommand/format-block-with-braces-expected.txt
index aa26afc..d62fbe3 100644
--- a/LayoutTests/platform/mac/editing/execCommand/format-block-with-braces-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/format-block-with-braces-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,115) 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/mac/editing/execCommand/format-block-with-trailing-br-expected.txt b/LayoutTests/platform/mac/editing/execCommand/format-block-with-trailing-br-expected.txt
index bbde7c5..133a558 100644
--- a/LayoutTests/platform/mac/editing/execCommand/format-block-with-trailing-br-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/format-block-with-trailing-br-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderBlock {PRE} at (1,14) size 782x15
           RenderText {#text} at (0,0) size 24x15
             text run at (0,0) width 24: "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/mac/editing/execCommand/hilitecolor-expected.txt b/LayoutTests/platform/mac/editing/execCommand/hilitecolor-expected.txt
index 06a4382..85d3c6c 100644
--- a/LayoutTests/platform/mac/editing/execCommand/hilitecolor-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/hilitecolor-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             text run at (29,0) width 44: "second"
         RenderText {#text} at (73,0) size 543x18
           text run at (73,0) width 543: " 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/mac/editing/execCommand/indent-empty-root-expected.txt b/LayoutTests/platform/mac/editing/execCommand/indent-empty-root-expected.txt
index a0034c1..c2e8172 100644
--- a/LayoutTests/platform/mac/editing/execCommand/indent-empty-root-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/indent-empty-root-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,34) size 784x18
         RenderBlock {BLOCKQUOTE} at (40,0) size 744x18
           RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/execCommand/indent-list-item-expected.txt b/LayoutTests/platform/mac/editing/execCommand/indent-list-item-expected.txt
index e180c07..4fe9a2e 100644
--- a/LayoutTests/platform/mac/editing/execCommand/indent-list-item-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/indent-list-item-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderText {#text} at (0,0) size 25x18
               text run at (0,0) width 25: "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/mac/editing/execCommand/indent-selection-expected.txt b/LayoutTests/platform/mac/editing/execCommand/indent-selection-expected.txt
index a4548bc..c8fdd59 100644
--- a/LayoutTests/platform/mac/editing/execCommand/indent-selection-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/indent-selection-expected.txt
@@ -56,5 +56,5 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,18) size 38x18
                 text run at (0,18) width 38: "Thing"
         RenderBlock (anonymous) at (0,194) size 784x0
-selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 3 {SPAN} 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 0 {SPAN} of child 1 {BLOCKQUOTE} of child 4 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 3 {SPAN} of child 3 {BLOCKQUOTE} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/insert-list-and-stitch-expected.txt b/LayoutTests/platform/mac/editing/execCommand/insert-list-and-stitch-expected.txt
index 45b72a8..606141b 100644
--- a/LayoutTests/platform/mac/editing/execCommand/insert-list-and-stitch-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/insert-list-and-stitch-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 22x18
                 text run at (0,0) width 22: "baz"
           RenderBlock (anonymous) at (0,70) 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/mac/editing/execCommand/insert-list-empty-div-expected.txt b/LayoutTests/platform/mac/editing/execCommand/insert-list-empty-div-expected.txt
index c083b01..9cff0bb 100644
--- a/LayoutTests/platform/mac/editing/execCommand/insert-list-empty-div-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/insert-list-empty-div-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderBR {BR} at (0,0) size 0x18
         RenderBlock (anonymous) at (0,34) 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/mac/editing/execCommand/insertImage-expected.txt b/LayoutTests/platform/mac/editing/execCommand/insertImage-expected.txt
index 8431a7b..07b9598 100644
--- a/LayoutTests/platform/mac/editing/execCommand/insertImage-expected.txt
+++ b/LayoutTests/platform/mac/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,171) 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/mac/editing/execCommand/nsresponder-indent-expected.txt b/LayoutTests/platform/mac/editing/execCommand/nsresponder-indent-expected.txt
index 7cfd34c..58f7edb 100644
--- a/LayoutTests/platform/mac/editing/execCommand/nsresponder-indent-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/nsresponder-indent-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 21x18
             text run at (0,0) width 21: "foo"
         RenderBlock (anonymous) at (0,18) size 784x0
-caret: position 0 of child 0 {#text} 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 {BLOCKQUOTE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/nsresponder-outdent-expected.txt b/LayoutTests/platform/mac/editing/execCommand/nsresponder-outdent-expected.txt
index dba5d30..ff78d9a 100644
--- a/LayoutTests/platform/mac/editing/execCommand/nsresponder-outdent-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/nsresponder-outdent-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,34) size 784x18
         RenderText {#text} at (0,0) size 21x18
           text run at (0,0) width 21: "foo"
-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/mac/editing/execCommand/outdent-blockquote-test5-expected.txt b/LayoutTests/platform/mac/editing/execCommand/outdent-blockquote-test5-expected.txt
index d974db1..82f95f2 100644
--- a/LayoutTests/platform/mac/editing/execCommand/outdent-blockquote-test5-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/outdent-blockquote-test5-expected.txt
@@ -27,5 +27,5 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x18
           RenderText {#text} at (0,18) size 11x18
             text run at (0,18) width 11: "B"
-selection start: position 0 of child 1 {BR} of child 1 {BLOCKQUOTE} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 14 of child 4 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {BR} of child 1 {BLOCKQUOTE} of child 5 {DIV} of body
+selection end:   position 14 of child 4 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/outdent-selection-expected.txt b/LayoutTests/platform/mac/editing/execCommand/outdent-selection-expected.txt
index 9e67438..d01e481 100644
--- a/LayoutTests/platform/mac/editing/execCommand/outdent-selection-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/outdent-selection-expected.txt
@@ -59,5 +59,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,18) size 38x18
               text run at (0,18) width 38: "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 17 {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 17 {SPAN} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/print-expected.txt b/LayoutTests/platform/mac/editing/execCommand/print-expected.txt
index 5df1d58..1df423c 100644
--- a/LayoutTests/platform/mac/editing/execCommand/print-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/print-expected.txt
@@ -45,4 +45,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,342) 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/mac/editing/execCommand/remove-formatting-2-expected.txt b/LayoutTests/platform/mac/editing/execCommand/remove-formatting-2-expected.txt
index b4478a6..103fc71 100644
--- a/LayoutTests/platform/mac/editing/execCommand/remove-formatting-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/remove-formatting-2-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x18
         RenderText {#text} at (0,0) size 305x18
           text run at (0,0) width 305: "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/mac/editing/execCommand/remove-formatting-expected.txt b/LayoutTests/platform/mac/editing/execCommand/remove-formatting-expected.txt
index 0316daf..20e29ea 100644
--- a/LayoutTests/platform/mac/editing/execCommand/remove-formatting-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/remove-formatting-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,36) size 63x18
           text run at (0,36) width 63: "foobarbaz"
       RenderBlock {UL} at (0,122) 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 9 of child 4 {#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 9 of child 4 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/execCommand/remove-list-from-range-selection-expected.txt b/LayoutTests/platform/mac/editing/execCommand/remove-list-from-range-selection-expected.txt
index 2234d37..e4114af 100644
--- a/LayoutTests/platform/mac/editing/execCommand/remove-list-from-range-selection-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/remove-list-from-range-selection-expected.txt
@@ -32,5 +32,5 @@ layer at (0,0) size 800x600
             RenderListMarker at (-20,0) size 16x18: "1"
             RenderText {#text} at (0,0) size 316x18
               text run at (0,0) width 316: "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/mac/editing/execCommand/remove-list-item-1-expected.txt b/LayoutTests/platform/mac/editing/execCommand/remove-list-item-1-expected.txt
index 2de6185..3ebda2e 100644
--- a/LayoutTests/platform/mac/editing/execCommand/remove-list-item-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/remove-list-item-1-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderText {#text} at (0,0) size 21x18
               text run at (0,0) width 21: "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/mac/editing/execCommand/selectAll-expected.txt b/LayoutTests/platform/mac/editing/execCommand/selectAll-expected.txt
index f8a48b4..890cbe9 100644
--- a/LayoutTests/platform/mac/editing/execCommand/selectAll-expected.txt
+++ b/LayoutTests/platform/mac/editing/execCommand/selectAll-expected.txt
@@ -47,5 +47,5 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,342) 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/mac/editing/input/5576619-expected.txt b/LayoutTests/platform/mac/editing/input/5576619-expected.txt
index 1b326fb..4874cf4 100644
--- a/LayoutTests/platform/mac/editing/input/5576619-expected.txt
+++ b/LayoutTests/platform/mac/editing/input/5576619-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 582: "This tests for a bug where deleting a character inserted with Kotoeri would remove the caret."
       RenderBlock {DIV} at (0,34) size 784x18
         RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/input/devanagari-ligature-expected.txt b/LayoutTests/platform/mac/editing/input/devanagari-ligature-expected.txt
index bd610dc..53fa392 100644
--- a/LayoutTests/platform/mac/editing/input/devanagari-ligature-expected.txt
+++ b/LayoutTests/platform/mac/editing/input/devanagari-ligature-expected.txt
@@ -6,4 +6,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x19
         RenderText {#text} at (0,1) size 11x18
           text run at (0,1) width 11: "\x{915}\x{94D}\x{937}"
-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/mac/editing/input/emacs-ctrl-o-expected.txt b/LayoutTests/platform/mac/editing/input/emacs-ctrl-o-expected.txt
index dc55392..aa3fd9a 100644
--- a/LayoutTests/platform/mac/editing/input/emacs-ctrl-o-expected.txt
+++ b/LayoutTests/platform/mac/editing/input/emacs-ctrl-o-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,28) size 784x28
           RenderText {#text} at (0,0) size 137x28
             text run at (0,0) width 137: "two three four"
-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/mac/editing/inserting/12882-expected.txt b/LayoutTests/platform/mac/editing/inserting/12882-expected.txt
index 75d6502..9701a28 100644
--- a/LayoutTests/platform/mac/editing/inserting/12882-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/12882-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           text run at (198,0) width 483: " our fathers brought forth on this continent a new nation, conceived in liberty"
           text run at (681,0) width 4: " "
           text run at (0,18) width 392: "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/mac/editing/inserting/4278698-expected.txt b/LayoutTests/platform/mac/editing/inserting/4278698-expected.txt
index 3b5b7a6..bfcaf7f 100644
--- a/LayoutTests/platform/mac/editing/inserting/4278698-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/4278698-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBlock {PRE} at (2,2) size 780x19 [border: (2px solid #AAAAFF)]
           RenderText {#text} at (2,2) size 96x15
             text run at (2,2) 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/mac/editing/inserting/4840662-expected.txt b/LayoutTests/platform/mac/editing/inserting/4840662-expected.txt
index aab52c6..55f6c87 100644
--- a/LayoutTests/platform/mac/editing/inserting/4840662-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/4840662-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
         RenderBlock {A} at (0,0) size 784x18 [color=#0000EE]
           RenderText {#text} at (0,0) size 248x18
             text run at (0,0) width 248: "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/mac/editing/inserting/4875189-1-expected.txt b/LayoutTests/platform/mac/editing/inserting/4875189-1-expected.txt
index 181d1ad..a943c5b 100644
--- a/LayoutTests/platform/mac/editing/inserting/4875189-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/4875189-1-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderText {#text} at (0,0) size 177x18
               text run at (0,0) width 177: "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/mac/editing/inserting/4875189-2-expected.txt b/LayoutTests/platform/mac/editing/inserting/4875189-2-expected.txt
index c2ab923..759ef15 100644
--- a/LayoutTests/platform/mac/editing/inserting/4875189-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/4875189-2-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
         RenderBlock (floating) {DIV} at (0,0) size 293x20 [border: (1px solid #0000FF)]
           RenderText {#text} at (1,1) size 291x18
             text run at (1,1) width 291: "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/mac/editing/inserting/4959067-expected.txt b/LayoutTests/platform/mac/editing/inserting/4959067-expected.txt
index 5d112cf..2a8cf81 100644
--- a/LayoutTests/platform/mac/editing/inserting/4959067-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/4959067-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 21x18
                 text run at (0,0) width 21: "foo"
       RenderBlock {UL} at (0,68) 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/mac/editing/inserting/4960120-1-expected.txt b/LayoutTests/platform/mac/editing/inserting/4960120-1-expected.txt
index 84f7070..94e2e2a 100644
--- a/LayoutTests/platform/mac/editing/inserting/4960120-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/4960120-1-expected.txt
@@ -16,4 +16,4 @@ layer at (10,44) size 161x32 clip at (11,45) size 159x30
         text run at (0,0) width 0: " "
       RenderText {#text} at (0,13) size 0x13
         text run at (0,13) 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/mac/editing/inserting/4960120-2-expected.txt b/LayoutTests/platform/mac/editing/inserting/4960120-2-expected.txt
index 08fb929..9f86e91 100644
--- a/LayoutTests/platform/mac/editing/inserting/4960120-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/4960120-2-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,36) size 784x18
           RenderText {#text} at (0,0) size 20x18
             text run at (0,0) width 20: "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/mac/editing/inserting/5002441-expected.txt b/LayoutTests/platform/mac/editing/inserting/5002441-expected.txt
index 448026d..3b972fc 100644
--- a/LayoutTests/platform/mac/editing/inserting/5002441-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5002441-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,18) size 784x18
           RenderText {#text} at (0,0) size 345x18
             text run at (0,0) width 345: "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/mac/editing/inserting/5058163-1-expected.txt b/LayoutTests/platform/mac/editing/inserting/5058163-1-expected.txt
index d30961b..6ca807e 100644
--- a/LayoutTests/platform/mac/editing/inserting/5058163-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5058163-1-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
                 RenderTableCell {TD} at (2,2) size 270x20 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (1,1) size 268x18
                     text run at (1,1) width 268: "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/mac/editing/inserting/5058163-2-expected.txt b/LayoutTests/platform/mac/editing/inserting/5058163-2-expected.txt
index 28a616d..a825491 100644
--- a/LayoutTests/platform/mac/editing/inserting/5058163-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5058163-2-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,36) size 784x18
           RenderText {#text} at (0,0) size 663x18
             text run at (0,0) width 663: "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/mac/editing/inserting/5156401-2-expected.txt b/LayoutTests/platform/mac/editing/inserting/5156401-2-expected.txt
index 50e6f9f..7de14af 100644
--- a/LayoutTests/platform/mac/editing/inserting/5156401-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5156401-2-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 420x18
             text run at (0,0) width 420: "Everything in this editable region should be in the same paragraph."
           RenderBR {BR} at (420,14) 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/mac/editing/inserting/5418891-expected.txt b/LayoutTests/platform/mac/editing/inserting/5418891-expected.txt
index dda9cab..0aa3cca 100644
--- a/LayoutTests/platform/mac/editing/inserting/5418891-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5418891-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (7,0) size 777x18
             RenderText {#text} at (0,0) size 20x18
               text run at (0,0) width 20: "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/mac/editing/inserting/5510537-expected.txt b/LayoutTests/platform/mac/editing/inserting/5510537-expected.txt
index a45509d..ceab505 100644
--- a/LayoutTests/platform/mac/editing/inserting/5510537-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5510537-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 97x18
                   text run at (0,0) width 97: "quote level two"
       RenderBlock {PRE} at (0,155) 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/mac/editing/inserting/5549929-2-expected.txt b/LayoutTests/platform/mac/editing/inserting/5549929-2-expected.txt
index 4a83ab8..dcada55 100644
--- a/LayoutTests/platform/mac/editing/inserting/5549929-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5549929-2-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
               text run at (0,18) width 32: "\x{9}"
           RenderText {#text} at (32,18) size 20x18
             text run at (32,18) width 20: "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/mac/editing/inserting/5549929-3-expected.txt b/LayoutTests/platform/mac/editing/inserting/5549929-3-expected.txt
index c9b9a8e..b0a216f 100644
--- a/LayoutTests/platform/mac/editing/inserting/5549929-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5549929-3-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
             text run at (21,0) width 11: "\x{9}"
         RenderBR {BR} at (32,14) size 0x0
         RenderBR {BR} at (0,18) size 0x18
-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/mac/editing/inserting/5607069-2-expected.txt b/LayoutTests/platform/mac/editing/inserting/5607069-2-expected.txt
index 5366ada..71d8c99 100644
--- a/LayoutTests/platform/mac/editing/inserting/5607069-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5607069-2-expected.txt
@@ -15,4 +15,4 @@ layer at (13,65) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
 layer at (13,88) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-caret: position 0 of child 2 {INPUT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {INPUT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/inserting/5607069-3-expected.txt b/LayoutTests/platform/mac/editing/inserting/5607069-3-expected.txt
index 5ceabf4..a45dcdd 100644
--- a/LayoutTests/platform/mac/editing/inserting/5607069-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/5607069-3-expected.txt
@@ -21,4 +21,4 @@ layer at (14,66) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
 layer at (22,89) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-caret: position 0 of child 3 {#text} of child 0 {FORM} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 3 {#text} of child 0 {FORM} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/inserting/6703873-expected.txt b/LayoutTests/platform/mac/editing/inserting/6703873-expected.txt
index 4363da4..8d24e91 100644
--- a/LayoutTests/platform/mac/editing/inserting/6703873-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/6703873-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 43x18
               text run at (0,0) width 43: "quoted"
       RenderBlock {PRE} at (0,119) 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/mac/editing/inserting/before-after-input-element-expected.txt b/LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.txt
index d850b55..9107057 100644
--- a/LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (164,2) width 40: "World"
 layer at (48,47) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-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/mac/editing/inserting/break-blockquote-after-delete-expected.txt b/LayoutTests/platform/mac/editing/inserting/break-blockquote-after-delete-expected.txt
index 41038c5..fb7daed 100644
--- a/LayoutTests/platform/mac/editing/inserting/break-blockquote-after-delete-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/break-blockquote-after-delete-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (12,0) size 35x18
                 text run at (12,0) width 35: "green"
         RenderBlock (anonymous) at (0,54) size 784x0
-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/mac/editing/inserting/editable-html-element-expected.txt b/LayoutTests/platform/mac/editing/inserting/editable-html-element-expected.txt
index a0478dd..3c618f8 100644
--- a/LayoutTests/platform/mac/editing/inserting/editable-html-element-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/editable-html-element-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
       RenderBlock {DIV} at (0,54) size 784x18
         RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/inserting/editable-inline-element-expected.txt b/LayoutTests/platform/mac/editing/inserting/editable-inline-element-expected.txt
index 11cdcb5..ba9eca6 100644
--- a/LayoutTests/platform/mac/editing/inserting/editable-inline-element-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/editable-inline-element-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (1,1) size 0x18
           RenderText {#text} at (1,19) size 21x18
             text run at (1,19) width 21: "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/mac/editing/inserting/edited-whitespace-1-expected.txt b/LayoutTests/platform/mac/editing/inserting/edited-whitespace-1-expected.txt
index fa884f5..1617462 100644
--- a/LayoutTests/platform/mac/editing/inserting/edited-whitespace-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/edited-whitespace-1-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           text run at (1,1) width 55: " Hello    "
           text run at (1,19) width 44: "World "
       RenderBlock {OL} at (0,106) 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/mac/editing/inserting/editing-empty-divs-expected.txt b/LayoutTests/platform/mac/editing/inserting/editing-empty-divs-expected.txt
index 3763d09..30512d8 100644
--- a/LayoutTests/platform/mac/editing/inserting/editing-empty-divs-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/editing-empty-divs-expected.txt
@@ -81,4 +81,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 7: "c"
           RenderText {#text} at (0,0) size 0x0
         RenderBlock {P} at (1,35) 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/mac/editing/inserting/insert-3654864-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3654864-fix-expected.txt
index 520d58c..5a6c61e 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3654864-fix-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/inserting/insert-3659587-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3659587-fix-expected.txt
index 9c4871e..6727448 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3659587-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-3659587-fix-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (122,36) size 0x0
             RenderText {#text} at (14,42) size 36x28
               text run at (14,42) width 36: "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/mac/editing/inserting/insert-3775316-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3775316-fix-expected.txt
index 600f412..80ec6e5 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3775316-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-3775316-fix-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (26,36) size 0x0
         RenderText {#text} at (14,42) size 12x28
           text run at (14,42) 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/mac/editing/inserting/insert-3778059-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3778059-fix-expected.txt
index 9512041..93d072a 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3778059-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-3778059-fix-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderBlock {BLOCKQUOTE} at (40,104) size 676x28
             RenderText {#text} at (0,0) size 42x28
               text run at (0,0) width 42: "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/mac/editing/inserting/insert-3786362-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3786362-fix-expected.txt
index df2df35..40c269c 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3786362-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-3786362-fix-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
             text run at (2,2) width 11: "a"
           RenderBR {BR} at (13,24) size 0x0
           RenderBR {BR} at (2,30) size 0x28
-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/mac/editing/inserting/insert-3800346-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3800346-fix-expected.txt
index e02dae6..8e75d39 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3800346-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-3800346-fix-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (0,28) size 0x28
             RenderBR {BR} at (0,56) size 0x28
             RenderBR {BR} at (0,84) size 0x28
-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/mac/editing/inserting/insert-3851164-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3851164-fix-expected.txt
index cd7f6f4..ca0be1c 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3851164-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-3851164-fix-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,0) size 784x28
         RenderText {#text} at (0,0) size 12x28
           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/mac/editing/inserting/insert-3907422-fix-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-3907422-fix-expected.txt
index 671e48c..ef3d714 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-3907422-fix-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/inserting/insert-after-delete-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-after-delete-001-expected.txt
index 04697c9..6d18f78 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-after-delete-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-after-delete-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 36x28
           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/mac/editing/inserting/insert-at-end-01-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-at-end-01-expected.txt
index a9184cf..5713840 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-at-end-01-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-at-end-01-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (2,46) size 780x18
           RenderText {#text} at (0,0) size 8x18
             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/mac/editing/inserting/insert-at-end-02-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-at-end-02-expected.txt
index a7d12bd..f3377e5 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-at-end-02-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-at-end-02-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (2,46) size 780x18
           RenderText {#text} at (0,0) size 8x18
             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/mac/editing/inserting/insert-br-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-001-expected.txt
index 4f76c93..3356a4b 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 12x28
             text run at (14,42) 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/mac/editing/inserting/insert-br-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-002-expected.txt
index 1407c34..0756a3f 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-002-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 34x28
             text run at (14,70) width 34: "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/mac/editing/inserting/insert-br-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-003-expected.txt
index 9c53d85..99a8b5d 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-003-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 46x28
             text run at (14,42) width 46: "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/mac/editing/inserting/insert-br-004-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-004-expected.txt
index 81a7647..068ac22 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-004-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (14,42) size 0x28
           RenderBR {BR} at (14,70) size 0x28
         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/mac/editing/inserting/insert-br-005-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-005-expected.txt
index 1de5048..e60baca 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-005-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 12x28
             text run at (14,70) 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/mac/editing/inserting/insert-br-006-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-006-expected.txt
index 5a3640b..436192a 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-006-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 44x28
             text run at (14,42) width 44: "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/mac/editing/inserting/insert-br-007-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-007-expected.txt
index c40cf7d..a7aad46 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-007-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 37x28
             text run at (14,42) width 37: " 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/mac/editing/inserting/insert-br-008-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-008-expected.txt
index 3652763..9e96bd8 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-008-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x28
         RenderText {#text} at (14,42) size 38x28
           text run at (14,42) width 38: " 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/mac/editing/inserting/insert-br-009-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-009-expected.txt
index 49978eb..98a3b86 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-009-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           text run at (1,19) width 0: " "
         RenderText {#text} at (1,37) size 0x18
           text run at (1,37) 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/mac/editing/inserting/insert-br-at-tabspan-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-001-expected.txt
index 318c1ac..3f8f8de 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (158,42) size 11x28
             text run at (158,42) width 11: "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/mac/editing/inserting/insert-br-at-tabspan-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-002-expected.txt
index 559d8d9..d98193a 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-002-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (110,42) size 11x28
             text run at (110,42) width 11: "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/mac/editing/inserting/insert-br-at-tabspan-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-003-expected.txt
index ba0ea4f..4242ad5 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-at-tabspan-003-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 23x28
             text run at (14,42) width 23: "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/mac/editing/inserting/insert-br-quoted-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-001-expected.txt
index 182c476..db38965 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-001-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,2) size 672x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/inserting/insert-br-quoted-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-002-expected.txt
index 3daf39b..7dd7c1e 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-002-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,2) size 672x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/inserting/insert-br-quoted-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-003-expected.txt
index 637692f..8be3fd2 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-003-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,30) size 672x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/inserting/insert-br-quoted-004-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-004-expected.txt
index d0bdc1b..7503352 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-004-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,30) size 672x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/inserting/insert-br-quoted-005-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-005-expected.txt
index 3daf39b..7dd7c1e 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-005-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,2) size 672x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/inserting/insert-br-quoted-006-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-006-expected.txt
index 7f1a17e..c708d36 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-br-quoted-006-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (2,30) size 672x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/inserting/insert-div-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-001-expected.txt
index f3a0b6a..b187cca 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-001-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x28
           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/mac/editing/inserting/insert-div-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-002-expected.txt
index 06b460d..4348afd 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-002-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x28
           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/mac/editing/inserting/insert-div-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-003-expected.txt
index 8e86561..61b2a96 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-003-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 46x28
           text run at (14,14) width 46: "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/mac/editing/inserting/insert-div-004-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-004-expected.txt
index cb4977d..2806a84 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-004-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x28
       RenderBlock {DIV} at (0,112) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-005-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-005-expected.txt
index 3688133..a46b04b 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-005-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,112) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x28
           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/mac/editing/inserting/insert-div-006-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-006-expected.txt
index a6c6f9a..4bd3f13 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-006-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 46x28
           text run at (14,14) width 46: "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/mac/editing/inserting/insert-div-007-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-007-expected.txt
index 2ebd6d9..a0a1a82 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-007-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 37x28
           text run at (14,14) width 37: " 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/mac/editing/inserting/insert-div-008-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-008-expected.txt
index 2380395..0b96e2d 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-008-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 44x28
           text run at (14,14) width 44: "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/mac/editing/inserting/insert-div-009-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-009-expected.txt
index 8418077..86ab72d 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-009-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,18) size 784x18
         RenderText {#text} at (0,0) size 8x18
           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/mac/editing/inserting/insert-div-010-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-010-expected.txt
index 82153cc..02e2bda 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-010-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-010-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (14,42) size 756x28
         RenderText {#text} at (0,0) size 12x28
           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/mac/editing/inserting/insert-div-011-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-011-expected.txt
index 7f0f070..7331149 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-011-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-011-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 32: "foo"
       RenderBlock {DIV} at (0,236) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-012-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-012-expected.txt
index fb981e6..d8248ca 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-012-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-012-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 32: "foo"
       RenderBlock {DIV} at (0,236) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-013-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-013-expected.txt
index fda49c8..3ebace2 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-013-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-013-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 32: "foo"
       RenderBlock {DIV} at (0,260) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-014-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-014-expected.txt
index 41eae96..85bf72f 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-014-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-014-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 32: "foo"
         RenderBlock {DIV} at (14,98) size 756x56 [border: (2px solid #FF0000)]
           RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-015-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-015-expected.txt
index 6f0051b..8ec5634 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-015-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-015-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 32: "foo"
       RenderBlock {DIV} at (0,236) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-016-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-016-expected.txt
index d11d901..5d19088 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-016-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-016-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x28
       RenderBlock {DIV} at (0,236) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-017-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-017-expected.txt
index 325a0d5..3b725fa 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-017-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-017-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (14,14) size 0x28
       RenderBlock {DIV} at (0,236) size 784x56 [border: (2px solid #FF0000)]
         RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-div-018-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-018-expected.txt
index f017fae..c7fa773 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-018-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-018-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 34x28
             text run at (14,14) width 34: "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/mac/editing/inserting/insert-div-019-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-019-expected.txt
index a21fc21..38a4511 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-019-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-019-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,304) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 31x28
           text run at (14,14) width 31: "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/mac/editing/inserting/insert-div-020-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-020-expected.txt
index 49cb6ee..e190684 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-020-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-020-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,176) size 784x56 [border: (2px solid #0000FF)]
         RenderText {#text} at (14,14) size 31x28
           text run at (14,14) width 31: "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/mac/editing/inserting/insert-div-021-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-021-expected.txt
index 00d77b6..d51bbcd 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-021-expected.txt
+++ b/LayoutTests/platform/mac/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 31x28
           text run at (14,14) width 31: "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/mac/editing/inserting/insert-div-022-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-022-expected.txt
index 134d2fa..5793e9d 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-022-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-022-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (26,36) size 0x0 [bgcolor=#008000]
         RenderText {#text} at (14,42) size 31x28
           text run at (14,42) width 31: "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/mac/editing/inserting/insert-div-023-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-023-expected.txt
index 93a0806..dd53aa7 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-023-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-023-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 785x688
       RenderBlock {P} at (0,600) size 769x56 [border: (2px solid #0000FF)]
         RenderText {#text} at (14,14) size 55x28
           text run at (14,14) width 55: "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/mac/editing/inserting/insert-div-024-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-024-expected.txt
index a591618..665a92f 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-024-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-024-expected.txt
@@ -72,4 +72,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,388) size 784x56 [border: (2px solid #0000FF)]
         RenderText {#text} at (14,14) size 36x28
           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/mac/editing/inserting/insert-div-025-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-025-expected.txt
index 9cec54a..b23846a 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-025-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-025-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 31x28
             text run at (14,14) width 31: "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/mac/editing/inserting/insert-div-026-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-026-expected.txt
index 1574d73..a8a44e6 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-026-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-026-expected.txt
@@ -57,4 +57,4 @@ layer at (0,0) size 800x600
               text run at (2,2) width 20: "fo"
           RenderText {#text} at (22,2) size 12x28
             text run at (22,2) 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/mac/editing/inserting/insert-div-027-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-div-027-expected.txt
index d8b7bcd..062cd63 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-div-027-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-div-027-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
             text run at (14,14) width 32: "foo"
         RenderBlock {DIV} at (14,98) size 756x56 [border: (2px solid #FF0000)]
           RenderBR {BR} at (14,14) size 0x28
-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/mac/editing/inserting/insert-paragraph-01-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-01-expected.txt
index 47294b3..0464a5f 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-paragraph-01-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-01-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 25x22 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 21x18
                   text run at (2,2) width 21: "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/mac/editing/inserting/insert-paragraph-02-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-02-expected.txt
index c116e32..bd90f15 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-paragraph-02-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-02-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x18
           RenderText {#text} at (0,18) size 20x18
             text run at (0,18) width 20: "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/mac/editing/inserting/insert-paragraph-03-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-03-expected.txt
index f0d38f0..4baa202 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-paragraph-03-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-03-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,54) size 784x18
           RenderText {#text} at (0,0) size 20x18
             text run at (0,0) width 20: "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/mac/editing/inserting/insert-paragraph-04-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-04-expected.txt
index 594ab90..6b0d899 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-paragraph-04-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-04-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
               text run at (0,18) width 24: "bar"
       RenderBlock (anonymous) at (0,142) 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/mac/editing/inserting/insert-paragraph-05-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt
index 20e88b9..4e74c8e 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderInline {A} at (0,0) size 55x18 [color=#0000EE]
             RenderText {#text} at (0,0) size 55x18
               text run at (0,0) width 55: "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/mac/editing/inserting/insert-space-in-empty-doc-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-space-in-empty-doc-expected.txt
index 5a549cd..2686a3f 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-space-in-empty-doc-expected.txt
+++ b/LayoutTests/platform/mac/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 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 38x28
           text run at (14,14) width 38: " 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/mac/editing/inserting/insert-tab-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-tab-001-expected.txt
index 2f2e8b3..85d7cd6 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-tab-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-tab-001-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (62,14) size 32x28
             text run at (62,14) width 32: "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/mac/editing/inserting/insert-tab-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-tab-002-expected.txt
index 18aa027..4394b8c 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-tab-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-tab-002-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 16x28
             RenderText {#text} at (46,14) size 16x28
               text run at (46,14) width 16: "\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/mac/editing/inserting/insert-tab-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-tab-003-expected.txt
index c89f52c..607a4f1 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-tab-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-tab-003-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (62,14) size 12x28
             text run at (62,14) width 12: "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/mac/editing/inserting/insert-tab-004-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-tab-004-expected.txt
index d9dd481..6fbce2f 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-tab-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-tab-004-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (62,42) size 32x28
             text run at (62,42) width 32: "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/mac/editing/inserting/insert-text-at-tabspan-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-001-expected.txt
index 9b68429..419cb41 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-001-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (158,14) size 11x28
             text run at (158,14) width 11: "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/mac/editing/inserting/insert-text-at-tabspan-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-002-expected.txt
index 262c380..e20151a 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-002-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (158,14) size 11x28
             text run at (158,14) width 11: "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/mac/editing/inserting/insert-text-at-tabspan-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-003-expected.txt
index 530932e..13c0521 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-text-at-tabspan-003-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (170,14) size 11x28
             text run at (170,14) width 11: "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/mac/editing/inserting/insert-text-with-newlines-expected.txt b/LayoutTests/platform/mac/editing/inserting/insert-text-with-newlines-expected.txt
index ed1f5cb..173e76b 100644
--- a/LayoutTests/platform/mac/editing/inserting/insert-text-with-newlines-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/insert-text-with-newlines-expected.txt
@@ -66,4 +66,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (14,70) size 0x28
           RenderText {#text} at (14,98) size 70x28
             text run at (14,98) width 70: "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/mac/editing/inserting/line-break-expected.txt b/LayoutTests/platform/mac/editing/inserting/line-break-expected.txt
index 2e59501..effb3f0 100644
--- a/LayoutTests/platform/mac/editing/inserting/line-break-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/line-break-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x36
           RenderBR {BR} at (0,0) size 0x18
           RenderBR {BR} at (0,18) size 0x18
-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/mac/editing/inserting/multiple-lines-selected-expected.txt b/LayoutTests/platform/mac/editing/inserting/multiple-lines-selected-expected.txt
index ea58fe8..38f24d3 100644
--- a/LayoutTests/platform/mac/editing/inserting/multiple-lines-selected-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/multiple-lines-selected-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,18) size 784x18
           RenderText {#text} at (0,0) size 12x18
             text run at (0,0) width 12: "ar"
-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/mac/editing/inserting/paragraph-separator-01-expected.txt b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-01-expected.txt
index 1582d14..4e81f5a 100644
--- a/LayoutTests/platform/mac/editing/inserting/paragraph-separator-01-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-01-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (0,18) size 784x18
             RenderText {#text} at (0,0) size 20x18
               text run at (0,0) width 20: "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/mac/editing/inserting/paragraph-separator-02-expected.txt b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-02-expected.txt
index e3f9433..2d53d47 100644
--- a/LayoutTests/platform/mac/editing/inserting/paragraph-separator-02-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-02-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (0,18) size 784x18
             RenderText {#text} at (0,0) size 20x18
               text run at (0,0) width 20: "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/mac/editing/inserting/paragraph-separator-03-expected.txt b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-03-expected.txt
index cb6f11c..814579c 100644
--- a/LayoutTests/platform/mac/editing/inserting/paragraph-separator-03-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-03-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 24x30
             text run at (0,0) width 0: " "
             text run at (0,15) width 24: "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/mac/editing/inserting/paragraph-separator-in-table-1-expected.txt b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-in-table-1-expected.txt
index d718b6f..8708068 100644
--- a/LayoutTests/platform/mac/editing/inserting/paragraph-separator-in-table-1-expected.txt
+++ b/LayoutTests/platform/mac/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 30x18
                   RenderText {#text} at (2,20) size 30x18
                     text run at (2,20) width 30: "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/mac/editing/inserting/paragraph-separator-in-table-2-expected.txt b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-in-table-2-expected.txt
index 92a17e5..7fd06bd 100644
--- a/LayoutTests/platform/mac/editing/inserting/paragraph-separator-in-table-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/paragraph-separator-in-table-2-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (38,11) size 38x22 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 34x18
                   text run at (2,2) width 34: " 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/mac/editing/inserting/redo-expected.txt b/LayoutTests/platform/mac/editing/inserting/redo-expected.txt
index accc787..2e749bf 100644
--- a/LayoutTests/platform/mac/editing/inserting/redo-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/redo-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x18
         RenderText {#text} at (0,0) size 294x18
           text run at (0,0) width 294: "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/mac/editing/inserting/return-key-with-selection-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-001-expected.txt
index 7a0b0a7..2dad346 100644
--- a/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-001-expected.txt
@@ -51,4 +51,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,58) size 780x28
             RenderText {#text} at (0,0) size 34x28
               text run at (0,0) width 34: "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/mac/editing/inserting/return-key-with-selection-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-002-expected.txt
index a4338fa..3d14098 100644
--- a/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-002-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,58) size 780x28
             RenderText {#text} at (0,0) size 34x28
               text run at (0,0) width 34: "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/mac/editing/inserting/return-key-with-selection-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-003-expected.txt
index db904aa..f900092 100644
--- a/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/return-key-with-selection-003-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,86) size 780x28
             RenderText {#text} at (0,0) size 34x28
               text run at (0,0) width 34: "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/mac/editing/inserting/typing-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/typing-001-expected.txt
index 00bda69..022a24f 100644
--- a/LayoutTests/platform/mac/editing/inserting/typing-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/typing-001-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 176x28
           RenderText {#text} at (14,14) size 176x28
             text run at (14,14) width 176: "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/mac/editing/inserting/typing-002-expected.txt b/LayoutTests/platform/mac/editing/inserting/typing-002-expected.txt
index feb9310..99ac365 100644
--- a/LayoutTests/platform/mac/editing/inserting/typing-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/typing-002-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (93,14) size 33x28
               text run at (93,14) width 33: "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/mac/editing/inserting/typing-003-expected.txt b/LayoutTests/platform/mac/editing/inserting/typing-003-expected.txt
index 4297a68..aa820cd 100644
--- a/LayoutTests/platform/mac/editing/inserting/typing-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/typing-003-expected.txt
@@ -715,4 +715,4 @@ layer at (0,0) size 800x600
           text run at (728,70) width 6: " "
           text run at (14,98) width 360: "xxxxx xxxxxxxxxxxx xxxxxxxx xxx "
         RenderInline {SPAN} at (0,0) size 0x28
-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/mac/editing/inserting/typing-around-br-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/typing-around-br-001-expected.txt
index 22ec816..cd6f8c0 100644
--- a/LayoutTests/platform/mac/editing/inserting/typing-around-br-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/typing-around-br-001-expected.txt
@@ -118,4 +118,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (50,204) size 0x0
           RenderText {#text} at (14,210) size 70x28
             text run at (14,210) width 70: "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/mac/editing/inserting/typing-around-image-001-expected.txt b/LayoutTests/platform/mac/editing/inserting/typing-around-image-001-expected.txt
index 36fdfb5..7ea2b57 100644
--- a/LayoutTests/platform/mac/editing/inserting/typing-around-image-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/typing-around-image-001-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
           RenderImage {IMG} at (292,14) size 76x103
           RenderText {#text} at (368,95) size 36x28
             text run at (368,95) 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/mac/editing/inserting/typing-tab-designmode-forms-expected.txt b/LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt
index 4bfa932..78650e4 100644
--- a/LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt
+++ b/LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt
@@ -18,4 +18,4 @@ layer at (13,13) size 119x13
         text run at (1,0) width 24: "\x{9}"
 layer at (13,36) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {DIV} of child 1 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {DIV} of child 1 {INPUT} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt
index 0ba5538..23308a2 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
           RenderInline {B} at (0,0) size 187x18
             RenderText {#text} at (1,1) size 187x18
               text run at (1,1) width 187: "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/mac/editing/pasteboard/4076267-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4076267-2-expected.txt
index 75a07ee..5233966 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4076267-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4076267-2-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (2,2) size 780x22 [border: (2px solid #AAAAFF)]
           RenderText {#text} at (2,2) size 573x18
             text run at (2,2) width 573: "there should be a single trailing space between the '.' and the last character in this sentence ."
-caret: position 96 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 96 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/4076267-3-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4076267-3-expected.txt
index 2bfd3f6..08d6dde 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4076267-3-expected.txt
+++ b/LayoutTests/platform/mac/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,180) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/pasteboard/4076267-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4076267-expected.txt
index 81b5d95..49c58b6 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4076267-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4076267-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x18
           RenderText {#text} at (0,0) size 330x18
             text run at (0,0) width 330: " this text should have a single leading space before it"
-caret: position 55 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 55 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/4242293-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4242293-1-expected.txt
index c18b959..6eb6a1c 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4242293-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4242293-1-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,18) size 784x18
             RenderText {#text} at (0,0) size 22x18
               text run at (0,0) width 22: "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/mac/editing/pasteboard/4242293-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4242293-expected.txt
index ab8e89b..d78bb7d 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4242293-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4242293-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,55) size 784x18
           RenderText {#text} at (0,0) size 22x18
             text run at (0,0) width 22: "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/mac/editing/pasteboard/4631972-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4631972-expected.txt
index 269713a..1641ba0 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4631972-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/pasteboard/4641033-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4641033-expected.txt
index da41fdf..f3b0850 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4641033-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4641033-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
               text run at (8,2) width 7: "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/mac/editing/pasteboard/4700297-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4700297-expected.txt
index 11ce8d0..5639e4f 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4700297-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4700297-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           text run at (41,0) width 42: "should"
         RenderText {#text} at (83,0) size 215x18
           text run at (83,0) width 215: " 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/mac/editing/pasteboard/4806874-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4806874-expected.txt
index 8732bd6..3097aa4 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4806874-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4806874-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
           text run at (164,2) width 4: ":"
 layer at (48,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/mac/editing/pasteboard/4861080-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4861080-expected.txt
index 4f38bc1..ec56cee 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4861080-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4861080-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,22) size 784x18
           RenderBR {BR} at (0,0) size 0x18
       RenderBlock {UL} at (0,108) size 784x0
-selection start: position 0 of child 1 {#text} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 7 of child 1 {#text} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {#text} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of body
+selection end:   position 7 of child 1 {#text} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/4944770-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4944770-1-expected.txt
index 096173a..1ffb2d3 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4944770-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4944770-1-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,0) size 38x18
             RenderText at (8,2) size 7x13
               text run at (8,2) width 7: "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/mac/editing/pasteboard/4944770-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4944770-2-expected.txt
index 7e2a3e6..5cc6a4b 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4944770-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4944770-2-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           text run at (54,1) width 4: " "
         RenderText {#text} at (58,1) size 8x18
           text run at (58,1) 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/mac/editing/pasteboard/4947130-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4947130-expected.txt
index 2a05f98..c376091 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4947130-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4947130-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (48,0) size 76x103
         RenderText {#text} at (124,89) size 32x18
           text run at (124,89) width 32: "xxxx"
-selection start: position 0 of child 1 {IMG} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {IMG} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {IMG} of child 2 {DIV} of body
+selection end:   position 1 of child 1 {IMG} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/4989774-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/4989774-expected.txt
index 3fecc9e..9497ab2 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/4989774-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/4989774-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         text run at (0,121) width 307: "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/mac/editing/pasteboard/5006779-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5006779-expected.txt
index 018423b..f97c01b 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5006779-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5006779-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (0,72) size 784x18 [color=#0000FF] [border: (2px solid #0000FF)]
           RenderText {#text} at (12,0) size 83x18
             text run at (12,0) width 83: "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/mac/editing/pasteboard/5027857-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5027857-expected.txt
index 29e6981..422c6fb 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5027857-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5027857-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 328: "<input type='button'>foo<br>bar<b>baz</b>"
         RenderBlock (anonymous) at (0,28) 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/mac/editing/pasteboard/5028447-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5028447-expected.txt
index 5fd1130..499bdcb 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5028447-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5028447-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
         text run at (45,29) width 6: " "
       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/mac/editing/pasteboard/5032095-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5032095-expected.txt
index e5d2f57..12903a8 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5032095-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5032095-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 31: "hello"
         RenderText {#text} at (31,0) size 37x18
           text run at (31,0) width 37: "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/mac/editing/pasteboard/5065605-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5065605-expected.txt
index 70bf8f7..33ac10b 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5065605-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5065605-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,36) 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/mac/editing/pasteboard/5071074-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5071074-2-expected.txt
index c565caf..42d3bbf 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5071074-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5071074-2-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (159,0) size 136x18
               text run at (159,0) width 136: "This should be a link."
         RenderBlock (anonymous) at (0,36) 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/mac/editing/pasteboard/5071074-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5071074-expected.txt
index 1574448..df2fe5f 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5071074-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5071074-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
         RenderInline {A} at (0,0) size 136x18 [color=#0000EE]
           RenderText {#text} at (0,0) size 136x18
             text run at (0,0) width 136: "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/mac/editing/pasteboard/5075944-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5075944-2-expected.txt
index 389935a..6f8e148 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5075944-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5075944-2-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 168x18 [color=#FF0000]
             RenderText {#text} at (0,0) size 168x18
               text run at (0,0) width 168: "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/mac/editing/pasteboard/5075944-3-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5075944-3-expected.txt
index 43c16d5..f359301 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5075944-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5075944-3-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (192,0) size 168x18
                 text run at (192,0) width 168: "This should be underlined."
         RenderBlock (anonymous) at (0,18) 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/mac/editing/pasteboard/5075944-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5075944-expected.txt
index b47d312..b44e054 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5075944-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5075944-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderInline {U} at (0,0) size 168x18
           RenderText {#text} at (0,0) size 168x18
             text run at (0,0) width 168: "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/mac/editing/pasteboard/5089327-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5089327-expected.txt
index c779349..5a776e7 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5089327-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5089327-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (160,0) size 5x18
               text run at (160,0) width 5: ")"
         RenderBlock (anonymous) at (0,34) 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/mac/editing/pasteboard/5134759-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5134759-expected.txt
index 4450af0..9211b30 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5134759-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5134759-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (39,0) size 45x18
                 text run at (39,0) width 45: "World!"
         RenderBlock (anonymous) at (0,18) 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/mac/editing/pasteboard/5156401-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5156401-1-expected.txt
index 88f5789..387d3d3 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5156401-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5156401-1-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
                 RenderInline {A} at (0,0) size 136x18 [color=#0000EE]
                   RenderText {#text} at (2,2) size 136x18
                     text run at (2,2) width 136: "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/mac/editing/pasteboard/5247341-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5247341-expected.txt
index 4eb93c0..bde73d8 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5247341-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5247341-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 84: "Hello World!"
         RenderBlock {DIV} at (0,36) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/pasteboard/5368833-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5368833-expected.txt
index 7f21168..371a9cf 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5368833-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5368833-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (38,14) size 0x0
         RenderBlock (anonymous) at (0,54) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/pasteboard/5387578-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5387578-expected.txt
index 4517879..65e2daa 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5387578-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5387578-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (2,2) size 79x18
                   text run at (2,2) width 79: "Hello World"
                   text run at (81,2) width 0: " \x{9}\x{9} \x{9}\x{9}"
-caret: position 11 of child 0 {#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 11 of child 0 {#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/mac/editing/pasteboard/5478250-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5478250-expected.txt
index cd25b79..09a7b1e 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5478250-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5478250-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 393x18
             RenderText {#text} at (0,0) size 393x18
               text run at (0,0) width 393: "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/mac/editing/pasteboard/5483567-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5483567-expected.txt
index 0b8a607..e0ab194 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5483567-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5483567-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
           text run at (8,0) width 21: "foo"
         RenderText {#text} at (29,0) size 8x18
           text run at (29,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/mac/editing/pasteboard/5583362-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5583362-expected.txt
index bb06c24..df9d7c0 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5583362-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5583362-expected.txt
@@ -9,4 +9,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,18) size 784x18
         RenderText {#text} at (0,0) size 293x18
           text run at (0,0) width 293: "There should be two separate paragraphs here."
-caret: position 45 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 45 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/5601583-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/5601583-1-expected.txt
index 5568f07..b2b8d25 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/5601583-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/5601583-1-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (35,14) size 0x0
           RenderText {#text} at (0,18) size 40x18
             text run at (0,18) width 40: "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/mac/editing/pasteboard/8145-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/8145-1-expected.txt
index d169890..88ffc24 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/8145-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/8145-1-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,34) size 784x20 [border: (1px solid #000000)]
         RenderText {#text} at (1,1) size 71x18
           text run at (1,1) width 71: "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/mac/editing/pasteboard/8145-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/8145-2-expected.txt
index e1939d2..abb74a1 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/8145-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/8145-2-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (40,14) size 0x0
           RenderText {#text} at (0,18) size 22x18
             text run at (0,18) width 22: "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/mac/editing/pasteboard/8145-3-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/8145-3-expected.txt
index 5792b46..d73a977 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/8145-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/8145-3-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (1,37) size 782x18
           RenderText {#text} at (0,0) size 16x18
             text run at (0,0) width 16: "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/mac/editing/pasteboard/bad-placeholder-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/bad-placeholder-expected.txt
index c83e562..960dee1 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/bad-placeholder-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/bad-placeholder-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
         RenderBR {BR} at (99,14) size 0x0
         RenderText {#text} at (0,18) size 118x18
           text run at (0,18) width 118: "Second paragraph."
-caret: position 16 of child 0 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 16 of child 0 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/block-wrappers-necessary-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/block-wrappers-necessary-expected.txt
index 7143e04..baa6032 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/block-wrappers-necessary-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/pasteboard/copy-paste-bidi-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt
index 5acc4c3..5e340bf 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
               text run at (712,1) width 40 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
               text run at (752,1) width 32: "1234"
           RenderBlock (anonymous) at (0,38) 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/mac/editing/pasteboard/copy-standalone-image-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/copy-standalone-image-expected.txt
index eb86c5b..71e82f2 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/copy-standalone-image-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/copy-standalone-image-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,240) size 784x131 [border: (2px solid #FF0000)]
         RenderBlock {P} at (14,14) size 756x103
           RenderImage {IMG} at (0,0) size 76x103
-caret: position 1 of child 0 {IMG} of child 0 {P} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {IMG} of child 0 {P} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/cut-text-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/cut-text-001-expected.txt
index c1c9716..d8970dc 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/cut-text-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/cut-text-001-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 78x28
             text run at (14,14) width 78: "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/mac/editing/pasteboard/displaced-generic-placeholder-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/displaced-generic-placeholder-expected.txt
index bd85c34..0354f80 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/displaced-generic-placeholder-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/displaced-generic-placeholder-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 118x18
             text run at (0,0) width 118: "Second paragraph."
         RenderBlock (anonymous) at (0,36) 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/mac/editing/pasteboard/displaced-placeholder-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/displaced-placeholder-expected.txt
index db25586..d9ecd66 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/displaced-placeholder-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/displaced-placeholder-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 118x18
             text run at (0,0) width 118: "Second paragraph."
         RenderBlock (anonymous) at (0,36) 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/mac/editing/pasteboard/display-block-on-spans-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/display-block-on-spans-expected.txt
index 8b81f68..7149c20 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/display-block-on-spans-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/display-block-on-spans-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
                   text run at (0,0) width 30: "This"
             RenderText {#text} at (30,0) size 152x18
               text run at (30,0) width 152: " 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/mac/editing/pasteboard/drag-drop-dead-frame-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/drag-drop-dead-frame-expected.txt
index f0082bd..5ebecc6 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/drag-drop-dead-frame-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt
index 247ac22..6bbd672 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
           text run at (0,0) width 37: "world"
         RenderText {#text} at (37,0) size 31x18
           text run at (37,0) width 31: "hello"
-selection start: position 0 of child 1 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 1 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {#text} of child 3 {DIV} of body
+selection end:   position 5 of child 1 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt
index 67d04c5..56b5a75 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
                   RenderImage {IMG} at (21,1) size 20x20
         RenderText {#text} at (0,0) size 0x0
       RenderBlock {UL} at (0,226) size 784x0
-selection start: position 0 of child 3 {IMG} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 3 {IMG} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 3 {IMG} of body
+selection end:   position 1 of child 3 {IMG} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt
index 6575776..ac726dc 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
           RenderListMarker at (-17,0) size 7x18: bullet
           RenderText {#text} at (0,0) size 409x18
             text run at (0,0) width 409: "Abe should appear twice, once inside the div and once outside it."
-selection start: position 0 of child 0 {IMG} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {IMG} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {IMG} of child 1 {DIV} of body
+selection end:   position 1 of child 0 {IMG} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt
index d9201d6..a9be07d 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -40,5 +40,5 @@ layer at (13,109) size 119x13 scrollWidth 121
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 119x13
       text run at (1,0) width 119: "http://www.ibm.com/"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 19 of child 0 {#text} of child 0 {DIV} of child 7 {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 7 {INPUT} of body
+selection end:   position 19 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/emacs-cntl-y-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/emacs-cntl-y-001-expected.txt
index 54d58f3..e02aa85 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/emacs-cntl-y-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/emacs-cntl-y-001-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 178x28
             text run at (2,2) width 178: "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/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt
index 4156676..ebce362 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt
@@ -36,4 +36,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 222x28
             text run at (2,2) width 222: "one two three four five"
-caret: position 18 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 18 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt
index 677f2e9..6592178 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt
@@ -75,4 +75,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,64) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 158x28
             text run at (2,2) width 158: "seven eight nine"
-caret: position 16 of child 0 {#text} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 16 of child 0 {#text} of child 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.txt
index 1bfff76..b95aa50 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/pasteboard/interchange-newline-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-1-expected.txt
index 4fca7b6..a028638 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-1-expected.txt
+++ b/LayoutTests/platform/mac/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 8x18
             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/mac/editing/pasteboard/interchange-newline-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-2-expected.txt
index 644a33d..74a9883 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-2-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,36) size 784x18
           RenderText {#text} at (0,0) size 12x18
             text run at (0,0) width 12: "ar"
-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/mac/editing/pasteboard/interchange-newline-3-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-3-expected.txt
index aa56231..521afdd 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-3-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,124) size 784x18
         RenderText {#text} at (0,0) size 178x18
           text run at (0,0) width 178: "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/mac/editing/pasteboard/interchange-newline-4-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-4-expected.txt
index 34fe275..2d7523e 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-4-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/interchange-newline-4-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,88) size 784x18
         RenderText {#text} at (0,0) size 78x18
           text run at (0,0) width 78: "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/mac/editing/pasteboard/merge-after-delete-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-1-expected.txt
index 428bc99..f463f65 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-1-expected.txt
@@ -36,4 +36,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (3,25) size 774x20 [border: (1px solid #000000)]
           RenderText {#text} at (1,1) size 20x18
             text run at (1,1) width 20: "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/mac/editing/pasteboard/merge-after-delete-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-2-expected.txt
index b24ded1..2264f1f 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-2-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (3,25) size 774x20 [border: (1px solid #000000)]
           RenderText {#text} at (1,1) size 20x18
             text run at (1,1) width 20: "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/mac/editing/pasteboard/merge-after-delete-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-expected.txt
index efe730f..d77167c 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-after-delete-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (1,29) size 774x0
         RenderBlock {DIV} at (5,29) size 766x20 [border: (1px solid #0000FF)]
           RenderBR {BR} at (1,1) size 0x18
-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/mac/editing/pasteboard/merge-end-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-1-expected.txt
index 89e51f7..9330939 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-1-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
               text run at (0,18) width 22: "baz"
             RenderText {#text} at (22,18) size 16x18
               text run at (22,18) width 16: "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/mac/editing/pasteboard/merge-end-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-2-expected.txt
index 7233743..962cfa9 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-2-expected.txt
@@ -33,4 +33,4 @@ layer at (0,0) size 800x600
               text run at (22,18) width 16: "oo"
           RenderText {#text} at (38,18) size 20x18
             text run at (38,18) width 20: "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/mac/editing/pasteboard/merge-end-3-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-3-expected.txt
index 28075fb..00d5ce8 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-3-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 24: "two"
           RenderText {#text} at (24,0) size 31x18
             text run at (24,0) width 31: "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/mac/editing/pasteboard/merge-end-4-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-4-expected.txt
index 49619f6..295a57f 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-4-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-4-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 22: "baz"
           RenderText {#text} at (22,0) size 8x18
             text run at (22,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/mac/editing/pasteboard/merge-end-5-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-5-expected.txt
index f463b0b..3dde03c 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-5-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-5-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
             text run at (33,1) width 231: "text should have a red border around"
           RenderText {#text} at (264,1) size 16x18
             text run at (264,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/mac/editing/pasteboard/merge-end-blockquote-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-blockquote-expected.txt
index ebe6211..d5c497f 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-blockquote-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-blockquote-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 20: "bar"
             RenderText {#text} at (20,0) size 29x18
               text run at (20,0) width 29: "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/mac/editing/pasteboard/merge-end-borders-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-borders-expected.txt
index 43f3737..6dc5d22 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-borders-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-borders-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
             text run at (1,1) width 28: "This"
           RenderText {#text} at (29,1) size 271x18
             text run at (29,1) width 271: " 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/mac/editing/pasteboard/merge-end-list-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-list-expected.txt
index 2e0fdb2..d43b9f6 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-list-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-list-expected.txt
@@ -55,4 +55,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 20: "bar"
               RenderText {#text} at (20,0) size 12x18
                 text run at (20,0) width 12: " 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/mac/editing/pasteboard/merge-end-table-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-end-table-expected.txt
index 7258df6..368d1b4 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-end-table-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-end-table-expected.txt
@@ -62,4 +62,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (57,11) size 44x22 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 40x18
                   text run at (2,2) width 40: "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/mac/editing/pasteboard/merge-start-blockquote-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-start-blockquote-expected.txt
index 05e0e06..f55c773 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-start-blockquote-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-start-blockquote-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (40,0) size 704x20 [border: (1px solid #0000FF)]
           RenderText {#text} at (1,1) size 20x18
             text run at (1,1) width 20: "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/mac/editing/pasteboard/merge-start-list-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/merge-start-list-expected.txt
index ebb82bd..330da67 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/merge-start-list-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/merge-start-list-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             RenderListMarker at (-17,0) size 7x18: bullet
             RenderText {#text} at (0,0) size 20x18
               text run at (0,0) width 20: "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/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt
index cf6cc76..7f6f7ec 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt
@@ -36,4 +36,4 @@ layer at (313,64) size 161x32 clip at (314,65) size 159x30
     RenderBlock {DIV} at (3,3) size 155x13
       RenderText {#text} at (0,0) size 3x13
         text run at (0,0) width 3: " "
-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/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt
index d639305..5263b66 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
       RenderBlock (anonymous) at (0,77) size 784x0
 layer at (334,67) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-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/mac/editing/pasteboard/paste-4035648-fix-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-4035648-fix-expected.txt
index 58645bc..363ec29 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-4035648-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-4035648-fix-expected.txt
@@ -54,4 +54,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (47,52) size 0x0
           RenderText {#text} at (2,58) size 49x28
             text run at (2,58) 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/mac/editing/pasteboard/paste-4038267-fix-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-4038267-fix-expected.txt
index 790449b..09e236a 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-4038267-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-4038267-fix-expected.txt
@@ -49,4 +49,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,30) size 780x28
             RenderText {#text} at (0,0) size 31x28
               text run at (0,0) width 31: "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/mac/editing/pasteboard/paste-4039777-fix-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-4039777-fix-expected.txt
index da77d38..a5a45bf 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-4039777-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-4039777-fix-expected.txt
@@ -77,4 +77,4 @@ layer at (0,0) size 800x600
               RenderBlock (anonymous) at (0,112) size 740x0
           RenderBlock {DIV} at (2,162) 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/mac/editing/pasteboard/paste-RTFD-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-RTFD-expected.txt
index 5aa52da..4233f61 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-RTFD-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-RTFD-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x14
         RenderBlock {DIV} at (14,218) size 756x0
       RenderBlock {DIV} at (0,284) size 784x0
-caret: position 0 of child 0 {BR} of child 12 {P} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {BR} of child 12 {P} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/paste-TIFF-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-TIFF-expected.txt
index a752a81..fdd5fd5 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-TIFF-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-TIFF-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 0x0
         RenderBlock {DIV} at (14,111) size 756x0
       RenderBlock {DIV} at (0,125) size 784x0
-caret: position 1 of child 0 {IMG} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {IMG} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-1-expected.txt
index bb8788a..73334bd 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-1-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
         RenderBlock {BLOCKQUOTE} at (0,0) size 784x18 [color=#0000FF] [border: (2px solid #0000FF)]
           RenderText {#text} at (22,0) size 179x18
             text run at (22,0) width 179: "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/mac/editing/pasteboard/paste-blockquote-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-2-expected.txt
index d0be1b8..b00632c 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-2-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 203: "This should not be blockquoted."
         RenderText {#text} at (203,0) size 207x18
           text run at (203,0) width 207: " 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/mac/editing/pasteboard/paste-blockquote-3-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-3-expected.txt
index 544b719..954b1b7 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-3-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 203: "This should not be blockquoted."
           RenderText {#text} at (203,0) size 207x18
             text run at (203,0) width 207: " 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/mac/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
index 93dd42a..8473a5c 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (22,0) size 41x18
             text run at (22,0) width 41: "Line 2"
         RenderBlock (anonymous) at (0,36) 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/mac/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt
index 8c66ec7..9e5ecb6 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt
+++ b/LayoutTests/platform/mac/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 37: "Three"
         RenderBlock (anonymous) at (0,36) 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/mac/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt
index 37da955..7fbfccc 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt
+++ b/LayoutTests/platform/mac/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 0x18
         RenderBlock (anonymous) at (0,124) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
index 6ad7d76..51066a9 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,72) size 784x18
           RenderText {#text} at (0,0) size 30x18
             text run at (0,0) width 30: "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/mac/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
index 1671b23..69f5f61 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 37: "Three"
         RenderBlock (anonymous) at (0,36) 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/mac/editing/pasteboard/paste-line-endings-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-001-expected.txt
index af75e5f..48db0eb 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-001-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (80,24) size 0x0
           RenderText {#text} at (2,30) size 79x28
             text run at (2,30) width 79: "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/mac/editing/pasteboard/paste-line-endings-002-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-002-expected.txt
index 28801f2..4be8b95 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-002-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,30) size 780x28
             RenderText {#text} at (0,0) size 79x28
               text run at (0,0) width 79: "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/mac/editing/pasteboard/paste-line-endings-003-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-003-expected.txt
index 69caf3e..f128e63 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-003-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,30) size 780x28
             RenderText {#text} at (0,0) size 79x28
               text run at (0,0) width 79: "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/mac/editing/pasteboard/paste-line-endings-004-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-004-expected.txt
index beef997..c11502b 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-004-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (0,28) size 780x28
               RenderText {#text} at (0,0) size 79x28
                 text run at (0,0) width 79: "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/mac/editing/pasteboard/paste-line-endings-005-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-005-expected.txt
index 26c5c8d..54167da 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-005-expected.txt
@@ -48,4 +48,4 @@ layer at (0,0) size 800x600
             RenderBlock (anonymous) at (0,28) size 780x28
               RenderText {#text} at (0,0) size 79x28
                 text run at (0,0) width 79: "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/mac/editing/pasteboard/paste-line-endings-006-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-006-expected.txt
index b72c2cc..1916ca5 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-006-expected.txt
@@ -51,4 +51,4 @@ layer at (0,0) size 800x600
             text run at (2,30) width 7: "l"
           RenderText {#text} at (9,30) size 72x28
             text run at (9,30) width 72: "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/mac/editing/pasteboard/paste-line-endings-007-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-007-expected.txt
index 029f881..50612ec 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-007-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 7: "l"
             RenderText {#text} at (7,0) size 72x28
               text run at (7,0) width 72: "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/mac/editing/pasteboard/paste-line-endings-008-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-008-expected.txt
index f2cc074..f97a940 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-008-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 7: "l"
             RenderText {#text} at (7,0) size 72x28
               text run at (7,0) width 72: "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/mac/editing/pasteboard/paste-line-endings-009-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-009-expected.txt
index 4567147..a9314da 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-009-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 7: "l"
               RenderText {#text} at (7,0) size 72x28
                 text run at (7,0) width 72: "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/mac/editing/pasteboard/paste-line-endings-010-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-010-expected.txt
index 8cf127e..5cfe116 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-010-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-010-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 7: "l"
               RenderText {#text} at (7,0) size 72x28
                 text run at (7,0) width 72: "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/mac/editing/pasteboard/paste-list-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-list-001-expected.txt
index dcca155..8d4cfad 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-list-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-list-001-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 211x28
                   text run at (0,0) width 211: "I should be number 3."
             RenderBlock (anonymous) at (0,112) 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/mac/editing/pasteboard/paste-match-style-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-match-style-001-expected.txt
index 7a88a1f..fb8d8cc 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-match-style-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-match-style-001-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderInline {B} at (0,0) size 25x28
             RenderText {#text} at (2,2) size 25x28
               text run at (2,2) width 25: "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/mac/editing/pasteboard/paste-match-style-002-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-match-style-002-expected.txt
index 572356f..a1d3024 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-match-style-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-match-style-002-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
           RenderInline {B} at (0,0) size 50x28
             RenderText {#text} at (2,2) size 50x28
               text run at (2,2) width 50: "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/mac/editing/pasteboard/paste-pre-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-pre-001-expected.txt
index 725c67f..5057bcb 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-pre-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-pre-001-expected.txt
@@ -57,4 +57,4 @@ layer at (0,0) size 800x600
                   text run at (0,28) width 42: "bar"
             RenderBlock (anonymous) at (0,80) 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/mac/editing/pasteboard/paste-pre-002-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-pre-002-expected.txt
index 930e0d3..2d0735f 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-pre-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-pre-002-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
                   text run at (0,15) width 24: "bar"
             RenderBlock (anonymous) at (0,43) 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/mac/editing/pasteboard/paste-table-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-table-001-expected.txt
index d7f6ec7..718781c 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-table-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-table-001-expected.txt
@@ -84,4 +84,4 @@ layer at (0,0) size 800x600
                     text run at (2,2) width 197: "I should be in the right column."
           RenderBlock (anonymous) at (0,108) 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/mac/editing/pasteboard/paste-table-003-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-table-003-expected.txt
index dd2edae..e5cdc75 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-table-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-table-003-expected.txt
@@ -47,4 +47,4 @@ layer at (0,0) size 800x600
                 RenderBR {BR} at (25,15) size 0x0
                 RenderBR {BR} at (1,19) size 0x18
         RenderBlock (anonymous) at (0,42) 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/mac/editing/pasteboard/paste-table-cells-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-table-cells-expected.txt
index a236f1a..a68b650 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-table-cells-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-table-cells-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (1,1) size 37x18
                   text run at (1,1) width 37: "world"
         RenderBlock (anonymous) at (0,24) 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/mac/editing/pasteboard/paste-text-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-001-expected.txt
index 68982e4..6fd54d0 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-001-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (114,14) size 40x28
             text run at (114,14) width 40: " baz"
         RenderText {#text} at (0,0) size 0x0
-caret: position 3 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/paste-text-002-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-002-expected.txt
index 0a1e245..13fd68f 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-002-expected.txt
@@ -85,4 +85,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,224) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 357x28
           text run at (14,14) width 357: "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/mac/editing/pasteboard/paste-text-003-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-003-expected.txt
index 70cc0ce..8f72439 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-003-expected.txt
@@ -137,4 +137,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (14,42) size 700x56 [border: (2px solid #FF0000)]
               RenderText {#text} at (14,14) size 357x28
                 text run at (14,14) width 357: "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/mac/editing/pasteboard/paste-text-004-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-004-expected.txt
index 5f39f8e..586c731 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-004-expected.txt
@@ -63,4 +63,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,168) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 357x28
           text run at (14,14) width 357: "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/mac/editing/pasteboard/paste-text-005-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-005-expected.txt
index 0ddab93..e4740c1 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-005-expected.txt
@@ -69,4 +69,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,224) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 357x28
           text run at (14,14) width 357: "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/mac/editing/pasteboard/paste-text-006-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-006-expected.txt
index 74408f2..c27dcb4 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-006-expected.txt
@@ -68,4 +68,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,224) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 357x28
           text run at (14,14) width 357: "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/mac/editing/pasteboard/paste-text-007-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-007-expected.txt
index e708ebb..d26092d 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-007-expected.txt
@@ -71,4 +71,4 @@ layer at (0,0) size 800x600
             RenderBlock {DIV} at (14,42) size 700x56 [border: (2px solid #FF0000)]
               RenderText {#text} at (14,14) size 357x28
                 text run at (14,14) width 357: "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/mac/editing/pasteboard/paste-text-008-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-008-expected.txt
index ebca07b..fc60043 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-008-expected.txt
@@ -131,4 +131,4 @@ layer at (0,0) size 800x600
           text run at (14,14) width 197: "Upon such a full sea"
         RenderText {#text} at (211,14) size 185x28
           text run at (211,14) width 185: " are we now afloat,"
-caret: position 20 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 20 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/paste-text-009-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-009-expected.txt
index 264b7f5..44f0ac2 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-009-expected.txt
+++ b/LayoutTests/platform/mac/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 365x28
           text run at (31,14) width 365: "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/mac/editing/pasteboard/paste-text-010-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-010-expected.txt
index f0f3eca..73b770a 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-010-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/pasteboard/paste-text-011-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-011-expected.txt
index 62d825b..01c30d1 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-011-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/pasteboard/paste-text-012-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-012-expected.txt
index 4d104e9..276a627 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-012-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-012-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (14,90) size 728x28
             RenderBR {BR} at (0,0) size 0x28
         RenderBlock (anonymous) at (14,146) 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/mac/editing/pasteboard/paste-text-013-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-013-expected.txt
index b0bd9e1..074431a 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-013-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-013-expected.txt
@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 32: "foo"
         RenderBlock {DIV} at (14,90) size 756x28
           RenderBR {BR} at (0,0) size 0x28
-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/mac/editing/pasteboard/paste-text-014-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-014-expected.txt
index 4076547..c408e04 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-014-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-014-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,268) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 12x28
           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/mac/editing/pasteboard/paste-text-015-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-015-expected.txt
index b5ed915..3bc607a 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-015-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-015-expected.txt
@@ -50,4 +50,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 31x28
                   text run at (0,0) width 31: "bar"
               RenderBlock (anonymous) at (0,56) 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/mac/editing/pasteboard/paste-text-016-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-016-expected.txt
index 70334f5..d75332b 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-016-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-016-expected.txt
@@ -65,4 +65,4 @@ layer at (0,0) size 800x600
               text run at (0,0) width 6: " "
           RenderBlock {P} at (14,182) size 756x28
             RenderBR {BR} at (0,0) size 0x28
-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/mac/editing/pasteboard/paste-text-017-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-017-expected.txt
index af6d2a0..26bcc40 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-017-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-017-expected.txt
@@ -50,4 +50,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (2,114) size 780x28
             RenderText {#text} at (0,0) size 49x28
               text run at (0,0) width 49: "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/mac/editing/pasteboard/paste-text-018-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-018-expected.txt
index 892f4d7..6a553b5 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-018-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-018-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (80,24) size 0x0
           RenderText {#text} at (2,30) size 79x28
             text run at (2,30) width 79: "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/mac/editing/pasteboard/paste-text-019-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-019-expected.txt
index 4f0af5f..27bce0d 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-019-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-019-expected.txt
@@ -55,4 +55,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (80,2) size 75x28
             text run at (80,2) width 75: " 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/mac/editing/pasteboard/paste-text-at-tabspan-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
index 30240c5..ca64f80 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (158,14) size 11x28
             text run at (158,14) width 11: "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/mac/editing/pasteboard/paste-text-at-tabspan-002-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-002-expected.txt
index bc7aa61..6a7c162 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-002-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (158,14) size 11x28
             text run at (158,14) width 11: "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/mac/editing/pasteboard/paste-text-at-tabspan-003-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-003-expected.txt
index a1ea2a8..c4e5efd 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-text-at-tabspan-003-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (181,14) size 11x28
             text run at (181,14) width 11: "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/mac/editing/pasteboard/paste-unrendered-select-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-unrendered-select-expected.txt
index 7dccf57..521d987 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-unrendered-select-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/paste-unrendered-select-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
           text run at (35,0) width 4: " "
         RenderText {#text} at (39,0) size 40x18
           text run at (39,0) width 40: "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/mac/editing/pasteboard/paste-xml-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/paste-xml-expected.txt
index 0e48a99..4cef9fd 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/paste-xml-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/pasteboard/pasting-object-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/pasting-object-expected.txt
index bc33c14..8cc3586 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/pasting-object-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/pasting-object-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
         RenderEmbeddedObject {OBJECT} at (35,0) size 302x152 [border: (1px solid #AAAAAA)]
         RenderText {#text} at (337,138) size 49x18
           text run at (337,138) width 49: " 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/mac/editing/pasteboard/pasting-tabs-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.txt
index f4647e1..1c31506 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.txt
@@ -33,4 +33,4 @@ layer at (10,62) size 161x32 clip at (11,63) size 159x30
     RenderBlock {DIV} at (3,3) size 155x13
       RenderText {#text} at (0,0) size 84x13
         text run at (0,0) width 84: "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/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt
index d2bb1e3..734c344 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (1,1) size 540x18
             text run at (1,1) width 540: "This paragraph and the empty line should have be in their own divs with a red border."
         RenderBlock (anonymous) at (1,65) 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/mac/editing/pasteboard/quirks-mode-br-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/quirks-mode-br-1-expected.txt
index 7a7fdf2..ab4113b 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/quirks-mode-br-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/quirks-mode-br-1-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (370,14) size 0x0
         RenderBlock (anonymous) at (0,18) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-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/mac/editing/pasteboard/select-element-1-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/select-element-1-expected.txt
index 30d1d13..1817a8b 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/select-element-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/select-element-1-expected.txt
@@ -54,4 +54,4 @@ layer at (0,0) size 800x600
           RenderListMarker at (-17,0) size 7x18: bullet
           RenderText {#text} at (0,0) size 43x18
             text run at (0,0) width 43: "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/mac/editing/pasteboard/smart-drag-drop-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-drag-drop-expected.txt
index d6fcded..b516875 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-drag-drop-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-drag-drop-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
           text run at (0,0) width 37: "world"
         RenderText {#text} at (37,0) size 35x18
           text run at (37,0) width 35: " hello"
-selection start: position 0 of child 1 {#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 1 {#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/mac/editing/pasteboard/smart-paste-001-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-001-expected.txt
index cbd5af3..30b1449 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-001-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
             text run at (36,2) width 40: " test"
         RenderBlock (anonymous) at (0,32) 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/mac/editing/pasteboard/smart-paste-002-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-002-expected.txt
index 95ea3d3..8e363d7 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-002-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
             text run at (2,2) width 40: "test "
           RenderText {#text} at (42,2) size 34x28
             text run at (42,2) width 34: "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/mac/editing/pasteboard/smart-paste-003-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-003-expected.txt
index 9440347..f77d483 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-003-expected.txt
@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (76,2) size 40x28
             text run at (76,2) width 40: " test"
         RenderBlock (anonymous) at (0,32) 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/mac/editing/pasteboard/smart-paste-004-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-004-expected.txt
index 24a19c9..74e9261 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-004-expected.txt
@@ -43,4 +43,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (82,2) size 34x28
             text run at (82,2) width 34: "test"
         RenderBlock (anonymous) at (0,32) 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/mac/editing/pasteboard/smart-paste-005-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-005-expected.txt
index 4d2b9da..443b589 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-005-expected.txt
@@ -44,4 +44,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (66,2) size 16x28
             text run at (66,2) width 16: "st"
         RenderBlock (anonymous) at (0,32) 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/mac/editing/pasteboard/smart-paste-006-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-006-expected.txt
index 99df174..457c5cb 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-006-expected.txt
@@ -51,4 +51,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (44,2) size 8x28
             text run at (44,2) width 8: "-"
         RenderBlock (anonymous) at (0,32) 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/mac/editing/pasteboard/smart-paste-007-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt
index a6a040f..a7606b4 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt
@@ -53,4 +53,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (48,2) size 6x28
             text run at (48,2) width 6: "."
         RenderBlock (anonymous) at (0,32) 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/mac/editing/pasteboard/smart-paste-008-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt
index d4cac04..6ad5aed 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt
@@ -36,4 +36,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (30,0) size 24x18
             text run at (30,0) width 24: " bar"
         RenderBlock (anonymous) at (0,18) size 784x0
-caret: position 4 of child 1 {#text} of child 0 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 4 of child 1 {#text} of child 0 {DIV} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/pasteboard/styled-element-markup-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/styled-element-markup-expected.txt
index f706456..286c3e4 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/styled-element-markup-expected.txt
+++ b/LayoutTests/platform/mac/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,207) 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/mac/editing/pasteboard/testcase-9507-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/testcase-9507-expected.txt
index 64bea43..9161740 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/testcase-9507-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/testcase-9507-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 31: "bar"
           RenderBlock (anonymous) at (2,58) size 780x0
           RenderBlock {DIV} at (2,58) 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/mac/editing/pasteboard/undoable-fragment-removes-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/undoable-fragment-removes-expected.txt
index 3d3ecd8..a38bfa3 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/undoable-fragment-removes-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/undoable-fragment-removes-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 20: "bar"
       RenderBlock {DIV} at (0,100) size 784x20 [border: (1px solid #000000)]
         RenderBR {BR} at (1,1) size 0x18
-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/mac/editing/pasteboard/unrendered-br-expected.txt b/LayoutTests/platform/mac/editing/pasteboard/unrendered-br-expected.txt
index 1a1d2a0..a1759c8 100644
--- a/LayoutTests/platform/mac/editing/pasteboard/unrendered-br-expected.txt
+++ b/LayoutTests/platform/mac/editing/pasteboard/unrendered-br-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 118x18
             text run at (0,0) width 118: "Second paragraph."
         RenderBlock (anonymous) at (0,36) 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/mac/editing/selection/13804-expected.txt b/LayoutTests/platform/mac/editing/selection/13804-expected.txt
index fbe2b1c..a6e9565 100644
--- a/LayoutTests/platform/mac/editing/selection/13804-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/13804-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x18
         RenderText {#text} at (0,0) size 298x18
           text run at (0,0) width 298: "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/mac/editing/selection/14971-expected.txt b/LayoutTests/platform/mac/editing/selection/14971-expected.txt
index d0e79fa..1b8e7c7 100644
--- a/LayoutTests/platform/mac/editing/selection/14971-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/14971-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 40x18
           RenderText {#text} at (39,0) size 40x18
             text run at (39,0) width 40: "World"
-selection start: position 0 of child 0 {#text} of child 0 {SPAN} 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 {SPAN} 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 {SPAN} of child 2 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 2 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/25228-expected.txt b/LayoutTests/platform/mac/editing/selection/25228-expected.txt
index 41b4c88..0bc6aaf 100644
--- a/LayoutTests/platform/mac/editing/selection/25228-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/25228-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 2000x585
           text run at (293,235) width 4: " "
           text run at (1,253) width 142: "longer test for the bug."
       RenderBlock {DIV} at (0,272) size 2000x0
-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/mac/editing/selection/3690703-2-expected.txt b/LayoutTests/platform/mac/editing/selection/3690703-2-expected.txt
index 596c6b7..fd6af5b 100644
--- a/LayoutTests/platform/mac/editing/selection/3690703-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/3690703-2-expected.txt
@@ -148,5 +148,5 @@ layer at (0,0) size 800x600
               text run at (362,0) width 60: "\x{A9}2005 Google"
 layer at (253,88) size 294x13
   RenderBlock {DIV} at (3,3) size 294x13
-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/mac/editing/selection/3690703-expected.txt b/LayoutTests/platform/mac/editing/selection/3690703-expected.txt
index 5776aea..5e2d9ea 100644
--- a/LayoutTests/platform/mac/editing/selection/3690703-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/3690703-expected.txt
@@ -150,5 +150,5 @@ layer at (0,0) size 800x600
               text run at (362,0) width 60: "\x{A9}2005 Google"
 layer at (253,88) size 294x13
   RenderBlock {DIV} at (3,3) size 294x13
-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/mac/editing/selection/3690719-expected.txt b/LayoutTests/platform/mac/editing/selection/3690719-expected.txt
index a88d5e9..8534dec 100644
--- a/LayoutTests/platform/mac/editing/selection/3690719-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/3690719-expected.txt
@@ -142,5 +142,5 @@ layer at (0,0) size 800x600
               text run at (362,0) width 60: "\x{A9}2005 Google"
 layer at (253,88) size 294x13
   RenderBlock {DIV} at (3,3) size 294x13
-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/mac/editing/selection/4397952-expected.txt b/LayoutTests/platform/mac/editing/selection/4397952-expected.txt
index 8d52f5b..0a61d2e 100644
--- a/LayoutTests/platform/mac/editing/selection/4397952-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4397952-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             RenderText at (0,0) size 17x13
               text run at (0,0) width 17: "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/mac/editing/selection/4402375-expected.txt b/LayoutTests/platform/mac/editing/selection/4402375-expected.txt
index 78994b8..46f7cff 100644
--- a/LayoutTests/platform/mac/editing/selection/4402375-expected.txt
+++ b/LayoutTests/platform/mac/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 178x18
           text run at (0,0) width 178: "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/mac/editing/selection/4818145-expected.txt b/LayoutTests/platform/mac/editing/selection/4818145-expected.txt
index d62e79f..1f10443 100644
--- a/LayoutTests/platform/mac/editing/selection/4818145-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4818145-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 25x22 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 21x18
                   text run at (2,2) width 21: "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/mac/editing/selection/4866671-expected.txt b/LayoutTests/platform/mac/editing/selection/4866671-expected.txt
index cb8e614..97a6277 100644
--- a/LayoutTests/platform/mac/editing/selection/4866671-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4866671-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
             text run at (8,0) width 24: "yyy"
         RenderText {#text} at (32,0) size 8x18
           text run at (32,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/mac/editing/selection/4889598-expected.txt b/LayoutTests/platform/mac/editing/selection/4889598-expected.txt
index 5ecc41f..2c93473 100644
--- a/LayoutTests/platform/mac/editing/selection/4889598-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4889598-expected.txt
@@ -62,4 +62,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,46) size 784x18
           RenderText {#text} at (0,0) size 259x18
             text run at (0,0) width 259: "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/mac/editing/selection/4895428-1-expected.txt b/LayoutTests/platform/mac/editing/selection/4895428-1-expected.txt
index 92065c4..14c0ba5 100644
--- a/LayoutTests/platform/mac/editing/selection/4895428-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4895428-1-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (2,2) size 21x18
                   text run at (2,2) width 21: "foo"
         RenderBlock (anonymous) at (1,29) size 782x0
-selection start: position 0 of child 0 {TABLE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {TABLE} of child 4 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/4895428-2-expected.txt b/LayoutTests/platform/mac/editing/selection/4895428-2-expected.txt
index 5dac9cd..8196840 100644
--- a/LayoutTests/platform/mac/editing/selection/4895428-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4895428-2-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderListMarker at (-17,0) size 7x18: bullet
           RenderText {#text} at (0,0) size 50x18
             text run at (0,0) width 50: "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/mac/editing/selection/4895428-3-expected.txt b/LayoutTests/platform/mac/editing/selection/4895428-3-expected.txt
index 23c8cc5..90b5038 100644
--- a/LayoutTests/platform/mac/editing/selection/4895428-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4895428-3-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 22: "baz"
 layer at (13,101) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-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/mac/editing/selection/4895428-4-expected.txt b/LayoutTests/platform/mac/editing/selection/4895428-4-expected.txt
index 083a84b..2e93585 100644
--- a/LayoutTests/platform/mac/editing/selection/4895428-4-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4895428-4-expected.txt
@@ -19,5 +19,5 @@ layer at (0,0) size 800x600
                   text run at (2,2) width 49: "editable"
         RenderBlock (anonymous) at (1,29) size 782x0
       RenderBlock {UL} at (0,118) size 784x0
-selection start: position 0 of child 0 {TABLE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 8 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {TABLE} of child 4 {DIV} of body
+selection end:   position 8 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/4932260-1-expected.txt b/LayoutTests/platform/mac/editing/selection/4932260-1-expected.txt
index 87077a5..0670356 100644
--- a/LayoutTests/platform/mac/editing/selection/4932260-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4932260-1-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (128,0) size 76x103
         RenderText {#text} at (204,89) size 206x18
           text run at (204,89) width 206: "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/mac/editing/selection/4932260-2-expected.txt b/LayoutTests/platform/mac/editing/selection/4932260-2-expected.txt
index 21283c0..fa3342b 100644
--- a/LayoutTests/platform/mac/editing/selection/4932260-2-expected.txt
+++ b/LayoutTests/platform/mac/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 365x18
           text run at (101,89) width 365: "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/mac/editing/selection/4932260-3-expected.txt b/LayoutTests/platform/mac/editing/selection/4932260-3-expected.txt
index 478a4dc..c435307 100644
--- a/LayoutTests/platform/mac/editing/selection/4932260-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4932260-3-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (385,0) size 76x103
         RenderText {#text} at (461,89) size 58x18
           text run at (461,89) width 58: "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/mac/editing/selection/4947387-expected.txt b/LayoutTests/platform/mac/editing/selection/4947387-expected.txt
index a21521c..6416e8e 100644
--- a/LayoutTests/platform/mac/editing/selection/4947387-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4947387-expected.txt
@@ -31,5 +31,5 @@ layer at (0,0) size 800x600
           text run at (0,0) width 185: "The quick brown fox jumped"
           text run at (185,0) width 4: " "
           text run at (0,18) width 158: "over the lazy brown dog."
-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 51 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 51 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/4960116-expected.txt b/LayoutTests/platform/mac/editing/selection/4960116-expected.txt
index ae90278..4db3dab 100644
--- a/LayoutTests/platform/mac/editing/selection/4960116-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4960116-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
           text run at (363,18) width 407: "For example, set the caret inside of an editable div, and make the"
           text run at (0,36) width 492: "div invisible, then try to move the selection forward/backward by a paragraph."
       RenderBlock {DIV} at (0,70) size 784x18
-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/mac/editing/selection/4975120-expected.txt b/LayoutTests/platform/mac/editing/selection/4975120-expected.txt
index 70c406f..edde056 100644
--- a/LayoutTests/platform/mac/editing/selection/4975120-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4975120-expected.txt
@@ -22,5 +22,5 @@ layer at (13,65) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 18x13
       text run at (1,0) width 18: "foo"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 3 of child 0 {#text} of child 0 {DIV} of child 3 {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 3 {INPUT} of body
+selection end:   position 3 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of body
diff --git a/LayoutTests/platform/mac/editing/selection/4983858-expected.txt b/LayoutTests/platform/mac/editing/selection/4983858-expected.txt
index 53160a5..0fd1327 100644
--- a/LayoutTests/platform/mac/editing/selection/4983858-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/4983858-expected.txt
@@ -14,5 +14,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,36) size 784x18
         RenderText {#text} at (0,0) size 21x18
           text run at (0,0) width 21: "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/mac/editing/selection/5007143-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5007143-2-expected.txt
index aa4cae0..99703d1 100644
--- a/LayoutTests/platform/mac/editing/selection/5007143-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5007143-2-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,54) size 24x18
           text run at (0,54) width 24: "xxx"
         RenderBR {BR} at (24,68) 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/mac/editing/selection/5007143-expected.txt b/LayoutTests/platform/mac/editing/selection/5007143-expected.txt
index e16cf1c..62f25ff 100644
--- a/LayoutTests/platform/mac/editing/selection/5007143-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5007143-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,54) size 24x18
           text run at (0,54) width 24: "xxx"
         RenderBR {BR} at (24,68) 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/mac/editing/selection/5057506-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5057506-2-expected.txt
index 10f8437..1fb1304 100644
--- a/LayoutTests/platform/mac/editing/selection/5057506-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5057506-2-expected.txt
@@ -26,5 +26,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,28) size 784x18
           RenderText {#text} at (0,0) size 20x18
             text run at (0,0) width 20: "bar"
-selection start: position 0 of child 0 {#text} 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
-selection end:   position 0 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 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
+selection end:   position 0 of child 3 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/5057506-expected.txt b/LayoutTests/platform/mac/editing/selection/5057506-expected.txt
index 053756a..4e69e73 100644
--- a/LayoutTests/platform/mac/editing/selection/5057506-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5057506-expected.txt
@@ -26,5 +26,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,28) size 784x18
           RenderText {#text} at (0,0) size 20x18
             text run at (0,0) width 20: "bar"
-selection start: position 3 of child 0 {#text} 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
-selection end:   position 0 of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 3 of child 0 {#text} 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
+selection end:   position 0 of child 3 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/5076323-1-expected.txt b/LayoutTests/platform/mac/editing/selection/5076323-1-expected.txt
index b78c020..555eb85 100644
--- a/LayoutTests/platform/mac/editing/selection/5076323-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5076323-1-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,112) size 784x18
         RenderText {#text} at (0,0) size 563x18
           text run at (0,0) width 563: "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/mac/editing/selection/5076323-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5076323-2-expected.txt
index 599d36f..8b6d194 100644
--- a/LayoutTests/platform/mac/editing/selection/5076323-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5076323-2-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 23x20 [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 21x18
                   text run at (1,1) width 21: "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/mac/editing/selection/5076323-3-expected.txt b/LayoutTests/platform/mac/editing/selection/5076323-3-expected.txt
index e4ffe5b..5c40e75 100644
--- a/LayoutTests/platform/mac/editing/selection/5076323-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5076323-3-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,2) size 23x20 [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 21x18
                   text run at (1,1) width 21: "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/mac/editing/selection/5081257-1-expected.txt b/LayoutTests/platform/mac/editing/selection/5081257-1-expected.txt
index 43c44a9..35a1131 100644
--- a/LayoutTests/platform/mac/editing/selection/5081257-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5081257-1-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (251,18) width 532: "The expected behavior is to create a selection at [body, 0]. There should be a caret at"
           text run at (783,18) width 1: " "
           text run at (0,36) width 163: "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/mac/editing/selection/5081257-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5081257-2-expected.txt
index 48263d9..708c934 100644
--- a/LayoutTests/platform/mac/editing/selection/5081257-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5081257-2-expected.txt
@@ -9,4 +9,4 @@ layer at (0,0) size 800x600
           text run at (512,0) width 251: "You should see a caret at the start of the"
           text run at (763,0) width 4: " "
           text run at (0,18) width 36: "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/mac/editing/selection/5099303-expected.txt b/LayoutTests/platform/mac/editing/selection/5099303-expected.txt
index 910b6d0..0552c2c 100644
--- a/LayoutTests/platform/mac/editing/selection/5099303-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5099303-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
             text run at (8,0) width 16: "xx"
         RenderText {#text} at (24,0) size 8x18
           text run at (24,0) width 8: "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/mac/editing/selection/5109817-expected.txt b/LayoutTests/platform/mac/editing/selection/5109817-expected.txt
index c403ad3..888bf20 100644
--- a/LayoutTests/platform/mac/editing/selection/5109817-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5109817-expected.txt
@@ -14,5 +14,5 @@ layer at (0,0) size 800x600
             text run at (29,0) width 44: "second"
         RenderText {#text} at (73,0) size 260x18
           text run at (73,0) width 260: " word in this sentence should be selected."
-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 6 of child 0 {#text} of child 1 {SPAN} 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 6 of child 0 {#text} of child 1 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/5131716-1-expected.txt b/LayoutTests/platform/mac/editing/selection/5131716-1-expected.txt
index 856d3e6..ba2397d 100644
--- a/LayoutTests/platform/mac/editing/selection/5131716-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5131716-1-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,72) size 732x18
           RenderText {#text} at (0,0) size 102x18
             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/mac/editing/selection/5131716-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5131716-2-expected.txt
index 98aabf0..e15dbb1 100644
--- a/LayoutTests/platform/mac/editing/selection/5131716-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5131716-2-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,72) size 732x18
           RenderText {#text} at (0,0) size 102x18
             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/mac/editing/selection/5131716-3-expected.txt b/LayoutTests/platform/mac/editing/selection/5131716-3-expected.txt
index bdb4c26..e6aa48d 100644
--- a/LayoutTests/platform/mac/editing/selection/5131716-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5131716-3-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,72) size 732x18
           RenderText {#text} at (0,0) size 102x18
             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/mac/editing/selection/5131716-4-expected.txt b/LayoutTests/platform/mac/editing/selection/5131716-4-expected.txt
index 7893407..95d5af0 100644
--- a/LayoutTests/platform/mac/editing/selection/5131716-4-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5131716-4-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (26,72) size 732x18
           RenderText {#text} at (0,0) size 102x18
             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/mac/editing/selection/5195166-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5195166-2-expected.txt
index 614bf47..d78e909 100644
--- a/LayoutTests/platform/mac/editing/selection/5195166-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5195166-2-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 355x18
           text run at (0,0) width 355: "There should be five characters selected in this sentence."
       RenderBlock {UL} at (0,68) 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/mac/editing/selection/5232159-expected.txt b/LayoutTests/platform/mac/editing/selection/5232159-expected.txt
index 6cd3213..264693d 100644
--- a/LayoutTests/platform/mac/editing/selection/5232159-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5232159-expected.txt
@@ -23,5 +23,5 @@ layer at (0,60) size 800x90
         text run at (0,36) width 740: "tincidunt, ipsum metus tristique risus, et convallis turpis elit eget massa. Nunc consectetuer dolor vel nunc. Cum sociis"
         text run at (0,54) width 753: "natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque dapibus ante et nulla. Cras nec velit."
         text run at (0,72) width 645: "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer ut tortor."
-selection start: position 3 of child 0 {#text} of child 1 {SPAN} 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 236 of child 2 {#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 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 236 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/5234383-1-expected.txt b/LayoutTests/platform/mac/editing/selection/5234383-1-expected.txt
index 064017e..a2ace0e 100644
--- a/LayoutTests/platform/mac/editing/selection/5234383-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5234383-1-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 719: "netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit."
           text run at (719,18) width 4: " "
           text run at (0,36) width 655: "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/mac/editing/selection/5234383-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5234383-2-expected.txt
index 1e291e4..da8de48 100644
--- a/LayoutTests/platform/mac/editing/selection/5234383-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5234383-2-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 719: "netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit."
           text run at (719,18) width 4: " "
           text run at (0,36) width 655: "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/mac/editing/selection/5240265-expected.txt b/LayoutTests/platform/mac/editing/selection/5240265-expected.txt
index a0be057..9e94272 100644
--- a/LayoutTests/platform/mac/editing/selection/5240265-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5240265-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,92) size 784x18
         RenderText {#text} at (0,0) size 178x18
           text run at (0,0) width 178: "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/mac/editing/selection/5333725-expected.txt b/LayoutTests/platform/mac/editing/selection/5333725-expected.txt
index a331132..fa19467 100644
--- a/LayoutTests/platform/mac/editing/selection/5333725-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5333725-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 32x18
           RenderText {#text} at (48,0) size 32x18
             text run at (48,0) width 32: "6789"
-selection start: position 0 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {#text} of child 0 {DIV} of body
+selection end:   position 2 of child 1 {#text} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/5354455-1-expected.txt b/LayoutTests/platform/mac/editing/selection/5354455-1-expected.txt
index 9334e41..3f080af 100644
--- a/LayoutTests/platform/mac/editing/selection/5354455-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5354455-1-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
               text run at (0,0) width 254: "The paragraph break should be selected."
         RenderBlock (anonymous) at (0,18) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-selection start: position 39 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 end:   position 0 of child 3 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 39 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 2 {DIV} of body
+selection end:   position 0 of child 3 {BR} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/5354455-2-expected.txt b/LayoutTests/platform/mac/editing/selection/5354455-2-expected.txt
index eb9de6e..382cb53 100644
--- a/LayoutTests/platform/mac/editing/selection/5354455-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/5354455-2-expected.txt
@@ -22,4 +22,4 @@ layer at (8,8) size 612x142
       RenderText {#text} 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 {#text} of child 1 {H1} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {#text} of child 1 {H1} of body
diff --git a/LayoutTests/platform/mac/editing/selection/6476-expected.txt b/LayoutTests/platform/mac/editing/selection/6476-expected.txt
index e7951e5..df72bcf 100644
--- a/LayoutTests/platform/mac/editing/selection/6476-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/6476-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
           text run at (318,0) width 448: "To run it manually, click in the space after all the text on the first line in"
           text run at (0,18) width 166: "the above editable region. "
           text run at (166,18) width 384: "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/mac/editing/selection/7152-1-expected.txt b/LayoutTests/platform/mac/editing/selection/7152-1-expected.txt
index eb3b7fc..90c2614 100644
--- a/LayoutTests/platform/mac/editing/selection/7152-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/7152-1-expected.txt
@@ -32,5 +32,5 @@ layer at (0,0) size 800x600
             RenderTableCell {TD} at (2,26) size 155x22 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (2,2) size 151x18
                 text run at (2,2) width 151: "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/mac/editing/selection/7152-2-expected.txt b/LayoutTests/platform/mac/editing/selection/7152-2-expected.txt
index 7f98808..ec1f4a2 100644
--- a/LayoutTests/platform/mac/editing/selection/7152-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/7152-2-expected.txt
@@ -35,5 +35,5 @@ layer at (0,0) size 800x600
           text run at (104,36) width 669: "It didn't make the same assumption about start of a selection, but for good measure, we also test a selection"
           text run at (773,36) width 4: " "
           text run at (0,54) width 232: "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/mac/editing/selection/addRange-expected.txt b/LayoutTests/platform/mac/editing/selection/addRange-expected.txt
index 63efe51..c180322 100644
--- a/LayoutTests/platform/mac/editing/selection/addRange-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/addRange-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,52) size 784x18
         RenderText {#text} at (0,0) size 72x18
           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/mac/editing/selection/after-line-wrap-expected.txt b/LayoutTests/platform/mac/editing/selection/after-line-wrap-expected.txt
index f541050..e317c11 100644
--- a/LayoutTests/platform/mac/editing/selection/after-line-wrap-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/after-line-wrap-expected.txt
@@ -36,5 +36,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (1,19) size 150x18
             text run at (1,19) width 150: "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/mac/editing/selection/caret-and-focus-ring-expected.txt b/LayoutTests/platform/mac/editing/selection/caret-and-focus-ring-expected.txt
index 74d552b..ed58fc4 100644
--- a/LayoutTests/platform/mac/editing/selection/caret-and-focus-ring-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/caret-and-focus-ring-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
             text run at (65,0) width 49: "editable"
         RenderText {#text} at (114,0) size 404x18
           text run at (114,0) width 404: " region. No caret or focus ring should appear in the pixel results."
-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/mac/editing/selection/caret-before-select-expected.txt b/LayoutTests/platform/mac/editing/selection/caret-before-select-expected.txt
index 1617669..b222726 100644
--- a/LayoutTests/platform/mac/editing/selection/caret-before-select-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/caret-before-select-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
               text run at (8,2) width 22: "One"
         RenderText {#text} at (94,38) size 26x18
           text run at (94,38) width 26: "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/mac/editing/selection/caret-rtl-2-expected.txt b/LayoutTests/platform/mac/editing/selection/caret-rtl-2-expected.txt
index c02735e..100a1bf 100644
--- a/LayoutTests/platform/mac/editing/selection/caret-rtl-2-expected.txt
+++ b/LayoutTests/platform/mac/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,2) size 58x18
       text run at (1,2) width 58 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/mac/editing/selection/caret-rtl-expected.txt b/LayoutTests/platform/mac/editing/selection/caret-rtl-expected.txt
index 492c558..db1c53a 100644
--- a/LayoutTests/platform/mac/editing/selection/caret-rtl-expected.txt
+++ b/LayoutTests/platform/mac/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 (93,2) size 58x18
       text run at (93,2) width 58 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/mac/editing/selection/click-start-of-line-expected.txt b/LayoutTests/platform/mac/editing/selection/click-start-of-line-expected.txt
index 0cbec34..72ae815 100644
--- a/LayoutTests/platform/mac/editing/selection/click-start-of-line-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/click-start-of-line-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 152: "Alice in"
           text run at (152,0) width 12: " "
           text run at (0,55) width 236: "Wonderland"
-caret: position 10 of child 0 {#text} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 10 of child 0 {#text} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/contains-boundaries-expected.txt b/LayoutTests/platform/mac/editing/selection/contains-boundaries-expected.txt
index 6b61d1c..418a050 100644
--- a/LayoutTests/platform/mac/editing/selection/contains-boundaries-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/contains-boundaries-expected.txt
@@ -25,5 +25,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,169) size 784x83 [bgcolor=#FFFFCC]
         RenderText {#text} at (0,0) size 68x83
           text run at (0,0) width 68: "W"
-selection start: position 0 of child 0 {#text} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 0 {#text} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 6 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/contenteditable-click-inside-expected.txt b/LayoutTests/platform/mac/editing/selection/contenteditable-click-inside-expected.txt
index 302d02a..d0f3c18 100644
--- a/LayoutTests/platform/mac/editing/selection/contenteditable-click-inside-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/contenteditable-click-inside-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 780x36
           text run at (0,0) width 780: "This test clicks inside an editable div element, and must result in the element receiving focus. If the test succeeds the element"
           text run at (0,18) width 158: "should have a focus ring."
-caret: position 0 of child 0 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/designmode-no-caret-expected.txt b/LayoutTests/platform/mac/editing/selection/designmode-no-caret-expected.txt
index 03b4a03..ba80e06 100644
--- a/LayoutTests/platform/mac/editing/selection/designmode-no-caret-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/designmode-no-caret-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 88x15
           text run at (0,0) width 88: "Test Passed"
           text run at (88,0) width 0: " "
-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/mac/editing/selection/display-table-text-expected.txt b/LayoutTests/platform/mac/editing/selection/display-table-text-expected.txt
index a7da04b..e7f8998 100644
--- a/LayoutTests/platform/mac/editing/selection/display-table-text-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/display-table-text-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
             RenderTableCell (anonymous) at (0,0) size 348x18 [r=0 c=0 rs=1 cs=1]
               RenderText {#text} at (0,0) size 348x18
                 text run at (0,0) width 348: "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/mac/editing/selection/doubleclick-crash-expected.txt b/LayoutTests/platform/mac/editing/selection/doubleclick-crash-expected.txt
index e8662eb..dc1ed38 100644
--- a/LayoutTests/platform/mac/editing/selection/doubleclick-crash-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/doubleclick-crash-expected.txt
@@ -19,5 +19,5 @@ layer at (0,0) size 800x600
           text run at (0,45) width 0: " "
         RenderText {#text} at (0,60) size 0x15
           text run at (0,60) width 0: " "
-selection start: position 5 of child 0 {#text} of child 1 {PRE} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 0 {#text} of child 1 {PRE} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 1 {PRE} of body
+selection end:   position 6 of child 0 {#text} of child 1 {PRE} of body
diff --git a/LayoutTests/platform/mac/editing/selection/drag-select-1-expected.txt b/LayoutTests/platform/mac/editing/selection/drag-select-1-expected.txt
index aa2db6f..a96eb28 100644
--- a/LayoutTests/platform/mac/editing/selection/drag-select-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/drag-select-1-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
       RenderBlock {UL} at (0,73) size 784x0
 layer at (81,47) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-selection start: position 5 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of body
+selection end:   position 1 of child 1 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.txt b/LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.txt
index b8433a5..398bdbe 100644
--- a/LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.txt
@@ -10,4 +10,4 @@ layer at (13,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 60x13
       text run at (1,0) width 60: "hello world"
-caret: position 11 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 11 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of body
diff --git a/LayoutTests/platform/mac/editing/selection/drag-to-contenteditable-iframe-expected.txt b/LayoutTests/platform/mac/editing/selection/drag-to-contenteditable-iframe-expected.txt
index f0cb6c5..b02628a 100644
--- a/LayoutTests/platform/mac/editing/selection/drag-to-contenteditable-iframe-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/drag-to-contenteditable-iframe-expected.txt
@@ -27,5 +27,5 @@ layer at (0,0) size 800x600
           RenderListMarker at (-17,0) size 7x18: bullet
           RenderText {#text} at (0,0) size 288x18
             text run at (0,0) width 288: "Abe should be outside the frame and inside it."
-selection start: position 0 of child 3 {IMG} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 3 {IMG} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 3 {IMG} of body
+selection end:   position 1 of child 3 {IMG} of body
diff --git a/LayoutTests/platform/mac/editing/selection/editable-html-element-expected.txt b/LayoutTests/platform/mac/editing/selection/editable-html-element-expected.txt
index cb852eb..1efd4aa 100644
--- a/LayoutTests/platform/mac/editing/selection/editable-html-element-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/editable-html-element-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
         text run at (520,18) width 253: "This test also does some editing to make"
         text run at (773,18) width 4: " "
         text run at (0,36) width 173: "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/mac/editing/selection/editable-links-expected.txt b/LayoutTests/platform/mac/editing/selection/editable-links-expected.txt
index 8224eae..9fa4c97 100644
--- a/LayoutTests/platform/mac/editing/selection/editable-links-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/editable-links-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           text run at (65,0) width 77: "editable link"
       RenderText {#text} at (142,0) size 4x18
         text run at (142,0) width 4: "."
-caret: position 6 of child 0 {#text} of child 3 {A} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 0 {#text} of child 3 {A} of body
diff --git a/LayoutTests/platform/mac/editing/selection/editable-non-editable-crash-expected.txt b/LayoutTests/platform/mac/editing/selection/editable-non-editable-crash-expected.txt
index ff981bc..d7956f4 100644
--- a/LayoutTests/platform/mac/editing/selection/editable-non-editable-crash-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/editable-non-editable-crash-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
                   text run at (2,2) width 769: "This tests for a Mail crasher that happened when a selection was created with one endpoint in non-editable content and the"
                   text run at (771,2) width 4: " "
                   text run at (2,20) width 155: "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/mac/editing/selection/end-of-document-expected.txt b/LayoutTests/platform/mac/editing/selection/end-of-document-expected.txt
index 90c0f32..54ce37b 100644
--- a/LayoutTests/platform/mac/editing/selection/end-of-document-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/end-of-document-expected.txt
@@ -78,4 +78,4 @@ layer at (0,0) size 800x600
               RenderBR {BR} at (0,0) size 0x18
         RenderBlock (anonymous) at (0,302) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-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 1 {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/mac/editing/selection/expanding-selections-expected.txt b/LayoutTests/platform/mac/editing/selection/expanding-selections-expected.txt
index 313ad46..58c78cc 100644
--- a/LayoutTests/platform/mac/editing/selection/expanding-selections-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/expanding-selections-expected.txt
@@ -23,4 +23,4 @@ layer at (8,94) size 784x18
   RenderBlock {P} at (0,86) size 784x18
     RenderText {#text} at (0,0) size 150x18
       text run at (0,0) width 150: "This text is not editable."
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/expanding-selections2-expected.txt b/LayoutTests/platform/mac/editing/selection/expanding-selections2-expected.txt
index 6bb07c2..0a8198f 100644
--- a/LayoutTests/platform/mac/editing/selection/expanding-selections2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/expanding-selections2-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 242: "This text is outside the editable region."
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/extend-by-character-001-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-character-001-expected.txt
index ee00e2a..a0d81db 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-character-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-character-001-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
             text run at (58,14) width 37: "bar "
             text run at (95,14) width 34: "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/mac/editing/selection/extend-by-character-002-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-character-002-expected.txt
index 924f5dd..4896433 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-character-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-character-002-expected.txt
@@ -61,5 +61,5 @@ layer at (0,0) size 800x600
             text run at (14,313) width 61: "nation"
           RenderImage {IMG} at (75,232) 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/mac/editing/selection/extend-by-character-003-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-character-003-expected.txt
index 39355f5..a9b5647 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-character-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-character-003-expected.txt
@@ -186,5 +186,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 220x28
             text run at (14,70) width 220: "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/mac/editing/selection/extend-by-character-004-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-character-004-expected.txt
index 0ba3bf6..bd87503 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-character-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-character-004-expected.txt
@@ -90,5 +90,5 @@ layer at (0,0) size 800x600
             text run at (14,313) width 61: "nation"
           RenderImage {IMG} at (75,232) 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/mac/editing/selection/extend-by-character-005-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-character-005-expected.txt
index 07a4fa7..084b7ef 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-character-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-character-005-expected.txt
@@ -344,5 +344,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 220x28
             text run at (14,70) width 220: "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/mac/editing/selection/extend-by-character-006-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-character-006-expected.txt
index 0b61af5..d66cdb0 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-character-006-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/selection/extend-by-sentence-001-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-sentence-001-expected.txt
index 122599f..096c4e5 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-sentence-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-sentence-001-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 118: "four five six"
           RenderBlock (anonymous) at (0,56) 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/mac/editing/selection/extend-by-word-001-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-word-001-expected.txt
index c978d79..54bf633 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-word-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-word-001-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
               text run at (32,0) width 16: "\x{9}"
           RenderText {#text} at (48,0) size 31x28
             text run at (48,0) width 31: "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/mac/editing/selection/extend-by-word-002-expected.txt b/LayoutTests/platform/mac/editing/selection/extend-by-word-002-expected.txt
index 1388cd1..55b0174 100644
--- a/LayoutTests/platform/mac/editing/selection/extend-by-word-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/extend-by-word-002-expected.txt
@@ -70,5 +70,5 @@ layer at (0,0) size 800x600
             RenderInline {A} at (0,0) size 40x12 [color=#0000EE]
               RenderText {#text} at (19,6) size 40x12
                 text run at (19,6) width 40: "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/mac/editing/selection/fake-doubleclick-expected.txt b/LayoutTests/platform/mac/editing/selection/fake-doubleclick-expected.txt
index b4861d5..62e0873 100644
--- a/LayoutTests/platform/mac/editing/selection/fake-doubleclick-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/fake-doubleclick-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 800x18
         RenderText {#text} at (0,0) size 193x18
           text run at (0,0) width 193: "Select me, select me, select me"
-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 6 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 6 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/fake-drag-expected.txt b/LayoutTests/platform/mac/editing/selection/fake-drag-expected.txt
index fd34949..bb220b7 100644
--- a/LayoutTests/platform/mac/editing/selection/fake-drag-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/fake-drag-expected.txt
@@ -16,5 +16,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 800x18
         RenderText {#text} at (0,0) size 193x18
           text run at (0,0) width 193: "Select me, select me, select me"
-selection start: position 5 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 8 of child 0 {#text} 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 {DIV} of body
+selection end:   position 8 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/focus-body-expected.txt b/LayoutTests/platform/mac/editing/selection/focus-body-expected.txt
index d7fc2b5..3bd1ee5 100644
--- a/LayoutTests/platform/mac/editing/selection/focus-body-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/focus-body-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
         text run at (0,0) width 220: "This test focuses an editable body. "
         text run at (220,0) width 218: "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/mac/editing/selection/focus_editable_html-expected.txt b/LayoutTests/platform/mac/editing/selection/focus_editable_html-expected.txt
index 812a3d9..86db13b 100644
--- a/LayoutTests/platform/mac/editing/selection/focus_editable_html-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/focus_editable_html-expected.txt
@@ -23,4 +23,4 @@ layer at (0,0) size 2008x2088
         RenderText {#text} at (0,0) size 237x18
           text run at (0,0) width 237: "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/mac/editing/selection/iframe-expected.txt b/LayoutTests/platform/mac/editing/selection/iframe-expected.txt
index 983d43b..91094dd 100644
--- a/LayoutTests/platform/mac/editing/selection/iframe-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/iframe-expected.txt
@@ -251,4 +251,4 @@ layer at (0,0) size 800x600
                         text run at (212,62) width 67: "The End..."
           RenderText {#text} at (450,188) size 66x18
             text run at (450,188) 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/mac/editing/selection/image-before-linebreak-expected.txt b/LayoutTests/platform/mac/editing/selection/image-before-linebreak-expected.txt
index 548ba7d..289f34f 100644
--- a/LayoutTests/platform/mac/editing/selection/image-before-linebreak-expected.txt
+++ b/LayoutTests/platform/mac/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 21x18
           text run at (0,103) width 21: "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/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt b/LayoutTests/platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt
index 78f7d15..ff0f28d 100644
--- a/LayoutTests/platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt
@@ -14,5 +14,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,34) size 784x18
         RenderText {#text} at (0,0) size 80x18
           text run at (0,0) width 80: "Selected text"
-selection start: position 5 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 18 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 18 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/inline-closest-leaf-child-expected.txt b/LayoutTests/platform/mac/editing/selection/inline-closest-leaf-child-expected.txt
index 47ccc3b..675df0c 100644
--- a/LayoutTests/platform/mac/editing/selection/inline-closest-leaf-child-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/inline-closest-leaf-child-expected.txt
@@ -32,5 +32,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (46,31) size 38x18
             text run at (46,31) width 38: "ipsum"
         RenderText {#text} at (0,0) size 0x0
-selection start: position 2 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 4 of child 2 {#text} of child 1 {SPAN} 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 {SPAN} of child 4 {DIV} of body
+selection end:   position 4 of child 2 {#text} of child 1 {SPAN} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/inline-table-expected.txt b/LayoutTests/platform/mac/editing/selection/inline-table-expected.txt
index eb8fe58..726030f 100644
--- a/LayoutTests/platform/mac/editing/selection/inline-table-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/inline-table-expected.txt
@@ -189,4 +189,4 @@ layer at (0,0) size 800x600
                     text run at (2,2) width 31: "Nine"
           RenderText {#text} at (212,62) size 67x18
             text run at (212,62) width 67: "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/mac/editing/selection/leave-requested-block-expected.txt b/LayoutTests/platform/mac/editing/selection/leave-requested-block-expected.txt
index 19275a3..0e7987b 100644
--- a/LayoutTests/platform/mac/editing/selection/leave-requested-block-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/leave-requested-block-expected.txt
@@ -28,5 +28,5 @@ layer at (8,164) size 784x18
   RenderBlock {P} at (0,156) size 784x18
     RenderText {#text} at (0,0) size 424x18
       text run at (0,0) width 424: "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/mac/editing/selection/line-wrap-1-expected.txt b/LayoutTests/platform/mac/editing/selection/line-wrap-1-expected.txt
index 8e111ee..5ee0908 100644
--- a/LayoutTests/platform/mac/editing/selection/line-wrap-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/line-wrap-1-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (1,1) size 47x36
           text run at (1,1) width 45: "foo bar"
           text run at (1,19) 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/mac/editing/selection/line-wrap-2-expected.txt b/LayoutTests/platform/mac/editing/selection/line-wrap-2-expected.txt
index 932fb65..36644b1 100644
--- a/LayoutTests/platform/mac/editing/selection/line-wrap-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/line-wrap-2-expected.txt
@@ -13,5 +13,5 @@ layer at (0,0) size 800x600
         RenderInline {A} at (0,0) size 22x18 [color=#0000EE]
           RenderText {#text} at (1,19) size 22x18
             text run at (1,19) width 22: "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/mac/editing/selection/mixed-editability-1-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-1-expected.txt
index 1b790da..652ff3f 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-1-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 800x600
         text run at (782,0) width 2: " "
         text run at (0,18) width 351: "the first two letters of the first word of the first sentence."
       RenderText {#text} at (0,0) size 0x0
-selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 2 of child 0 {#text} of child 0 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {SPAN} of body
+selection end:   position 2 of child 0 {#text} of child 0 {SPAN} of body
diff --git a/LayoutTests/platform/mac/editing/selection/mixed-editability-2-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-2-expected.txt
index 9068335..99c283f 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-2-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
             text run at (163,0) width 18: "Be"
         RenderText {#text} at (181,0) size 53x18
           text run at (181,0) width 53: "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/mac/editing/selection/mixed-editability-3-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-3-expected.txt
index 21a2eac..c7ceb5c 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-3-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,46) size 784x18
           RenderText {#text} at (0,0) size 49x18
             text run at (0,0) width 49: "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/mac/editing/selection/mixed-editability-4-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-4-expected.txt
index 22c2534..096b00d 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-4-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-4-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,46) size 784x18
           RenderText {#text} at (0,0) size 49x18
             text run at (0,0) width 49: "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/mac/editing/selection/mixed-editability-5-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-5-expected.txt
index ed02e42..65b7560 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-5-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-5-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,46) size 784x18
           RenderText {#text} at (0,0) size 49x18
             text run at (0,0) width 49: "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/mac/editing/selection/mixed-editability-6-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-6-expected.txt
index 106d69c..1379a5a 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-6-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-6-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,36) size 784x18
           RenderText {#text} at (0,0) size 30x18
             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/mac/editing/selection/mixed-editability-7-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-7-expected.txt
index 24179e6..ec1047a 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-7-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-7-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,36) size 784x18
           RenderText {#text} at (0,0) size 30x18
             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/mac/editing/selection/mixed-editability-8-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-8-expected.txt
index c01b3c9..6438a50 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-8-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-8-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,46) size 784x18
           RenderText {#text} at (0,0) size 49x18
             text run at (0,0) width 49: "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/mac/editing/selection/mixed-editability-9-expected.txt b/LayoutTests/platform/mac/editing/selection/mixed-editability-9-expected.txt
index 9bd8501..a123909 100644
--- a/LayoutTests/platform/mac/editing/selection/mixed-editability-9-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/mixed-editability-9-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,46) size 784x18
           RenderText {#text} at (0,0) size 49x18
             text run at (0,0) width 49: "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/mac/editing/selection/move-3875618-fix-expected.txt b/LayoutTests/platform/mac/editing/selection/move-3875618-fix-expected.txt
index 7ae88ef..3fd1643 100644
--- a/LayoutTests/platform/mac/editing/selection/move-3875618-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-3875618-fix-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (14,70) size 756x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/selection/move-3875641-fix-expected.txt b/LayoutTests/platform/mac/editing/selection/move-3875641-fix-expected.txt
index 33b5757..03c65be 100644
--- a/LayoutTests/platform/mac/editing/selection/move-3875641-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-3875641-fix-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (14,70) size 756x28
         RenderText {#text} at (0,0) size 241x28
           text run at (0,0) width 241: "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/mac/editing/selection/move-backwords-by-word-001-expected.txt b/LayoutTests/platform/mac/editing/selection/move-backwords-by-word-001-expected.txt
index e3f52cc..565e7b5 100644
--- a/LayoutTests/platform/mac/editing/selection/move-backwords-by-word-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-backwords-by-word-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,42) size 71x28
             text run at (14,42) width 71: "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/mac/editing/selection/move-between-blocks-no-001-expected.txt b/LayoutTests/platform/mac/editing/selection/move-between-blocks-no-001-expected.txt
index c542e2a..70298ba 100644
--- a/LayoutTests/platform/mac/editing/selection/move-between-blocks-no-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-between-blocks-no-001-expected.txt
@@ -113,4 +113,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 318x28
           text run at (14,14) width 318: "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/mac/editing/selection/move-between-blocks-yes-001-expected.txt b/LayoutTests/platform/mac/editing/selection/move-between-blocks-yes-001-expected.txt
index cdea97d..5da0c38 100644
--- a/LayoutTests/platform/mac/editing/selection/move-between-blocks-yes-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-between-blocks-yes-001-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
         RenderText {#text} at (14,14) size 318x28
           text run at (14,14) width 318: "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/mac/editing/selection/move-by-character-001-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-character-001-expected.txt
index b49e9c2..7d78087 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-character-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-character-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             text run at (52,14) width 37: "bar "
             text run at (89,14) width 34: "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/mac/editing/selection/move-by-character-002-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-character-002-expected.txt
index fad6e28..e80c35e 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-character-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-character-002-expected.txt
@@ -60,4 +60,4 @@ layer at (0,0) size 800x600
             text run at (14,313) width 61: "nation"
           RenderImage {IMG} at (75,232) 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/mac/editing/selection/move-by-character-003-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-character-003-expected.txt
index 29bd7cc..5adeabd 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-character-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-character-003-expected.txt
@@ -186,4 +186,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 220x28
             text run at (14,70) width 220: "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/mac/editing/selection/move-by-character-004-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-character-004-expected.txt
index b9bc9c4..653f690 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-character-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-character-004-expected.txt
@@ -92,4 +92,4 @@ layer at (0,0) size 800x600
             text run at (14,313) width 61: "nation"
           RenderImage {IMG} at (75,232) 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/mac/editing/selection/move-by-character-005-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-character-005-expected.txt
index 8dbc7cd..2ddbeb0 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-character-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-character-005-expected.txt
@@ -344,4 +344,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,70) size 220x28
             text run at (14,70) width 220: "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/mac/editing/selection/move-by-character-6-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-character-6-expected.txt
index cdc33c2..24f5b29 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-character-6-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-character-6-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
             text run at (38,0) width 37: "bar "
             text run at (75,0) width 34: "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/mac/editing/selection/move-by-line-001-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-line-001-expected.txt
index c30aff5..65c7e9d 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-line-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-line-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
                 RenderTableCell {TD} at (2,108) size 58x54 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
                   RenderText {#text} at (13,13) size 31x28
                     text run at (13,13) width 31: "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/mac/editing/selection/move-by-line-002-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-line-002-expected.txt
index 0d576dd..27a4e33 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-line-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-line-002-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-31,0) size 24x28: "5"
               RenderText {#text} at (0,0) size 38x28
                 text run at (0,0) width 38: "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/mac/editing/selection/move-by-sentence-001-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-sentence-001-expected.txt
index d5e90b8..0ab904b 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-sentence-001-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/editing/selection/move-by-sentence-linebreak-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-sentence-linebreak-expected.txt
index b6e811c..1f0eed0 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-sentence-linebreak-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-sentence-linebreak-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 86: "This is a test. "
             text run at (86,0) width 94: "How are you? "
             text run at (180,0) width 85: "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/mac/editing/selection/move-by-word-001-expected.txt b/LayoutTests/platform/mac/editing/selection/move-by-word-001-expected.txt
index 6d8c4e0..9f09b03 100644
--- a/LayoutTests/platform/mac/editing/selection/move-by-word-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-by-word-001-expected.txt
@@ -16,5 +16,5 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (14,42) size 756x28
           RenderText {#text} at (0,0) size 31x28
             text run at (0,0) width 31: "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/mac/editing/selection/move-past-trailing-space-expected.txt b/LayoutTests/platform/mac/editing/selection/move-past-trailing-space-expected.txt
index 54d64d6..5673014 100644
--- a/LayoutTests/platform/mac/editing/selection/move-past-trailing-space-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/move-past-trailing-space-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
             text run at (138,14) width 76: "before"
             text run at (80,42) width 134 RTL: "\x{5D0}\x{5E0}\x{5E6}\x{5D9}\x{5E7}\x{5DC}\x{5D5}\x{5E4}\x{5D3}\x{5D9}\x{5D4}"
         RenderText {#text} at (0,0) size 0x0
-caret: position 12 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 12 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/node-removal-2-expected.txt b/LayoutTests/platform/mac/editing/selection/node-removal-2-expected.txt
index b9fafab..0166827 100644
--- a/LayoutTests/platform/mac/editing/selection/node-removal-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/node-removal-2-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
           text run at (0,0) width 35: "hello "
         RenderText {#text} at (35,0) size 42x18
           text run at (35,0) width 42: "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/mac/editing/selection/paragraph-granularity-expected.txt b/LayoutTests/platform/mac/editing/selection/paragraph-granularity-expected.txt
index 75ea99c..8d1f034 100644
--- a/LayoutTests/platform/mac/editing/selection/paragraph-granularity-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/paragraph-granularity-expected.txt
@@ -51,5 +51,5 @@ layer at (0,0) size 800x600
             text run at (84,90) width 8: "g"
         RenderText {#text} at (92,90) size 32x18
           text run at (92,90) width 32: "raph."
-selection start: position 1 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 14 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 5 {DIV} of body
+selection end:   position 5 of child 14 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/previous-line-position-expected.txt b/LayoutTests/platform/mac/editing/selection/previous-line-position-expected.txt
index a4551ba..d849419 100644
--- a/LayoutTests/platform/mac/editing/selection/previous-line-position-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/previous-line-position-expected.txt
@@ -32,4 +32,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x18
           RenderText {#text} at (0,18) size 21x18
             text run at (0,18) width 21: "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/mac/editing/selection/range-between-block-and-inline-expected.txt b/LayoutTests/platform/mac/editing/selection/range-between-block-and-inline-expected.txt
index b41fc9d..c96afd4 100644
--- a/LayoutTests/platform/mac/editing/selection/range-between-block-and-inline-expected.txt
+++ b/LayoutTests/platform/mac/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 7x18
               text run at (0,0) width 7: "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/mac/editing/selection/replace-selection-1-expected.txt b/LayoutTests/platform/mac/editing/selection/replace-selection-1-expected.txt
index af4e5aa..4d5cd1d 100644
--- a/LayoutTests/platform/mac/editing/selection/replace-selection-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/replace-selection-1-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
         RenderInline {A} at (0,0) size 24x18 [color=#0000EE]
           RenderText {#text} at (47,0) size 24x18
             text run at (47,0) width 24: "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/mac/editing/selection/replaced-boundaries-1-expected.txt b/LayoutTests/platform/mac/editing/selection/replaced-boundaries-1-expected.txt
index bfb8070..ebe0af5 100644
--- a/LayoutTests/platform/mac/editing/selection/replaced-boundaries-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/replaced-boundaries-1-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (22,0) size 76x103
         RenderText {#text} at (98,89) size 20x18
           text run at (98,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/mac/editing/selection/replaced-boundaries-2-expected.txt b/LayoutTests/platform/mac/editing/selection/replaced-boundaries-2-expected.txt
index d78c9ae..d17673e 100644
--- a/LayoutTests/platform/mac/editing/selection/replaced-boundaries-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/replaced-boundaries-2-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
         RenderImage {IMG} at (22,0) size 76x103
         RenderText {#text} at (98,89) size 20x18
           text run at (98,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/mac/editing/selection/replaced-boundaries-3-expected.txt b/LayoutTests/platform/mac/editing/selection/replaced-boundaries-3-expected.txt
index 9c46988..cd80dcb 100644
--- a/LayoutTests/platform/mac/editing/selection/replaced-boundaries-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/replaced-boundaries-3-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
             RenderText at (8,2) size 195x13
               text run at (8,2) width 195: "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/mac/editing/selection/select-all-001-expected.txt b/LayoutTests/platform/mac/editing/selection/select-all-001-expected.txt
index 55a8478..c2cc66e 100644
--- a/LayoutTests/platform/mac/editing/selection/select-all-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-all-001-expected.txt
@@ -36,5 +36,5 @@ layer at (0,0) size 820x900
             text run at (0,538) width 554: "Liberty, and dedicated to the proposition that all men are"
             text run at (554,538) width 6: " "
             text run at (0,586) width 136: "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 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/mac/editing/selection/select-all-002-expected.txt b/LayoutTests/platform/mac/editing/selection/select-all-002-expected.txt
index deb18c3..e7c56fe 100644
--- a/LayoutTests/platform/mac/editing/selection/select-all-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-all-002-expected.txt
@@ -39,5 +39,5 @@ layer at (0,0) size 820x900
             text run at (0,538) width 583: "upon this continent, a new nation, conceived in Liberty, and"
             text run at (583,538) width 6: " "
             text run at (0,586) width 571: "dedicated to the proposition that all men are 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/mac/editing/selection/select-all-003-expected.txt b/LayoutTests/platform/mac/editing/selection/select-all-003-expected.txt
index df23008..d0d0620 100644
--- a/LayoutTests/platform/mac/editing/selection/select-all-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-all-003-expected.txt
@@ -40,5 +40,5 @@ layer at (0,0) size 812x1044
         RenderBR {BR} at (142,704) size 0x0
         RenderBR {BR} at (0,730) size 0x28
       RenderBlock {DIV} at (74,842) 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/mac/editing/selection/select-all-004-expected.txt b/LayoutTests/platform/mac/editing/selection/select-all-004-expected.txt
index ea0fa1b..afb9470 100644
--- a/LayoutTests/platform/mac/editing/selection/select-all-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-all-004-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 812x585
             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,10) size 0x28
-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/mac/editing/selection/select-all-005-expected.txt b/LayoutTests/platform/mac/editing/selection/select-all-005-expected.txt
index 7a4b11e..a0fbe4d 100644
--- a/LayoutTests/platform/mac/editing/selection/select-all-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-all-005-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
         text run at (0,18) width 273: "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/mac/editing/selection/select-all-006-expected.txt b/LayoutTests/platform/mac/editing/selection/select-all-006-expected.txt
index 10d60b7..099e3ed 100644
--- a/LayoutTests/platform/mac/editing/selection/select-all-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-all-006-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
         text run at (0,0) width 745: "VisiblePositions created at [html, x] where html is non-editable should descend into an editable body, for convenience."
         text run at (0,18) width 273: "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/mac/editing/selection/select-box-expected.txt b/LayoutTests/platform/mac/editing/selection/select-box-expected.txt
index 4735e76..3fcdab7 100644
--- a/LayoutTests/platform/mac/editing/selection/select-box-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-box-expected.txt
@@ -70,4 +70,4 @@ layer at (0,0) size 800x600
                 text run at (8,2) width 7: "1"
           RenderText {#text} at (113,1) size 66x18
             text run at (113,1) 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/mac/editing/selection/select-element-paragraph-boundary-expected.txt b/LayoutTests/platform/mac/editing/selection/select-element-paragraph-boundary-expected.txt
index 884a13c..3262662 100644
--- a/LayoutTests/platform/mac/editing/selection/select-element-paragraph-boundary-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-element-paragraph-boundary-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,0) size 38x18
             RenderText at (8,2) size 7x13
               text run at (8,2) width 7: "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/mac/editing/selection/select-from-textfield-outwards-expected.txt b/LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.txt
index 55691ab..9e607d5 100644
--- a/LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.txt
@@ -48,5 +48,5 @@ layer at (40,180) size 258x28
   RenderBlock {DIV} at (12,12) size 258x28
     RenderText {#text} at (1,0) size 224x28
       text run at (1,0) width 224: "Lorem ipsum dolor"
-selection start: position 6 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 17 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 6 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of body
+selection end:   position 17 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of body
diff --git a/LayoutTests/platform/mac/editing/selection/select-missing-image-expected.txt b/LayoutTests/platform/mac/editing/selection/select-missing-image-expected.txt
index 7b9de8d..0b1a6a7 100644
--- a/LayoutTests/platform/mac/editing/selection/select-missing-image-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-missing-image-expected.txt
@@ -11,5 +11,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/mac/editing/selection/select-text-overflow-ellipsis-expected.txt b/LayoutTests/platform/mac/editing/selection/select-text-overflow-ellipsis-expected.txt
index 65c7676..e1dbaf5 100644
--- a/LayoutTests/platform/mac/editing/selection/select-text-overflow-ellipsis-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/select-text-overflow-ellipsis-expected.txt
@@ -15,5 +15,5 @@ layer at (8,48) size 95x18 scrollWidth 121
   RenderBlock {DIV} at (0,40) size 95x18
     RenderText {#text} at (0,0) size 121x18
       text run at (0,0) width 121: "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/mac/editing/selection/selection-3748164-fix-expected.txt b/LayoutTests/platform/mac/editing/selection/selection-3748164-fix-expected.txt
index 6895c81..ae0f89a 100644
--- a/LayoutTests/platform/mac/editing/selection/selection-3748164-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/selection-3748164-fix-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (33,40) 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/mac/editing/selection/selection-actions-expected.txt b/LayoutTests/platform/mac/editing/selection/selection-actions-expected.txt
index 277e0fe..18ee14b 100644
--- a/LayoutTests/platform/mac/editing/selection/selection-actions-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/selection-actions-expected.txt
@@ -37,5 +37,5 @@ layer at (0,0) size 800x600
         text run at (0,126) width 124: "This is a paragraph."
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-selection start: position 11 of child 2 {#text} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 7 {BR} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 11 of child 2 {#text} of body
+selection end:   position 1 of child 7 {BR} of body
diff --git a/LayoutTests/platform/mac/editing/selection/selection-background-expected.txt b/LayoutTests/platform/mac/editing/selection/selection-background-expected.txt
index eb896cc..cc49fec 100644
--- a/LayoutTests/platform/mac/editing/selection/selection-background-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/selection-background-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,34) size 784x18
         RenderText {#text} at (0,0) size 178x18
           text run at (0,0) width 178: "This text should be selected."
-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 29 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 29 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/table-caret-1-expected.txt b/LayoutTests/platform/mac/editing/selection/table-caret-1-expected.txt
index aa0e071..7b80568 100644
--- a/LayoutTests/platform/mac/editing/selection/table-caret-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/table-caret-1-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,94) size 784x18
           RenderText {#text} at (0,0) size 22x18
             text run at (0,0) width 22: "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/mac/editing/selection/table-caret-2-expected.txt b/LayoutTests/platform/mac/editing/selection/table-caret-2-expected.txt
index de2def7..239a43b 100644
--- a/LayoutTests/platform/mac/editing/selection/table-caret-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/table-caret-2-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,94) size 784x18
           RenderText {#text} at (0,0) size 22x18
             text run at (0,0) width 22: "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/mac/editing/selection/table-caret-3-expected.txt b/LayoutTests/platform/mac/editing/selection/table-caret-3-expected.txt
index 14bc76d..c944cb3 100644
--- a/LayoutTests/platform/mac/editing/selection/table-caret-3-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/table-caret-3-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
                   text run at (2,2) width 41: "a table"
         RenderText {#text} at (72,62) size 22x18
           text run at (72,62) width 22: "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/mac/editing/selection/transformed-selection-rects-expected.txt b/LayoutTests/platform/mac/editing/selection/transformed-selection-rects-expected.txt
index b2344aa..41eb0f9 100644
--- a/LayoutTests/platform/mac/editing/selection/transformed-selection-rects-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/transformed-selection-rects-expected.txt
@@ -18,5 +18,5 @@ layer at (28,46) size 622x98
           text run at (136,0) width 389: "dolor sit amet, consectetur adipisicing"
       RenderText {#text} at (525,0) size 44x28
         text run at (525,0) width 44: " elit."
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {P} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {P} 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 {SPAN} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {P} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/triple-click-in-pre-expected.txt b/LayoutTests/platform/mac/editing/selection/triple-click-in-pre-expected.txt
index 26eec64..31e2f07 100644
--- a/LayoutTests/platform/mac/editing/selection/triple-click-in-pre-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/triple-click-in-pre-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
               text run at (0,0) width 120: "this text is in"
               text run at (120,0) width 0: " "
               text run at (0,15) width 112: "whitespace:pre"
-selection start: position 16 of child 0 {#text} of child 1 {PRE} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 30 of child 0 {#text} of child 1 {PRE} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 16 of child 0 {#text} of child 1 {PRE} of child 1 {DIV} of child 5 {DIV} of body
+selection end:   position 30 of child 0 {#text} of child 1 {PRE} of child 1 {DIV} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/unrendered-001-expected.txt b/LayoutTests/platform/mac/editing/selection/unrendered-001-expected.txt
index 83e1d45..4424f67 100644
--- a/LayoutTests/platform/mac/editing/selection/unrendered-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/unrendered-001-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 40x28
           text run at (106,84) width 40: " 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/mac/editing/selection/unrendered-002-expected.txt b/LayoutTests/platform/mac/editing/selection/unrendered-002-expected.txt
index adc5bf1..73e160b 100644
--- a/LayoutTests/platform/mac/editing/selection/unrendered-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/unrendered-002-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 40x28
           text run at (106,84) width 40: " 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/mac/editing/selection/unrendered-003-expected.txt b/LayoutTests/platform/mac/editing/selection/unrendered-003-expected.txt
index b26b3e1..cd3ef3b 100644
--- a/LayoutTests/platform/mac/editing/selection/unrendered-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/unrendered-003-expected.txt
@@ -13,5 +13,5 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 40x28
           text run at (106,84) width 40: " 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/mac/editing/selection/unrendered-004-expected.txt b/LayoutTests/platform/mac/editing/selection/unrendered-004-expected.txt
index c21177d..fbd243a 100644
--- a/LayoutTests/platform/mac/editing/selection/unrendered-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/unrendered-004-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 40x28
           text run at (106,84) width 40: " 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/mac/editing/selection/unrendered-005-expected.txt b/LayoutTests/platform/mac/editing/selection/unrendered-005-expected.txt
index c21177d..fbd243a 100644
--- a/LayoutTests/platform/mac/editing/selection/unrendered-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/unrendered-005-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 820x585
             text run at (74,84) width 32: "foo"
         RenderText {#text} at (106,84) size 40x28
           text run at (106,84) width 40: " 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/mac/editing/selection/unrendered-space-expected.txt b/LayoutTests/platform/mac/editing/selection/unrendered-space-expected.txt
index 6070695..81fcd0c 100644
--- a/LayoutTests/platform/mac/editing/selection/unrendered-space-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/unrendered-space-expected.txt
@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,18) size 784x18
           RenderText {#text} at (0,0) size 20x18
             text run at (0,0) width 20: "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/mac/editing/selection/word-granularity-expected.txt b/LayoutTests/platform/mac/editing/selection/word-granularity-expected.txt
index f5f3fcb..3c336da 100644
--- a/LayoutTests/platform/mac/editing/selection/word-granularity-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/word-granularity-expected.txt
@@ -49,5 +49,5 @@ layer at (0,0) size 800x600
             text run at (84,90) width 8: "g"
         RenderText {#text} at (92,90) size 32x18
           text run at (92,90) width 32: "raph."
-selection start: position 11 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 14 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 11 of child 0 {#text} of child 5 {DIV} of body
+selection end:   position 4 of child 14 {#text} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/selection/wrapped-line-caret-1-expected.txt b/LayoutTests/platform/mac/editing/selection/wrapped-line-caret-1-expected.txt
index 186b6ea..60dfb8b 100644
--- a/LayoutTests/platform/mac/editing/selection/wrapped-line-caret-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/wrapped-line-caret-1-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           text run at (8,1) width 4: " "
         RenderText {#text} at (1,19) size 344x18
           text run at (1,19) width 344: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-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/mac/editing/selection/wrapped-line-caret-2-expected.txt b/LayoutTests/platform/mac/editing/selection/wrapped-line-caret-2-expected.txt
index 315a46c..7e3a777 100644
--- a/LayoutTests/platform/mac/editing/selection/wrapped-line-caret-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/selection/wrapped-line-caret-2-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderInline {SPAN} at (0,0) size 344x18 [color=#0000FF]
           RenderText {#text} at (1,19) size 344x18
             text run at (1,19) width 344: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-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/mac/editing/spelling/spellcheck-attribute-expected.txt b/LayoutTests/platform/mac/editing/spelling/spellcheck-attribute-expected.txt
index 736d002..eca86c7 100644
--- a/LayoutTests/platform/mac/editing/spelling/spellcheck-attribute-expected.txt
+++ b/LayoutTests/platform/mac/editing/spelling/spellcheck-attribute-expected.txt
@@ -63,4 +63,4 @@ layer at (37,180) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 16x13
       text run at (1,0) width 16: "zz "
-caret: position 3 of child 0 {#text} of child 0 {DIV} of child 10 {INPUT} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {DIV} of child 10 {INPUT} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/spelling/spelling-expected.txt b/LayoutTests/platform/mac/editing/spelling/spelling-expected.txt
index 5e59ef9..793c43b 100644
--- a/LayoutTests/platform/mac/editing/spelling/spelling-expected.txt
+++ b/LayoutTests/platform/mac/editing/spelling/spelling-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 39x28
               text run at (0,0) width 39: "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/mac/editing/spelling/spelling-linebreak-expected.txt b/LayoutTests/platform/mac/editing/spelling/spelling-linebreak-expected.txt
index b361a13..8535bf6 100644
--- a/LayoutTests/platform/mac/editing/spelling/spelling-linebreak-expected.txt
+++ b/LayoutTests/platform/mac/editing/spelling/spelling-linebreak-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (14,42) size 11x28
           text run at (14,42) width 11: "a"
         RenderInline {SPAN} at (0,0) size 0x28
-caret: position 0 of child 2 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 2 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/style/4916887-expected.txt b/LayoutTests/platform/mac/editing/style/4916887-expected.txt
index f185c0a..7518dcc 100644
--- a/LayoutTests/platform/mac/editing/style/4916887-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/4916887-expected.txt
@@ -12,5 +12,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 155x18
               text run at (0,0) width 155: "This text should be blue."
         RenderBlock (anonymous) at (0,18) 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/mac/editing/style/5017613-1-expected.txt b/LayoutTests/platform/mac/editing/style/5017613-1-expected.txt
index 646b33a..51668f5 100644
--- a/LayoutTests/platform/mac/editing/style/5017613-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5017613-1-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (86,2) size 97x22 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
                 RenderText {#text} at (2,2) size 93x18
                   text run at (2,2) width 93: "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/mac/editing/style/5017613-2-expected.txt b/LayoutTests/platform/mac/editing/style/5017613-2-expected.txt
index 949e7aa..9230032 100644
--- a/LayoutTests/platform/mac/editing/style/5017613-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5017613-2-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
                     text run at (2,2) width 54: "plaintext"
                 RenderText {#text} at (56,2) size 33x18
                   text run at (56,2) width 33: "-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/mac/editing/style/5046875-1-expected.txt b/LayoutTests/platform/mac/editing/style/5046875-1-expected.txt
index fbfe6d1..4f711a2 100644
--- a/LayoutTests/platform/mac/editing/style/5046875-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5046875-1-expected.txt
@@ -19,5 +19,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (0,18) size 784x18
             RenderText {#text} at (0,0) size 22x18
               text run at (0,0) width 22: "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/mac/editing/style/5046875-2-expected.txt b/LayoutTests/platform/mac/editing/style/5046875-2-expected.txt
index a146177..02fee67 100644
--- a/LayoutTests/platform/mac/editing/style/5046875-2-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5046875-2-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,36) size 784x18
           RenderText {#text} at (381,0) size 22x18
             text run at (381,0) width 22: "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/mac/editing/style/5065910-expected.txt b/LayoutTests/platform/mac/editing/style/5065910-expected.txt
index 44479bc..a7de594 100644
--- a/LayoutTests/platform/mac/editing/style/5065910-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5065910-expected.txt
@@ -21,4 +21,4 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 24x18 [color=#0000FF]
             RenderText {#text} at (359,0) size 24x18
               text run at (359,0) width 24: "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/mac/editing/style/5084241-expected.txt b/LayoutTests/platform/mac/editing/style/5084241-expected.txt
index f995ff9..62ad239 100644
--- a/LayoutTests/platform/mac/editing/style/5084241-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5084241-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
         RenderInline {FONT} at (0,0) size 155x18 [color=#0000FF]
           RenderText {#text} at (148,0) size 155x18
             text run at (148,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/mac/editing/style/5091898-expected.txt b/LayoutTests/platform/mac/editing/style/5091898-expected.txt
index 5b6ea6b..4db42fd 100644
--- a/LayoutTests/platform/mac/editing/style/5091898-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5091898-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
               text run at (188,0) width 192: " This text should be Arial bold."
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-caret: position 32 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 32 of child 0 {#text} of child 0 {DIV} of child 1 {SPAN} of child 0 {SPAN} of body
diff --git a/LayoutTests/platform/mac/editing/style/5228141-expected.txt b/LayoutTests/platform/mac/editing/style/5228141-expected.txt
index f5b1197..1e0d742 100644
--- a/LayoutTests/platform/mac/editing/style/5228141-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5228141-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,89) size 166x18
               text run at (0,89) width 166: "This text should be bold."
             RenderImage {IMG} at (166,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 1 {IMG} of child 0 {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 1 {IMG} of child 0 {B} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/style/5279521-expected.txt b/LayoutTests/platform/mac/editing/style/5279521-expected.txt
index 936c116..0b9f355 100644
--- a/LayoutTests/platform/mac/editing/style/5279521-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/5279521-expected.txt
@@ -10,5 +10,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,103) size 784x18
           RenderText {#text} at (22,0) size 762x18
             text run at (22,0) width 762: "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/mac/editing/style/apple-style-editable-mix-expected.txt b/LayoutTests/platform/mac/editing/style/apple-style-editable-mix-expected.txt
index 91c7d5a..274d777 100644
--- a/LayoutTests/platform/mac/editing/style/apple-style-editable-mix-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/apple-style-editable-mix-expected.txt
@@ -37,5 +37,5 @@ layer at (0,0) size 800x600
                     text run at (1,1) width 106: "Editable - line 2"
               RenderText {#text} at (107,1) size 0x18
                 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/mac/editing/style/block-style-001-expected.txt b/LayoutTests/platform/mac/editing/style/block-style-001-expected.txt
index a0c2143..2ea43fc 100644
--- a/LayoutTests/platform/mac/editing/style/block-style-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/block-style-001-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             text run at (298,14) width 90: "flush left"
         RenderText {#text} at (388,14) size 6x28
           text run at (388,14) width 6: "."
-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/mac/editing/style/block-style-002-expected.txt b/LayoutTests/platform/mac/editing/style/block-style-002-expected.txt
index a0c2143..2ea43fc 100644
--- a/LayoutTests/platform/mac/editing/style/block-style-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/block-style-002-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             text run at (298,14) width 90: "flush left"
         RenderText {#text} at (388,14) size 6x28
           text run at (388,14) width 6: "."
-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/mac/editing/style/block-style-003-expected.txt b/LayoutTests/platform/mac/editing/style/block-style-003-expected.txt
index 9a944bd..845b384 100644
--- a/LayoutTests/platform/mac/editing/style/block-style-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/block-style-003-expected.txt
@@ -75,5 +75,5 @@ layer at (0,0) size 800x600
             text run at (486,14) width 89: "centered"
         RenderText {#text} at (575,14) size 6x28
           text run at (575,14) width 6: "."
-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/mac/editing/style/block-style-004-expected.txt b/LayoutTests/platform/mac/editing/style/block-style-004-expected.txt
index b1a0dca..f5478fc 100644
--- a/LayoutTests/platform/mac/editing/style/block-style-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/block-style-004-expected.txt
@@ -59,4 +59,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 24x55
             RenderText {#text} at (0,0) size 24x55
               text run at (0,0) width 24: "x"
-caret: position 0 of child 0 {BR} of child 0 {SPAN} 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 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/style/block-style-005-expected.txt b/LayoutTests/platform/mac/editing/style/block-style-005-expected.txt
index 7242f18..b32ba93 100644
--- a/LayoutTests/platform/mac/editing/style/block-style-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/block-style-005-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,110) size 784x55
           RenderInline {SPAN} at (0,0) size 0x55
             RenderBR {BR} at (0,0) size 0x55
-caret: position 0 of child 0 {BR} of child 0 {SPAN} 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 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt b/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt
index 2cacc4c..bf51200 100644
--- a/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt
@@ -60,4 +60,4 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 24x55
             RenderText {#text} at (0,0) size 24x55
               text run at (0,0) width 24: "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/mac/editing/style/block-styles-007-expected.txt b/LayoutTests/platform/mac/editing/style/block-styles-007-expected.txt
index d3612cf..177060b 100644
--- a/LayoutTests/platform/mac/editing/style/block-styles-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/block-styles-007-expected.txt
@@ -49,4 +49,4 @@ layer at (0,0) size 800x600
             RenderInline {B} at (0,0) size 36x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/style/create-block-for-style-001-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-001-expected.txt
index d56a7dd..da572de 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-001-expected.txt
@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
             RenderBR {BR} at (31,22) size 0x0
             RenderText {#text} at (0,28) size 34x28
               text run at (0,28) width 34: "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/mac/editing/style/create-block-for-style-002-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-002-expected.txt
index 89b1900..df6fbdf 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-002-expected.txt
@@ -28,4 +28,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,70) size 756x28
             RenderText {#text} at (0,0) size 34x28
               text run at (0,0) width 34: "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/mac/editing/style/create-block-for-style-003-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-003-expected.txt
index d536f13..a76a9ff 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-003-expected.txt
@@ -30,4 +30,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (361,0) size 34x28
               text run at (361,0) width 34: "baz"
           RenderBlock (anonymous) at (14,98) 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/mac/editing/style/create-block-for-style-004-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-004-expected.txt
index f796d71..3803d96 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-004-expected.txt
@@ -34,4 +34,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (361,0) size 34x28
               text run at (361,0) width 34: "baz"
           RenderBlock (anonymous) at (14,98) 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/mac/editing/style/create-block-for-style-005-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-005-expected.txt
index b06f514..6b4df65 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-005-expected.txt
@@ -25,5 +25,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,112) size 784x56 [border: (2px solid #FF0000)]
           RenderText {#text} at (14,14) size 34x28
             text run at (14,14) width 34: "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/mac/editing/style/create-block-for-style-006-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-006-expected.txt
index c8ae5a0..1c92e11 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-006-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-006-expected.txt
@@ -26,5 +26,5 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,112) size 784x56 [border: (2px solid #FF0000)]
           RenderText {#text} at (375,14) size 34x28
             text run at (375,14) width 34: "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/mac/editing/style/create-block-for-style-007-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-007-expected.txt
index c7fa30e..84d492b 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-007-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-007-expected.txt
@@ -27,4 +27,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,98) size 756x28
             RenderText {#text} at (0,0) size 34x28
               text run at (0,0) width 34: "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/mac/editing/style/create-block-for-style-008-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-008-expected.txt
index 4a2c2c6..7139028 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-008-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-008-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,98) size 756x28
             RenderText {#text} at (0,0) size 34x28
               text run at (0,0) width 34: "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/mac/editing/style/create-block-for-style-009-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-009-expected.txt
index 344c7d0..983f37c 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-009-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-009-expected.txt
@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (361,0) size 34x28
               text run at (361,0) width 34: "baz"
           RenderBlock (anonymous) at (14,126) 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/mac/editing/style/create-block-for-style-010-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-010-expected.txt
index d000843..18d1563 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-010-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-010-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,98) size 756x28
             RenderText {#text} at (0,0) size 34x28
               text run at (0,0) width 34: "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/mac/editing/style/create-block-for-style-011-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-011-expected.txt
index 47c0dca..b687ff4 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-011-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-011-expected.txt
@@ -30,5 +30,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (361,0) size 34x28
               text run at (361,0) width 34: "baz"
           RenderBlock (anonymous) at (14,126) 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/mac/editing/style/create-block-for-style-012-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-012-expected.txt
index e8aeebd..cc79233 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-012-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-012-expected.txt
@@ -32,5 +32,5 @@ layer at (0,0) size 800x600
               RenderText {#text} at (347,0) size 34x28
                 text run at (347,0) width 34: "baz"
             RenderBlock (anonymous) at (14,70) 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/mac/editing/style/create-block-for-style-013-expected.txt b/LayoutTests/platform/mac/editing/style/create-block-for-style-013-expected.txt
index f1e3555..e88fe00 100644
--- a/LayoutTests/platform/mac/editing/style/create-block-for-style-013-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/create-block-for-style-013-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (347,0) size 34x28
                 text run at (347,0) width 34: "baz"
             RenderBlock (anonymous) at (14,70) 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/mac/editing/style/designmode-expected.txt b/LayoutTests/platform/mac/editing/style/designmode-expected.txt
index 26f3d84..b616c14 100644
--- a/LayoutTests/platform/mac/editing/style/designmode-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/designmode-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x600
         RenderInline {B} at (0,0) size 166x18
           RenderText {#text} at (0,0) size 166x18
             text run at (0,0) width 166: "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/mac/editing/style/font-family-with-space-expected.txt b/LayoutTests/platform/mac/editing/style/font-family-with-space-expected.txt
index 09961f0..3838973 100644
--- a/LayoutTests/platform/mac/editing/style/font-family-with-space-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/font-family-with-space-expected.txt
@@ -11,4 +11,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 1 {U} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 41 of child 0 {#text} of child 1 {U} of body
diff --git a/LayoutTests/platform/mac/editing/style/fontsize-1-expected.txt b/LayoutTests/platform/mac/editing/style/fontsize-1-expected.txt
index bbd60c7..e358887 100644
--- a/LayoutTests/platform/mac/editing/style/fontsize-1-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/fontsize-1-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (88,0) size 64x37
             text run at (88,0) width 64: "large"
       RenderBlock {UL} at (0,87) 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/mac/editing/style/highlight-expected.txt b/LayoutTests/platform/mac/editing/style/highlight-expected.txt
index e6f081e..1375b14 100644
--- a/LayoutTests/platform/mac/editing/style/highlight-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/highlight-expected.txt
@@ -6,4 +6,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x18
         RenderText {#text} at (0,0) size 135x18
           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/mac/editing/style/non-inheritable-styles-expected.txt b/LayoutTests/platform/mac/editing/style/non-inheritable-styles-expected.txt
index cedd838..4ea0061 100644
--- a/LayoutTests/platform/mac/editing/style/non-inheritable-styles-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/non-inheritable-styles-expected.txt
@@ -41,4 +41,4 @@ layer at (0,0) size 800x600
         RenderBlock (anonymous) at (0,38) size 784x18
           RenderText {#text} at (0,0) size 183x18
             text run at (0,0) width 183: "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/mac/editing/style/relative-font-size-change-001-expected.txt b/LayoutTests/platform/mac/editing/style/relative-font-size-change-001-expected.txt
index 9ded222..5817b09 100644
--- a/LayoutTests/platform/mac/editing/style/relative-font-size-change-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/relative-font-size-change-001-expected.txt
@@ -59,5 +59,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,114) size 756x36
             RenderText {#text} at (0,0) size 295x36
               text run at (0,0) width 295: "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/mac/editing/style/relative-font-size-change-002-expected.txt b/LayoutTests/platform/mac/editing/style/relative-font-size-change-002-expected.txt
index f4fb828..6590d3d 100644
--- a/LayoutTests/platform/mac/editing/style/relative-font-size-change-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/relative-font-size-change-002-expected.txt
@@ -49,5 +49,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,114) size 756x28
             RenderText {#text} at (0,0) size 241x28
               text run at (0,0) width 241: "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/mac/editing/style/relative-font-size-change-003-expected.txt b/LayoutTests/platform/mac/editing/style/relative-font-size-change-003-expected.txt
index 1c49236..e8419a4 100644
--- a/LayoutTests/platform/mac/editing/style/relative-font-size-change-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/relative-font-size-change-003-expected.txt
@@ -68,5 +68,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,106) size 756x28
             RenderText {#text} at (0,0) size 241x28
               text run at (0,0) width 241: "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/mac/editing/style/relative-font-size-change-004-expected.txt b/LayoutTests/platform/mac/editing/style/relative-font-size-change-004-expected.txt
index 1ed6c2b..ecbb1fc 100644
--- a/LayoutTests/platform/mac/editing/style/relative-font-size-change-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/relative-font-size-change-004-expected.txt
@@ -60,5 +60,5 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (14,98) size 756x28
             RenderText {#text} at (0,0) size 241x28
               text run at (0,0) width 241: "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/mac/editing/style/smoosh-styles-001-expected.txt b/LayoutTests/platform/mac/editing/style/smoosh-styles-001-expected.txt
index ff8e837..73d4222 100644
--- a/LayoutTests/platform/mac/editing/style/smoosh-styles-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/smoosh-styles-001-expected.txt
@@ -60,4 +60,4 @@ layer at (0,0) size 800x600
             RenderText {#text} at (59,2) size 20x28
               text run at (59,2) width 20: "fg"
         RenderBlock (anonymous) at (0,32) size 784x0
-caret: position 3 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/style/smoosh-styles-003-expected.txt b/LayoutTests/platform/mac/editing/style/smoosh-styles-003-expected.txt
index 1ad735d..2b74224 100644
--- a/LayoutTests/platform/mac/editing/style/smoosh-styles-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/smoosh-styles-003-expected.txt
@@ -51,4 +51,4 @@ layer at (0,0) size 800x600
           RenderBlock {DIV} at (42,2) size 740x28
             RenderText {#text} at (-40,0) size 32x28
               text run at (-40,0) width 32: "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/mac/editing/style/style-3681552-fix-001-expected.txt b/LayoutTests/platform/mac/editing/style/style-3681552-fix-001-expected.txt
index 69325bd..b6cb269 100644
--- a/LayoutTests/platform/mac/editing/style/style-3681552-fix-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-3681552-fix-001-expected.txt
@@ -40,4 +40,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (128,14) size 43x28
             text run at (128,14) width 43: " 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/mac/editing/style/style-3681552-fix-002-expected.txt b/LayoutTests/platform/mac/editing/style/style-3681552-fix-002-expected.txt
index 2d52a8d..bc183eb 100644
--- a/LayoutTests/platform/mac/editing/style/style-3681552-fix-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-3681552-fix-002-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (128,14) size 43x28
             text run at (128,14) width 43: " 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/mac/editing/style/style-3690704-fix-expected.txt b/LayoutTests/platform/mac/editing/style/style-3690704-fix-expected.txt
index 0916925..cbfb29b 100644
--- a/LayoutTests/platform/mac/editing/style/style-3690704-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-3690704-fix-expected.txt
@@ -49,5 +49,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (60,42) size 178x28
             text run at (60,42) width 178: " 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/mac/editing/style/style-3998892-fix-expected.txt b/LayoutTests/platform/mac/editing/style/style-3998892-fix-expected.txt
index bc98edd..8bf7f5c 100644
--- a/LayoutTests/platform/mac/editing/style/style-3998892-fix-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-3998892-fix-expected.txt
@@ -43,5 +43,5 @@ layer at (0,0) size 800x600
             RenderInline {B} at (0,0) size 36x28
               RenderText {#text} at (0,0) size 36x28
                 text run at (0,0) width 36: "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/mac/editing/style/style-boundary-001-expected.txt b/LayoutTests/platform/mac/editing/style/style-boundary-001-expected.txt
index e02d606..6ca9063 100644
--- a/LayoutTests/platform/mac/editing/style/style-boundary-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-boundary-001-expected.txt
@@ -36,5 +36,5 @@ layer at (0,0) size 800x600
               text run at (2,2) width 12: "a"
             RenderText {#text} at (14,2) size 13x28
               text run at (14,2) width 13: "b"
-selection start: position 0 of child 1 {#text} of child 0 {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 1 {#text} of child 0 {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 1 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 1 of child 1 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/style/style-boundary-002-expected.txt b/LayoutTests/platform/mac/editing/style/style-boundary-002-expected.txt
index 6c3fcdf..73ee768 100644
--- a/LayoutTests/platform/mac/editing/style/style-boundary-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-boundary-002-expected.txt
@@ -35,4 +35,4 @@ layer at (0,0) size 800x600
               text run at (2,2) width 25: "ab"
           RenderText {#text} at (27,2) size 11x28
             text run at (27,2) width 11: "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/mac/editing/style/style-boundary-003-expected.txt b/LayoutTests/platform/mac/editing/style/style-boundary-003-expected.txt
index f6343a5..8c7f6c2 100644
--- a/LayoutTests/platform/mac/editing/style/style-boundary-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-boundary-003-expected.txt
@@ -38,4 +38,4 @@ layer at (0,0) size 800x600
             text run at (14,2) width 12: "b"
           RenderText {#text} at (26,2) size 11x28
             text run at (26,2) width 11: "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/mac/editing/style/style-boundary-004-expected.txt b/LayoutTests/platform/mac/editing/style/style-boundary-004-expected.txt
index 911900d..059f4fc 100644
--- a/LayoutTests/platform/mac/editing/style/style-boundary-004-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-boundary-004-expected.txt
@@ -48,5 +48,5 @@ layer at (0,0) size 800x600
             RenderInline {B} at (0,0) size 13x28
               RenderText {#text} at (0,0) size 13x28
                 text run at (0,0) width 13: "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/mac/editing/style/style-boundary-005-expected.txt b/LayoutTests/platform/mac/editing/style/style-boundary-005-expected.txt
index 4b3db8e..1901f22 100644
--- a/LayoutTests/platform/mac/editing/style/style-boundary-005-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/style-boundary-005-expected.txt
@@ -66,4 +66,4 @@ layer at (0,0) size 800x600
             text run at (121,2) width 23: "one"
         RenderBlock (anonymous) at (0,22) size 784x0
           RenderText {#text} at (0,0) size 0x0
-caret: position 3 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/editing/style/table-selection-expected.txt b/LayoutTests/platform/mac/editing/style/table-selection-expected.txt
index 9e9dcb9..a85e36d 100644
--- a/LayoutTests/platform/mac/editing/style/table-selection-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/table-selection-expected.txt
@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
               RenderTableCell {TD} at (2,26) size 26x22 [r=1 c=0 rs=1 cs=1]
                 RenderText {#text} at (1,1) size 23x20
                   text run at (1,1) width 23: "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/mac/editing/style/typing-style-001-expected.txt b/LayoutTests/platform/mac/editing/style/typing-style-001-expected.txt
index dbb5b54..2d2e316 100644
--- a/LayoutTests/platform/mac/editing/style/typing-style-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/typing-style-001-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (126,14) size 43x28
             text run at (126,14) width 43: " 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/mac/editing/style/typing-style-002-expected.txt b/LayoutTests/platform/mac/editing/style/typing-style-002-expected.txt
index 5be0847..1100c2a 100644
--- a/LayoutTests/platform/mac/editing/style/typing-style-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/typing-style-002-expected.txt
@@ -52,4 +52,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (137,14) size 43x28
             text run at (137,14) width 43: " 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/mac/editing/style/typing-style-003-expected.txt b/LayoutTests/platform/mac/editing/style/typing-style-003-expected.txt
index 7cc2f72..2bc0e2d 100644
--- a/LayoutTests/platform/mac/editing/style/typing-style-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/typing-style-003-expected.txt
@@ -71,4 +71,4 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (155,14) size 36x28
                   text run at (155,14) width 36: "xxx"
         RenderInline {SPAN} at (0,0) size 0x28
-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/mac/editing/style/unbold-in-bold-expected.txt b/LayoutTests/platform/mac/editing/style/unbold-in-bold-expected.txt
index 098cc71..6782cf1 100644
--- a/LayoutTests/platform/mac/editing/style/unbold-in-bold-expected.txt
+++ b/LayoutTests/platform/mac/editing/style/unbold-in-bold-expected.txt
@@ -82,5 +82,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (164,14) size 78x28
             text run at (164,14) width 78: " xxxxxx"
         RenderInline {SPAN} at (0,0) size 0x28
-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/mac/editing/undo/4063751-expected.txt b/LayoutTests/platform/mac/editing/undo/4063751-expected.txt
index 22398c8..fbf28de 100644
--- a/LayoutTests/platform/mac/editing/undo/4063751-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/4063751-expected.txt
@@ -79,4 +79,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (2,2) size 780x22 [border: (2px solid #AAAAFF)]
           RenderText {#text} at (2,2) size 94x18
             text run at (2,2) width 94: "( 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/mac/editing/undo/5378473-expected.txt b/LayoutTests/platform/mac/editing/undo/5378473-expected.txt
index 80358bd..ad49ee5 100644
--- a/LayoutTests/platform/mac/editing/undo/5378473-expected.txt
+++ b/LayoutTests/platform/mac/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 784x18
-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/mac/editing/undo/redo-typing-001-expected.txt b/LayoutTests/platform/mac/editing/undo/redo-typing-001-expected.txt
index 8b2c086..a0c7f09 100644
--- a/LayoutTests/platform/mac/editing/undo/redo-typing-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/redo-typing-001-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 46x28
             text run at (14,14) width 46: "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/mac/editing/undo/undo-combined-delete-boundary-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt
index 44b9f0f..f43c774 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt
@@ -39,5 +39,5 @@ layer at (0,0) size 800x600
             text run at (739,14) width 6: " "
             text run at (14,42) width 209: "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/mac/editing/undo/undo-combined-delete-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-combined-delete-expected.txt
index 6c0a4f1..759b22b 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-combined-delete-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-combined-delete-expected.txt
@@ -34,5 +34,5 @@ layer at (0,0) size 800x600
             text run at (735,14) width 6: " "
             text run at (14,42) width 209: "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/mac/editing/undo/undo-delete-boundary-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-delete-boundary-expected.txt
index 4b2b5e5..df40c47 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-delete-boundary-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-delete-boundary-expected.txt
@@ -39,5 +39,5 @@ layer at (0,0) size 800x600
             text run at (739,14) width 6: " "
             text run at (14,42) width 209: "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/mac/editing/undo/undo-delete-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-delete-expected.txt
index e852b60..23b83ff 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-delete-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-delete-expected.txt
@@ -34,5 +34,5 @@ layer at (0,0) size 800x600
             text run at (735,14) width 6: " "
             text run at (14,42) width 209: "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/mac/editing/undo/undo-forward-delete-boundary-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt
index 5647df0..bdb1ace 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt
@@ -35,5 +35,5 @@ layer at (0,0) size 800x600
             text run at (739,14) width 6: " "
             text run at (14,42) width 209: "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/mac/editing/undo/undo-forward-delete-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-forward-delete-expected.txt
index 2da1a35..f295f78 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-forward-delete-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-forward-delete-expected.txt
@@ -30,5 +30,5 @@ layer at (0,0) size 800x600
             text run at (735,14) width 6: " "
             text run at (14,42) width 209: "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/mac/editing/undo/undo-misspellings-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-misspellings-expected.txt
index b592a2b..d7f0457 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-misspellings-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-misspellings-expected.txt
@@ -29,4 +29,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 784x18
-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/mac/editing/undo/undo-typing-001-expected.txt b/LayoutTests/platform/mac/editing/undo/undo-typing-001-expected.txt
index d8d2bb1..ff2f5fa 100644
--- a/LayoutTests/platform/mac/editing/undo/undo-typing-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/undo/undo-typing-001-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
           RenderText {#text} at (14,14) size 34x28
             text run at (14,14) width 34: "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/mac/editing/unsupported-content/list-delete-001-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/list-delete-001-expected.txt
index e480267..68485d8 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/list-delete-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/list-delete-001-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
               RenderText {#text} at (0,0) size 45x28
                 text run at (0,0) width 45: "after"
           RenderBlock (anonymous) at (2,106) 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/mac/editing/unsupported-content/list-delete-003-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/list-delete-003-expected.txt
index f624673..8d9ab3a 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/list-delete-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/list-delete-003-expected.txt
@@ -58,4 +58,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 45x28
             text run at (2,2) width 45: "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/mac/editing/unsupported-content/list-type-after-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/list-type-after-expected.txt
index 05f0bf8..4d7be70 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/list-type-after-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/list-type-after-expected.txt
@@ -75,4 +75,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-22,0) size 9x28: bullet
               RenderText {#text} at (0,0) size 128x28
                 text run at (0,0) width 128: "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/mac/editing/unsupported-content/list-type-before-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/list-type-before-expected.txt
index 1521801..fcc17ce 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/list-type-before-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/list-type-before-expected.txt
@@ -72,4 +72,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (-22,0) size 9x28: bullet
               RenderText {#text} at (0,0) size 92x28
                 text run at (0,0) width 92: "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/mac/editing/unsupported-content/table-delete-001-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/table-delete-001-expected.txt
index b07cc86..9a1c618 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/table-delete-001-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/table-delete-001-expected.txt
@@ -69,4 +69,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (64,24) size 0x0
           RenderText {#text} at (2,30) size 45x28
             text run at (2,30) width 45: "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/mac/editing/unsupported-content/table-delete-002-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/table-delete-002-expected.txt
index 489fe3e..c7f2dcc 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/table-delete-002-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/table-delete-002-expected.txt
@@ -64,4 +64,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {#text} at (2,2) size 62x28
             text run at (2,2) width 62: "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/mac/editing/unsupported-content/table-delete-003-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/table-delete-003-expected.txt
index 2eb7244..5d47253 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/table-delete-003-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/table-delete-003-expected.txt
@@ -73,4 +73,4 @@ layer at (0,0) size 800x600
               text run at (2,30) width 50: "after"
       RenderBlock (anonymous) at (0,412) 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/mac/editing/unsupported-content/table-type-after-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/table-type-after-expected.txt
index 55f6492..1e28c42 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/table-type-after-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/table-type-after-expected.txt
@@ -126,4 +126,4 @@ layer at (0,0) size 800x600
           RenderBlock (anonymous) at (2,78) size 780x28
             RenderText {#text} at (0,0) size 36x28
               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/mac/editing/unsupported-content/table-type-before-expected.txt b/LayoutTests/platform/mac/editing/unsupported-content/table-type-before-expected.txt
index 65e0aff..c429460 100644
--- a/LayoutTests/platform/mac/editing/unsupported-content/table-type-before-expected.txt
+++ b/LayoutTests/platform/mac/editing/unsupported-content/table-type-before-expected.txt
@@ -116,4 +116,4 @@ layer at (0,0) size 800x600
                 RenderTableCell {TD} at (30,50) size 12x22 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
                   RenderText {#text} at (2,2) size 8x18
                     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/mac/fast/backgrounds/solid-color-context-restore-expected.txt b/LayoutTests/platform/mac/fast/backgrounds/solid-color-context-restore-expected.txt
index 5b39de5..24ea6f1 100644
--- a/LayoutTests/platform/mac/fast/backgrounds/solid-color-context-restore-expected.txt
+++ b/LayoutTests/platform/mac/fast/backgrounds/solid-color-context-restore-expected.txt
@@ -11,5 +11,5 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,44) size 784x18
         RenderText {#text} at (0,0) size 21x18
           text run at (0,0) width 21: "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/mac/fast/block/float/relative-painted-twice-expected.txt b/LayoutTests/platform/mac/fast/block/float/relative-painted-twice-expected.txt
index 16e2172..ad6125c 100644
--- a/LayoutTests/platform/mac/fast/block/float/relative-painted-twice-expected.txt
+++ b/LayoutTests/platform/mac/fast/block/float/relative-painted-twice-expected.txt
@@ -8,4 +8,4 @@ layer at (0,0) size 785x2016
 layer at (8,58) size 769x100
   RenderBlock (relative positioned) {DIV} at (0,0) size 769x0
     RenderBlock (floating) {DIV} at (0,0) size 100x100 [bgcolor=#0000007F]
-caret: position 0 of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/css-generated-content/hover-style-change-expected.txt b/LayoutTests/platform/mac/fast/css-generated-content/hover-style-change-expected.txt
index 6eb1dc6..dbb975f 100644
--- a/LayoutTests/platform/mac/fast/css-generated-content/hover-style-change-expected.txt
+++ b/LayoutTests/platform/mac/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 755: "To reproduce the bug outside of DumpRenderTree, mouse over the div several times, and the style change won't update"
           text run at (0,18) width 70: "every time "
           text run at (70,18) width 85: "like it should."
-caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 1 {HTML} of document
+caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/css/layerZOrderCrash-expected.txt b/LayoutTests/platform/mac/fast/css/layerZOrderCrash-expected.txt
index 70c8709..9e6febd 100644
--- a/LayoutTests/platform/mac/fast/css/layerZOrderCrash-expected.txt
+++ b/LayoutTests/platform/mac/fast/css/layerZOrderCrash-expected.txt
@@ -31,4 +31,4 @@ layer at (11,51) size 52x60
           RenderText {#text} at (1,37) size 46x18
             text run at (1,37) width 46: "content"
           RenderBR {BR} at (47,51) 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/mac/fast/css/shadow-multiple-expected.txt b/LayoutTests/platform/mac/fast/css/shadow-multiple-expected.txt
index 88a76ef..9287a29 100644
--- a/LayoutTests/platform/mac/fast/css/shadow-multiple-expected.txt
+++ b/LayoutTests/platform/mac/fast/css/shadow-multiple-expected.txt
@@ -27,5 +27,5 @@ layer at (0,0) size 785x632
       RenderBlock {DIV} at (50,162) size 100x100
       RenderBlock {DIV} at (50,312) size 100x100 [bgcolor=#FFFFFF]
       RenderBlock {DIV} at (50,462) size 100x100 [bgcolor=#00000033]
-selection start: position 0 of child 0 {#text} of child 7 {SPAN} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 0 {#text} of child 7 {SPAN} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 7 {SPAN} of child 0 {DIV} of body
+selection end:   position 6 of child 0 {#text} of child 7 {SPAN} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt b/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt
index 0ba4926..607e163 100644
--- a/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt
+++ b/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
             text run at (699,2) width 56: "*:hover"
         RenderText {#text} at (0,18) size 256x18
           text run at (0,18) width 256: "does 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/mac/fast/dom/delete-contents-expected.txt b/LayoutTests/platform/mac/fast/dom/delete-contents-expected.txt
index 77baa92..a1d746e 100644
--- a/LayoutTests/platform/mac/fast/dom/delete-contents-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/fast/dom/focus-contenteditable-expected.txt b/LayoutTests/platform/mac/fast/dom/focus-contenteditable-expected.txt
index 9ce09f8..da99a6d 100644
--- a/LayoutTests/platform/mac/fast/dom/focus-contenteditable-expected.txt
+++ b/LayoutTests/platform/mac/fast/dom/focus-contenteditable-expected.txt
@@ -17,6 +17,6 @@ layer at (0,0) size 785x894
         RenderText {#text} at (0,0) size 78x18
           text run at (0,0) width 78: "Test Passed."
       RenderBlock {DIV} at (0,878) size 769x0
-selection start: position 0 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 19 of child 0 {#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 5 {DIV} of body
+selection end:   position 19 of child 0 {#text} of child 5 {DIV} of body
 scrolled to 0,276
diff --git a/LayoutTests/platform/mac/fast/dynamic/layer-hit-test-crash-expected.txt b/LayoutTests/platform/mac/fast/dynamic/layer-hit-test-crash-expected.txt
index 5de3080..f2f20b8 100644
--- a/LayoutTests/platform/mac/fast/dynamic/layer-hit-test-crash-expected.txt
+++ b/LayoutTests/platform/mac/fast/dynamic/layer-hit-test-crash-expected.txt
@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
           text run at (778,0) width 4: "."
 layer at (50,50) size 200x200
   RenderBlock (positioned) zI: 1 {DIV} at (50,50) size 200x200 [bgcolor=#FFFF00]
-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/mac/fast/dynamic/selection-highlight-adjust-expected.txt b/LayoutTests/platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt
index 1ef36ec..dab465c 100644
--- a/LayoutTests/platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt
+++ b/LayoutTests/platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt
@@ -27,5 +27,5 @@ layer at (0,0) size 800x156
         RenderText {#text} at (309,52) size 4x18
           text run at (309,52) width 4: " "
         RenderBR {BR} at (313,52) size 0x18
-selection start: position 0 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 1 {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 1 {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/mac/fast/events/5056619-expected.txt b/LayoutTests/platform/mac/fast/events/5056619-expected.txt
index dbf963b..36d3bfa 100644
--- a/LayoutTests/platform/mac/fast/events/5056619-expected.txt
+++ b/LayoutTests/platform/mac/fast/events/5056619-expected.txt
@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
             text run at (0,0) width 51: "Dragme"
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 6 of child 0 {#text} of child 5 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 6 of child 0 {#text} of child 5 {SPAN} of body
diff --git a/LayoutTests/platform/mac/fast/events/autoscroll-expected.txt b/LayoutTests/platform/mac/fast/events/autoscroll-expected.txt
index 70374ee..74698b4 100644
--- a/LayoutTests/platform/mac/fast/events/autoscroll-expected.txt
+++ b/LayoutTests/platform/mac/fast/events/autoscroll-expected.txt
@@ -26,6 +26,6 @@ layer at (13,3099) size 119x13 scrollWidth 127
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 125x13
       text run at (1,0) width 125: "select some of this text"
-selection start: position 1 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 16 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of body
+selection end:   position 16 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of body
 scrolled to 0,2567
diff --git a/LayoutTests/platform/mac/fast/events/context-no-deselect-expected.txt b/LayoutTests/platform/mac/fast/events/context-no-deselect-expected.txt
index c9d0201..ae60f8c 100644
--- a/LayoutTests/platform/mac/fast/events/context-no-deselect-expected.txt
+++ b/LayoutTests/platform/mac/fast/events/context-no-deselect-expected.txt
@@ -12,5 +12,5 @@ layer at (13,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 96x13
       text run at (1,0) width 96: "some sample text"
-selection start: position 5 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 15 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 5 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of body
+selection end:   position 15 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/events/label-focus-expected.txt b/LayoutTests/platform/mac/fast/events/label-focus-expected.txt
index 20eda9d..003d713 100644
--- a/LayoutTests/platform/mac/fast/events/label-focus-expected.txt
+++ b/LayoutTests/platform/mac/fast/events/label-focus-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 181: "THIS TEST HAS PASSED"
 layer at (57,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-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/mac/fast/events/pointer-events-dashboard-expected.txt b/LayoutTests/platform/mac/fast/events/pointer-events-dashboard-expected.txt
index 47b22f5..791da96 100644
--- a/LayoutTests/platform/mac/fast/events/pointer-events-dashboard-expected.txt
+++ b/LayoutTests/platform/mac/fast/events/pointer-events-dashboard-expected.txt
@@ -26,4 +26,4 @@ layer at (140,160) size 100x30
   RenderBlock (positioned) {P} at (140,160) size 100x30
     RenderText {#text} at (0,0) size 33x23
       text run at (0,0) width 33: "HIT"
-caret: position 0 of child 0 {#text} of child 3 {P} of child 5 {DIV} of child 1 {BODY} of child 1 {HTML} of document
+caret: position 0 of child 0 {#text} of child 3 {P} of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/events/updateLayoutForHitTest-expected.txt b/LayoutTests/platform/mac/fast/events/updateLayoutForHitTest-expected.txt
index 97a7d4a..d3a2442 100644
--- a/LayoutTests/platform/mac/fast/events/updateLayoutForHitTest-expected.txt
+++ b/LayoutTests/platform/mac/fast/events/updateLayoutForHitTest-expected.txt
@@ -14,5 +14,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (14,6) size 48x18
           text run at (14,6) width 48: " Project"
         RenderText {#text} at (0,0) size 0x0
-selection start: position 0 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 0 of child 1 {#text} of child 3 {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 {SPAN} of child 3 {DIV} of body
+selection end:   position 0 of child 1 {#text} of child 3 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/forms/caret-rtl-expected.txt b/LayoutTests/platform/mac/fast/forms/caret-rtl-expected.txt
index f301b75..c4e94cf 100644
--- a/LayoutTests/platform/mac/fast/forms/caret-rtl-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/caret-rtl-expected.txt
@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 401x18
           text run at (0,0) width 401: "Click in the div, the caret should be on the right edge of the div."
       RenderBlock {DIV} at (0,68) size 200x368
-caret: position 0 of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 5 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/forms/form-added-to-table-expected.txt b/LayoutTests/platform/mac/fast/forms/form-added-to-table-expected.txt
index 271f89d..fb72373 100644
--- a/LayoutTests/platform/mac/fast/forms/form-added-to-table-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/form-added-to-table-expected.txt
@@ -9,5 +9,5 @@ layer at (0,0) size 800x600
             RenderTableCell {TD} at (2,2) size 222x20 [r=0 c=0 rs=1 cs=1]
               RenderText {#text} at (1,1) size 220x18
                 text run at (1,1) width 220: "This test passes if it does not crash."
-selection start: position 0 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {TABLE} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of body
+selection end:   position 1 of child 1 {TABLE} of body
diff --git a/LayoutTests/platform/mac/fast/forms/input-appearance-focus-expected.txt b/LayoutTests/platform/mac/fast/forms/input-appearance-focus-expected.txt
index 2b934d6..6445f19 100644
--- a/LayoutTests/platform/mac/fast/forms/input-appearance-focus-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-appearance-focus-expected.txt
@@ -31,5 +31,5 @@ layer at (146,47) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 82x13
       text run at (1,0) width 82: "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/mac/fast/forms/input-appearance-readonly-expected.txt b/LayoutTests/platform/mac/fast/forms/input-appearance-readonly-expected.txt
index 746a3ca..70c1d3f 100644
--- a/LayoutTests/platform/mac/fast/forms/input-appearance-readonly-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-appearance-readonly-expected.txt
@@ -13,5 +13,5 @@ layer at (13,31) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 63x13
       text run at (1,0) width 63: "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/mac/fast/forms/input-appearance-selection-expected.txt b/LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.txt
index 8147cc3..7641f6e 100644
--- a/LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.txt
@@ -78,5 +78,5 @@ layer at (13,47) size 119x13 scrollWidth 133
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 131x13
       text run at (1,0) width 131: "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/mac/fast/forms/input-appearance-spinbutton-up-expected.txt b/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt
index 3440123..4d67f98 100644
--- a/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt
@@ -19,4 +19,4 @@ layer at (13,47) size 165x21
   RenderBlock {DIV} at (3,3) size 165x21
     RenderText {#text} at (1,0) size 12x21
       text run at (1,0) width 12: "0"
-caret: position 0 of child 0 {DIV} of child 5 {INPUT} of child 1 {BODY} of child 1 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 5 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt b/LayoutTests/platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt
index a813c69..c29c34b 100644
--- a/LayoutTests/platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt
@@ -27,5 +27,5 @@ layer at (35,409) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 39x13
       text run at (1,0) width 39: "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 1 {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 1 {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/mac/fast/forms/input-paste-undo-expected.txt b/LayoutTests/platform/mac/fast/forms/input-paste-undo-expected.txt
index 76bf055..523617d 100644
--- a/LayoutTests/platform/mac/fast/forms/input-paste-undo-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-paste-undo-expected.txt
@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,95) size 784x0
 layer at (13,67) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-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/mac/fast/forms/input-readonly-autoscroll-expected.txt b/LayoutTests/platform/mac/fast/forms/input-readonly-autoscroll-expected.txt
index b040fdf..6126efd 100644
--- a/LayoutTests/platform/mac/fast/forms/input-readonly-autoscroll-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-readonly-autoscroll-expected.txt
@@ -25,5 +25,5 @@ layer at (13,81) size 119x13 scrollX 41 scrollWidth 160
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 158x13
       text run at (1,0) width 158: "abcdefghijklmnopqrstuvwxyz"
-selection start: position 1 of child 0 {#text} of child 0 {DIV} of child 5 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 5 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 1 of child 0 {#text} of child 0 {DIV} of child 5 {INPUT} of body
+selection end:   position 1 of child 5 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/input-text-click-inside-expected.txt b/LayoutTests/platform/mac/fast/forms/input-text-click-inside-expected.txt
index ef183b9..c46d0f5 100644
--- a/LayoutTests/platform/mac/fast/forms/input-text-click-inside-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-text-click-inside-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 158: "should have a focus ring."
 layer at (38,38) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-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/mac/fast/forms/input-text-click-outside-expected.txt b/LayoutTests/platform/mac/fast/forms/input-text-click-outside-expected.txt
index f55afc4..3e26b86 100644
--- a/LayoutTests/platform/mac/fast/forms/input-text-click-outside-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-text-click-outside-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 182: "should not have a focus ring."
 layer at (38,38) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-caret: position 1 of child 0 {INPUT} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 1 of child 0 {INPUT} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/forms/input-text-double-click-expected.txt b/LayoutTests/platform/mac/fast/forms/input-text-double-click-expected.txt
index 49344dd..85ffb0f 100644
--- a/LayoutTests/platform/mac/fast/forms/input-text-double-click-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-text-double-click-expected.txt
@@ -13,5 +13,5 @@ layer at (13,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 72x13
       text run at (1,0) width 72: "word another"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 4 of child 0 {#text} of child 0 {DIV} of child 0 {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 0 {INPUT} of body
+selection end:   position 4 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/input-text-drag-down-expected.txt b/LayoutTests/platform/mac/fast/forms/input-text-drag-down-expected.txt
index d9e5438..9fd9831 100644
--- a/LayoutTests/platform/mac/fast/forms/input-text-drag-down-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-text-drag-down-expected.txt
@@ -13,5 +13,5 @@ layer at (13,13) size 119x13 scrollWidth 126
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 124x13
       text run at (1,0) width 124: "This is a bunch of text."
-selection start: position 7 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 24 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 7 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of body
+selection end:   position 24 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/input-text-option-delete-expected.txt b/LayoutTests/platform/mac/fast/forms/input-text-option-delete-expected.txt
index 6d6f0bd..090ba99 100644
--- a/LayoutTests/platform/mac/fast/forms/input-text-option-delete-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-text-option-delete-expected.txt
@@ -13,4 +13,4 @@ layer at (13,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 30x13
       text run at (1,0) width 30: "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/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt b/LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt
index 10f8a2f..f2b06dd 100644
--- a/LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt
@@ -28,4 +28,4 @@ layer at (279,13) size 119x13 scrollX 201 scrollWidth 321
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 319x13
       text run at (1,0) width 319: "this text field has a lot of text in it so that it needs to scroll"
-caret: position 66 of child 0 {#text} of child 0 {DIV} of child 4 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 66 of child 0 {#text} of child 0 {DIV} of child 4 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/input-text-self-emptying-click-expected.txt b/LayoutTests/platform/mac/fast/forms/input-text-self-emptying-click-expected.txt
index 343864e..b8d84e5 100644
--- a/LayoutTests/platform/mac/fast/forms/input-text-self-emptying-click-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/input-text-self-emptying-click-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 82: "the text field."
 layer at (13,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-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/mac/fast/forms/plaintext-mode-2-expected.txt b/LayoutTests/platform/mac/fast/forms/plaintext-mode-2-expected.txt
index 43d376f..46d0014 100644
--- a/LayoutTests/platform/mac/fast/forms/plaintext-mode-2-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/plaintext-mode-2-expected.txt
@@ -38,4 +38,4 @@ layer at (11,13) size 594x13
   RenderBlock {DIV} at (3,3) size 594x13
     RenderText {#text} at (1,0) size 480x13
       text run at (1,0) width 480: "This styled text, and link will be pasted into the textfield. All richness should be stripped."
-caret: position 94 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 94 of child 0 {#text} of child 0 {DIV} of child 0 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/search-rtl-expected.txt b/LayoutTests/platform/mac/fast/forms/search-rtl-expected.txt
index a79a408..ccb6edb 100644
--- a/LayoutTests/platform/mac/fast/forms/search-rtl-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/search-rtl-expected.txt
@@ -56,4 +56,4 @@ layer at (35,70) size 134x13 scrollX 1 scrollWidth 135
       text run at (96,0) width 37 RTL: "\x{5D4}\x{5D5}\x{5D0} \x{5D6}\x{5D4} "
 layer at (35,93) size 84x13
   RenderBlock {DIV} at (22,0) size 84x13
-caret: position 0 of child 1 {DIV} of child 0 {DIV} of child 9 {INPUT} of child 3 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 1 {DIV} of child 0 {DIV} of child 9 {INPUT} of child 3 {P} of body
diff --git a/LayoutTests/platform/mac/fast/forms/search-transformed-expected.txt b/LayoutTests/platform/mac/fast/forms/search-transformed-expected.txt
index fe34009..d529371 100644
--- a/LayoutTests/platform/mac/fast/forms/search-transformed-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/search-transformed-expected.txt
@@ -28,4 +28,4 @@ layer at (35,65) size 84x13 scrollWidth 89
   RenderBlock {DIV} at (22,0) size 84x13
     RenderText {#text} at (1,0) size 87x13
       text run at (1,0) width 87: "Some other text"
-caret: position 15 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of child 1 {INPUT} of child 3 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 15 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of child 1 {INPUT} of child 3 {P} of body
diff --git a/LayoutTests/platform/mac/fast/forms/search-zoomed-expected.txt b/LayoutTests/platform/mac/fast/forms/search-zoomed-expected.txt
index cf8efcc..e4f95d5 100644
--- a/LayoutTests/platform/mac/fast/forms/search-zoomed-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/search-zoomed-expected.txt
@@ -27,4 +27,4 @@ layer at (41,78) size 96x16 scrollWidth 104
   RenderBlock {DIV} at (27,2) size 96x16
     RenderText {#text} at (1,0) size 102x16
       text run at (1,0) width 102: "Some other text"
-caret: position 15 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of child 1 {INPUT} of child 3 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 15 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of child 1 {INPUT} of child 3 {P} of body
diff --git a/LayoutTests/platform/mac/fast/forms/tabbing-input-iframe-expected.txt b/LayoutTests/platform/mac/fast/forms/tabbing-input-iframe-expected.txt
index b9ade5b..5aaedf2 100644
--- a/LayoutTests/platform/mac/fast/forms/tabbing-input-iframe-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/tabbing-input-iframe-expected.txt
@@ -27,5 +27,5 @@ layer at (452,167) size 119x13 scrollWidth 125
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 123x13
       text run at (1,0) width 123: "This should have focus"
-selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 22 of child 0 {#text} of child 0 {DIV} of child 7 {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 7 {INPUT} of body
+selection end:   position 22 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.txt b/LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.txt
index 04253b2..7e94e0b 100644
--- a/LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.txt
@@ -39,4 +39,4 @@ layer at (10,28) size 161x84 clip at (11,29) size 144x82 scrollHeight 121
         text run at (7,91) width 0: " "
       RenderText {#text} at (0,104) size 0x13
         text run at (0,104) width 0: " "
-caret: position 0 of child 9 {#text} of child 0 {DIV} of child 3 {TEXTAREA} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 9 {#text} of child 0 {DIV} of child 3 {TEXTAREA} of body
diff --git a/LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.txt b/LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.txt
index 326fb44..0cf6964 100644
--- a/LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.txt
@@ -56,4 +56,4 @@ layer at (10,28) size 161x97 clip at (11,29) size 144x95 scrollY 182 scrollHeigh
         text run at (0,247) width 14: "20"
         text run at (14,247) width 0: " "
       RenderBR {BR} at (0,260) size 0x13
-caret: position 49 of child 0 {#text} of child 0 {DIV} of child 3 {TEXTAREA} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 49 of child 0 {#text} of child 0 {DIV} of child 3 {TEXTAREA} of body
diff --git a/LayoutTests/platform/mac/fast/forms/textfield-outline-expected.txt b/LayoutTests/platform/mac/fast/forms/textfield-outline-expected.txt
index 44e1441..e004c6a 100644
--- a/LayoutTests/platform/mac/fast/forms/textfield-outline-expected.txt
+++ b/LayoutTests/platform/mac/fast/forms/textfield-outline-expected.txt
@@ -14,4 +14,4 @@ layer at (12,30) size 212x23
   RenderBlock {DIV} at (2,2) size 212x23
     RenderText {#text} at (1,0) size 34x23
       text run at (1,0) width 34: "abc"
-caret: position 3 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of body
diff --git a/LayoutTests/platform/mac/fast/forms/textfield-overflow-expected.txt b/LayoutTests/platform/mac/fast/forms/textfield-overflow-expected.txt
index 0c2c38e..408b30d 100644
--- a/LayoutTests/platform/mac/fast/forms/textfield-overflow-expected.txt
+++ b/LayoutTests/platform/mac/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 119x4
   RenderBlock {DIV} at (3,3) size 119x4
-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/mac/fast/frames/take-focus-from-iframe-expected.txt b/LayoutTests/platform/mac/fast/frames/take-focus-from-iframe-expected.txt
index e0c3c46..bd04b48 100644
--- a/LayoutTests/platform/mac/fast/frames/take-focus-from-iframe-expected.txt
+++ b/LayoutTests/platform/mac/fast/frames/take-focus-from-iframe-expected.txt
@@ -22,4 +22,4 @@ layer at (379,73) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
     RenderText {#text} at (1,0) size 26x13
       text run at (1,0) width 26: "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/mac/fast/inline-block/14498-positionForCoordinates-expected.txt b/LayoutTests/platform/mac/fast/inline-block/14498-positionForCoordinates-expected.txt
index 45e401f..114e2db 100644
--- a/LayoutTests/platform/mac/fast/inline-block/14498-positionForCoordinates-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/fast/inline/25277-2-expected.txt b/LayoutTests/platform/mac/fast/inline/25277-2-expected.txt
index 5061321..4e9086b 100644
--- a/LayoutTests/platform/mac/fast/inline/25277-2-expected.txt
+++ b/LayoutTests/platform/mac/fast/inline/25277-2-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,36) size 50x18
         RenderText {#text} at (0,0) size 263x18
           text run at (0,0) width 263: "The caret should be at the end of this line."
-caret: position 44 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 44 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/inline/25277-expected.txt b/LayoutTests/platform/mac/fast/inline/25277-expected.txt
index 5061321..4e9086b 100644
--- a/LayoutTests/platform/mac/fast/inline/25277-expected.txt
+++ b/LayoutTests/platform/mac/fast/inline/25277-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,36) size 50x18
         RenderText {#text} at (0,0) size 263x18
           text run at (0,0) width 263: "The caret should be at the end of this line."
-caret: position 44 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 44 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/lists/drag-into-marker-expected.txt b/LayoutTests/platform/mac/fast/lists/drag-into-marker-expected.txt
index 948f59d..b2bc9e9 100644
--- a/LayoutTests/platform/mac/fast/lists/drag-into-marker-expected.txt
+++ b/LayoutTests/platform/mac/fast/lists/drag-into-marker-expected.txt
@@ -21,5 +21,5 @@ layer at (0,0) size 800x600
           text run at (764,36) width 4: " "
           text run at (0,54) width 371: "this test drags a bit of text over the list marker and drops it. "
           text run at (371,54) width 386: "It should be pasted into the list item, which is contenteditable."
-selection start: position 0 of child 0 {#text} of child 0 {LI} of child 1 {UL} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 6 of child 0 {#text} of child 0 {LI} of child 1 {UL} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {#text} of child 0 {LI} of child 1 {UL} of body
+selection end:   position 6 of child 0 {#text} of child 0 {LI} of child 1 {UL} of body
diff --git a/LayoutTests/platform/mac/fast/lists/markers-in-selection-expected.txt b/LayoutTests/platform/mac/fast/lists/markers-in-selection-expected.txt
index 461ece0..24752f1 100644
--- a/LayoutTests/platform/mac/fast/lists/markers-in-selection-expected.txt
+++ b/LayoutTests/platform/mac/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 1 {HTML} of document
-selection end:   position 1 of child 21 {HR} of child 1 {BODY} of child 1 {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/mac/fast/overflow/image-selection-highlight-expected.txt b/LayoutTests/platform/mac/fast/overflow/image-selection-highlight-expected.txt
index ca93c55..d6505db 100644
--- a/LayoutTests/platform/mac/fast/overflow/image-selection-highlight-expected.txt
+++ b/LayoutTests/platform/mac/fast/overflow/image-selection-highlight-expected.txt
@@ -45,5 +45,5 @@ layer at (8,122) size 100x200 clip at (8,122) size 85x200 scrollY 40 scrollHeigh
       text run at (0,234) width 53: "ultricies."
       text run at (0,252) width 79: "Pellentesque"
       text run at (0,270) 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/mac/fast/overflow/overflow-focus-ring-expected.txt b/LayoutTests/platform/mac/fast/overflow/overflow-focus-ring-expected.txt
index 4b37ff6..23b3224 100644
--- a/LayoutTests/platform/mac/fast/overflow/overflow-focus-ring-expected.txt
+++ b/LayoutTests/platform/mac/fast/overflow/overflow-focus-ring-expected.txt
@@ -45,5 +45,5 @@ layer at (8,26) size 500x400 scrollWidth 501 scrollHeight 648
       text run at (0,594) width 500: "............................................................................................................................."
       text run at (0,612) width 500: "............................................................................................................................."
       text run at (0,630) 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/mac/fast/overflow/overflow-text-hit-testing-expected.txt b/LayoutTests/platform/mac/fast/overflow/overflow-text-hit-testing-expected.txt
index 9c837eb..02e99fd 100644
--- a/LayoutTests/platform/mac/fast/overflow/overflow-text-hit-testing-expected.txt
+++ b/LayoutTests/platform/mac/fast/overflow/overflow-text-hit-testing-expected.txt
@@ -22,4 +22,4 @@ layer at (0,0) size 210x33 clip at (0,0) size 210x18 scrollX 33 scrollWidth 243
   RenderBlock {DIV} at (0,0) size 210x33
     RenderText {#text} at (0,0) size 243x18
       text run at (0,0) width 243: "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/mac/fast/reflections/inline-crash-expected.txt b/LayoutTests/platform/mac/fast/reflections/inline-crash-expected.txt
index adc2c82..1e3980c 100644
--- a/LayoutTests/platform/mac/fast/reflections/inline-crash-expected.txt
+++ b/LayoutTests/platform/mac/fast/reflections/inline-crash-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
             text run at (178,0) width 55: "this span"
         RenderText {#text} at (233,0) size 441x18
           text run at (233,0) width 441: " should not have a reflection, and selecting it should not cause a crash."
-selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 2 {P} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 2 {P} 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 {P} of body
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 2 {P} of body
diff --git a/LayoutTests/platform/mac/fast/repaint/4776765-expected.txt b/LayoutTests/platform/mac/fast/repaint/4776765-expected.txt
index 014f422..4d412d8 100644
--- a/LayoutTests/platform/mac/fast/repaint/4776765-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/4776765-expected.txt
@@ -14,4 +14,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (0,0) size 0x18
         RenderBlock {DIV} at (0,36) size 784x18
           RenderBR {BR} at (0,0) size 0x18
-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/mac/fast/repaint/block-selection-gap-in-composited-layer-expected.txt b/LayoutTests/platform/mac/fast/repaint/block-selection-gap-in-composited-layer-expected.txt
index aff7dbf..a8a924a 100644
--- a/LayoutTests/platform/mac/fast/repaint/block-selection-gap-in-composited-layer-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/block-selection-gap-in-composited-layer-expected.txt
@@ -10,5 +10,5 @@ layer at (58,50) size 734x18
 layer at (58,50) size 100x100
   RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
     RenderBR {BR} at (0,0) size 0x18
-selection start: position 0 of child 0 {BR} of child 1 {DIV} 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 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {DIV} of body
+selection end:   position 1 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/repaint/caret-outside-block-expected.txt b/LayoutTests/platform/mac/fast/repaint/caret-outside-block-expected.txt
index 9a48a3e..06f7796 100644
--- a/LayoutTests/platform/mac/fast/repaint/caret-outside-block-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/caret-outside-block-expected.txt
@@ -6,4 +6,4 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,0) size 784x18
         RenderText {#text} at (525,0) size 259x18
           text run at (525,0) width 259: "The caret should be at the end of this line"
-caret: position 43 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 43 of child 0 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/repaint/delete-into-nested-block-expected.txt b/LayoutTests/platform/mac/fast/repaint/delete-into-nested-block-expected.txt
index 594365d..5bd0944 100644
--- a/LayoutTests/platform/mac/fast/repaint/delete-into-nested-block-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/delete-into-nested-block-expected.txt
@@ -16,4 +16,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x18
           RenderText {#text} at (0,0) size 31x18
             text run at (0,0) width 31: "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/mac/fast/repaint/inline-outline-repaint-expected.txt b/LayoutTests/platform/mac/fast/repaint/inline-outline-repaint-expected.txt
index e3d7574..999467b 100644
--- a/LayoutTests/platform/mac/fast/repaint/inline-outline-repaint-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/inline-outline-repaint-expected.txt
@@ -37,4 +37,4 @@ layer at (0,0) size 800x210
             text run at (84,0) width 4: " "
             text run at (0,18) width 33: "dolor"
             text run at (33,18) width 4: " "
-caret: position 18 of child 0 {#text} of child 1 {SPAN} of child 7 {DIV} of child 1 {BODY} of child 1 {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/mac/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt b/LayoutTests/platform/mac/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt
index 02615d7..26853e9 100644
--- a/LayoutTests/platform/mac/fast/repaint/no-caret-repaint-in-non-content-editable-element-expected.txt
+++ b/LayoutTests/platform/mac/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,34) size 784x18
         RenderText {#text} at (0,0) size 226x18
           text run at (0,0) width 226: "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/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt b/LayoutTests/platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt
index 10ff5e5..494381f 100644
--- a/LayoutTests/platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
 layer at (13,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/repaint/selected-replaced-expected.txt b/LayoutTests/platform/mac/fast/repaint/selected-replaced-expected.txt
index 76e7a3f..c1a770c 100644
--- a/LayoutTests/platform/mac/fast/repaint/selected-replaced-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/selected-replaced-expected.txt
@@ -20,5 +20,5 @@ layer at (0,0) size 800x294
         RenderText {#text} at (0,0) size 0x0
 layer at (8,50) size 214x232
   RenderImage {IMG} at (0,0) size 214x232
-selection start: position 0 of child 3 {IMG} of child 1 {BODY} of child 1 {HTML} of document
-selection end:   position 1 of child 3 {IMG} of child 1 {BODY} of child 1 {HTML} of document
+selection start: position 0 of child 3 {IMG} of body
+selection end:   position 1 of child 3 {IMG} of body
diff --git a/LayoutTests/platform/mac/fast/repaint/selection-after-delete-expected.txt b/LayoutTests/platform/mac/fast/repaint/selection-after-delete-expected.txt
index 4ae46e7..4e7e946 100644
--- a/LayoutTests/platform/mac/fast/repaint/selection-after-delete-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/selection-after-delete-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x600
           text run at (0,18) width 177: "should be inside the red div."
       RenderBlock {DIV} at (30,66) size 152x20 [border: (1px solid #FF0000)]
         RenderBR {BR} at (1,1) size 0x18
-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/mac/fast/repaint/selection-after-remove-expected.txt b/LayoutTests/platform/mac/fast/repaint/selection-after-remove-expected.txt
index 5f70007..484da9a 100644
--- a/LayoutTests/platform/mac/fast/repaint/selection-after-remove-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/selection-after-remove-expected.txt
@@ -15,5 +15,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (36,1) size 37x18
           text run at (36,1) width 37: "world"
         RenderBR {BR} at (73,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/mac/fast/repaint/subtree-root-skipped-expected.txt b/LayoutTests/platform/mac/fast/repaint/subtree-root-skipped-expected.txt
index 54d4981..fa4aae2 100644
--- a/LayoutTests/platform/mac/fast/repaint/subtree-root-skipped-expected.txt
+++ b/LayoutTests/platform/mac/fast/repaint/subtree-root-skipped-expected.txt
@@ -19,4 +19,4 @@ layer at (13,13) size 119x13
       text run at (1,0) width 26: "PASS"
 layer at (8,288) size 10x20
   RenderBlock (positioned) {DIV} at (0,280) size 10x20 [bgcolor=#ADD8E6]
-caret: position 0 of child 0 {#text} of child 3 {DIV} 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 3 {DIV} of child 1 {DIV} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/replaced/selection-rect-expected.txt b/LayoutTests/platform/mac/fast/replaced/selection-rect-expected.txt
index 18ff3cd..5ce0992 100644
--- a/LayoutTests/platform/mac/fast/replaced/selection-rect-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/fast/replaced/selection-rect-in-table-cell-expected.txt b/LayoutTests/platform/mac/fast/replaced/selection-rect-in-table-cell-expected.txt
index 7e5934c..eff0a5b 100644
--- a/LayoutTests/platform/mac/fast/replaced/selection-rect-in-table-cell-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/fast/replaced/selection-rect-transform-expected.txt b/LayoutTests/platform/mac/fast/replaced/selection-rect-transform-expected.txt
index e9a8bf0..4b8ea0e 100644
--- a/LayoutTests/platform/mac/fast/replaced/selection-rect-transform-expected.txt
+++ b/LayoutTests/platform/mac/fast/replaced/selection-rect-transform-expected.txt
@@ -18,5 +18,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x0
 layer at (58,144) size 100x100
   RenderImage {IMG} at (50,50) size 100x100 [bgcolor=#FF0000]
-selection start: position 0 of child 1 {IMG} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 1 of child 1 {IMG} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {IMG} of child 4 {DIV} of body
+selection end:   position 1 of child 1 {IMG} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/selectors/159-expected.txt b/LayoutTests/platform/mac/fast/selectors/159-expected.txt
index fcf1af2..b149574 100644
--- a/LayoutTests/platform/mac/fast/selectors/159-expected.txt
+++ b/LayoutTests/platform/mac/fast/selectors/159-expected.txt
@@ -6,5 +6,5 @@ layer at (0,0) size 800x50
       RenderBlock {P} at (0,0) size 784x18
         RenderText {#text} at (0,0) size 503x18
           text run at (0,0) width 503: "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 1 {HTML} of document
-selection end:   position 79 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 1 {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/mac/fast/selectors/177a-expected.txt b/LayoutTests/platform/mac/fast/selectors/177a-expected.txt
index b66cac8..c2d4017 100644
--- a/LayoutTests/platform/mac/fast/selectors/177a-expected.txt
+++ b/LayoutTests/platform/mac/fast/selectors/177a-expected.txt
@@ -6,5 +6,5 @@ layer at (0,0) size 800x50
       RenderBlock {P} at (0,0) size 784x18
         RenderText {#text} at (0,0) size 283x18
           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 1 {HTML} of document
-selection end:   position 47 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 1 {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/mac/fast/table/click-near-anonymous-table-expected.txt b/LayoutTests/platform/mac/fast/table/click-near-anonymous-table-expected.txt
index 51ee74d..612092f 100644
--- a/LayoutTests/platform/mac/fast/table/click-near-anonymous-table-expected.txt
+++ b/LayoutTests/platform/mac/fast/table/click-near-anonymous-table-expected.txt
@@ -39,4 +39,4 @@ layer at (0,0) size 800x600
               RenderTableCell (anonymous) at (0,0) size 176x18 [r=0 c=0 rs=1 cs=1]
                 RenderText {#text} at (0,0) size 176x18
                   text run at (0,0) width 176: "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/mac/fast/text/atsui-kerning-and-ligatures-expected.txt b/LayoutTests/platform/mac/fast/text/atsui-kerning-and-ligatures-expected.txt
index 911e270..4b40093 100644
--- a/LayoutTests/platform/mac/fast/text/atsui-kerning-and-ligatures-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/atsui-kerning-and-ligatures-expected.txt
@@ -22,5 +22,5 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,0) size 551x28
               text run at (0,0) width 551: "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/mac/fast/text/atsui-partial-selection-expected.txt b/LayoutTests/platform/mac/fast/text/atsui-partial-selection-expected.txt
index 10d42ea..617bd1e 100644
--- a/LayoutTests/platform/mac/fast/text/atsui-partial-selection-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/atsui-partial-selection-expected.txt
@@ -28,5 +28,5 @@ layer at (0,0) size 800x600
           RenderText {#text} at (243,0) size 88x18
             text run at (243,0) width 88: " 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/mac/fast/text/atsui-pointtooffset-calls-cg-expected.txt b/LayoutTests/platform/mac/fast/text/atsui-pointtooffset-calls-cg-expected.txt
index 228c82c..2f2b56d 100644
--- a/LayoutTests/platform/mac/fast/text/atsui-pointtooffset-calls-cg-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/atsui-pointtooffset-calls-cg-expected.txt
@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
           text run at (62,18) width 632: " by clicking the X and verifying that the correct caret position (13) is reported to the editing delegate."
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 13 of child 2 {#text} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 13 of child 2 {#text} of body
diff --git a/LayoutTests/platform/mac/fast/text/atsui-rtl-override-selection-expected.txt b/LayoutTests/platform/mac/fast/text/atsui-rtl-override-selection-expected.txt
index ccea5ab..9ad35ed 100644
--- a/LayoutTests/platform/mac/fast/text/atsui-rtl-override-selection-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/atsui-rtl-override-selection-expected.txt
@@ -14,5 +14,5 @@ layer at (0,0) size 800x600
           text run at (0,0) width 281: "\x{201C}remips\x{201D} should be highlighted in the above."
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-selection start: position 3 of child 0 {#text} of child 3 {BDO} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 9 of child 0 {#text} of child 3 {BDO} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 3 of child 0 {#text} of child 3 {BDO} of body
+selection end:   position 9 of child 0 {#text} of child 3 {BDO} of body
diff --git a/LayoutTests/platform/mac/fast/text/delete-hard-break-character-expected.txt b/LayoutTests/platform/mac/fast/text/delete-hard-break-character-expected.txt
index 6e72012..308e174 100644
--- a/LayoutTests/platform/mac/fast/text/delete-hard-break-character-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/delete-hard-break-character-expected.txt
@@ -20,4 +20,4 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 0x18
           text run at (0,0) width 0: " "
         RenderBR {BR} at (0,18) size 0x18
-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/mac/fast/text/in-rendered-text-rtl-expected.txt b/LayoutTests/platform/mac/fast/text/in-rendered-text-rtl-expected.txt
index c085d20..22bbd91 100644
--- a/LayoutTests/platform/mac/fast/text/in-rendered-text-rtl-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/in-rendered-text-rtl-expected.txt
@@ -27,4 +27,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 7 {SPAN} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {#text} of child 7 {SPAN} of body
diff --git a/LayoutTests/platform/mac/fast/text/international/khmer-selection-expected.txt b/LayoutTests/platform/mac/fast/text/international/khmer-selection-expected.txt
index 4916abb..893107d 100644
--- a/LayoutTests/platform/mac/fast/text/international/khmer-selection-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/international/khmer-selection-expected.txt
@@ -43,4 +43,4 @@ layer at (0,0) size 800x120
             text run at (704,20) width 80: "test_shell"
         RenderText {#text} at (0,36) size 252x18
           text run at (0,36) width 252: "shouldn't trigger any assertions or crash."
-caret: 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
+caret: position 0 of child 0 {#text} of child 0 {B} of child 1 {NOBR} of child 1 {P} of body
diff --git a/LayoutTests/platform/mac/fast/text/international/rtl-caret-expected.txt b/LayoutTests/platform/mac/fast/text/international/rtl-caret-expected.txt
index 17df967..3e39095 100644
--- a/LayoutTests/platform/mac/fast/text/international/rtl-caret-expected.txt
+++ b/LayoutTests/platform/mac/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,1) size 64x18
           text run at (0,1) width 64 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/mac/fast/text/justified-selection-at-edge-expected.txt b/LayoutTests/platform/mac/fast/text/justified-selection-at-edge-expected.txt
index 274f4a2..1e0cf20 100644
--- a/LayoutTests/platform/mac/fast/text/justified-selection-at-edge-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/justified-selection-at-edge-expected.txt
@@ -23,5 +23,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (3,3) size 250x36
           text run at (3,3) width 250: "Lorem ipsum dolor sit amet,"
           text run at (3,21) width 173: "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/mac/fast/text/justified-selection-expected.txt b/LayoutTests/platform/mac/fast/text/justified-selection-expected.txt
index 4f21c23..f48d986 100644
--- a/LayoutTests/platform/mac/fast/text/justified-selection-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/justified-selection-expected.txt
@@ -29,5 +29,5 @@ layer at (0,0) size 800x600
         RenderText {#text} at (3,3) size 100x36
           text run at (3,3) width 100: "Lo re mi"
           text run at (3,21) 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/mac/fast/text/justified-text-rect-expected.txt b/LayoutTests/platform/mac/fast/text/justified-text-rect-expected.txt
index 7482c5a..cf16c42 100644
--- a/LayoutTests/platform/mac/fast/text/justified-text-rect-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/justified-text-rect-expected.txt
@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
           text run at (0,0) width 76: "38,512,4,18"
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-caret: position 8 of child 0 {#text} of child 3 {P} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 8 of child 0 {#text} of child 3 {P} of body
diff --git a/LayoutTests/platform/mac/fast/text/selection-painted-separately-expected.txt b/LayoutTests/platform/mac/fast/text/selection-painted-separately-expected.txt
index edf3036..711504c 100644
--- a/LayoutTests/platform/mac/fast/text/selection-painted-separately-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/selection-painted-separately-expected.txt
@@ -13,5 +13,5 @@ layer at (8,8) size 100x80
       RenderText {#text} at (0,0) size 100x40
         text run at (0,0) width 100: "xxxxx"
         text run at (0,20) width 100: "xxxxx"
-selection start: position 6 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 5 of child 0 {#text} of child 2 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 6 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 2 {DIV} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/text/should-use-atsui-expected.txt b/LayoutTests/platform/mac/fast/text/should-use-atsui-expected.txt
index afa15b9..0c65de7 100644
--- a/LayoutTests/platform/mac/fast/text/should-use-atsui-expected.txt
+++ b/LayoutTests/platform/mac/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/mac/fast/text/textIteratorNilRenderer-expected.txt b/LayoutTests/platform/mac/fast/text/textIteratorNilRenderer-expected.txt
index a7ee7ae..5c7bdee 100644
--- a/LayoutTests/platform/mac/fast/text/textIteratorNilRenderer-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/textIteratorNilRenderer-expected.txt
@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
           RenderBR {BR} at (392,0) size 0x18
 layer at (235,13) size 219x13
   RenderBlock {DIV} at (3,3) size 219x13
-caret: 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 {FORM} of child 1 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+caret: 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 {FORM} of child 1 {CENTER} of body
diff --git a/LayoutTests/platform/mac/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt b/LayoutTests/platform/mac/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt
index 27e56ed..77812dc 100644
--- a/LayoutTests/platform/mac/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt
+++ b/LayoutTests/platform/mac/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt
@@ -45,5 +45,5 @@ layer at (8,109) size 108x83 clip at (12,113) size 100x75
       text run at (84,49) width 0: " "
       text run at (4,64) width 32: "box."
       text run at (36,64) 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/mac/fast/transforms/transformed-caret-expected.txt b/LayoutTests/platform/mac/fast/transforms/transformed-caret-expected.txt
index 1c03edf..7ae007c 100644
--- a/LayoutTests/platform/mac/fast/transforms/transformed-caret-expected.txt
+++ b/LayoutTests/platform/mac/fast/transforms/transformed-caret-expected.txt
@@ -14,4 +14,4 @@ layer at (88,132) size 302x202
   RenderBlock {DIV} at (80,116) size 302x202 [border: (1px solid #000000)]
     RenderText {#text} at (1,1) size 174x92
       text run at (1,1) width 174: "Caret"
-caret: position 6 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 1 {HTML} of document
+caret: position 6 of child 0 {#text} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/mac/fast/transforms/transformed-focused-text-input-expected.txt b/LayoutTests/platform/mac/fast/transforms/transformed-focused-text-input-expected.txt
index a07ac86..bedede0 100644
--- a/LayoutTests/platform/mac/fast/transforms/transformed-focused-text-input-expected.txt
+++ b/LayoutTests/platform/mac/fast/transforms/transformed-focused-text-input-expected.txt
@@ -9,4 +9,4 @@ layer at (8,8) size 784x23
     RenderText {#text} at (0,0) size 0x0
 layer at (13,13) size 119x13
   RenderBlock {DIV} at (3,3) size 119x13
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac/svg/custom/hit-test-with-br-expected.txt b/LayoutTests/platform/mac/svg/custom/hit-test-with-br-expected.txt
index 43c2c5c..fa539f4 100644
--- a/LayoutTests/platform/mac/svg/custom/hit-test-with-br-expected.txt
+++ b/LayoutTests/platform/mac/svg/custom/hit-test-with-br-expected.txt
@@ -12,4 +12,4 @@ layer at (0,0) size 800x95
         RenderSVGRoot {svg} at (8,68) size 720x15
           RenderPath {rect} at (8,68) size 720x15 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L720.00,0.00 L720.00,15.00 L0.00,15.00 Z"]
         RenderText {#text} at (0,0) size 0x0
-caret: position 0 of child 3 {br} of child 3 {body} of child 0 {html} of document
+caret: position 0 of child 3 {br} of body
diff --git a/LayoutTests/platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt b/LayoutTests/platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt
index b91e7ac..00d9274 100644
--- a/LayoutTests/platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt
+++ b/LayoutTests/platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt
@@ -19,5 +19,5 @@ layer at (18,182) size 390x115
     RenderBlock {div} at (0,0) size 390x115
       RenderText {#text} at (0,0) size 239x115
         text run at (0,0) width 239: "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/mac/svg/text/selection-background-color-expected.txt b/LayoutTests/platform/mac/svg/text/selection-background-color-expected.txt
index 1735947..6c5c9a2 100644
--- a/LayoutTests/platform/mac/svg/text/selection-background-color-expected.txt
+++ b/LayoutTests/platform/mac/svg/text/selection-background-color-expected.txt
@@ -17,5 +17,5 @@ layer at (0,0) size 800x236
               RenderSVGInlineText {#text} at (0,0) size 245x23
                 chunk 1 text run 1 at (0.00,60.00) startOffset 0 endOffset 28 width 245.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/mac/svg/text/selection-styles-expected.txt b/LayoutTests/platform/mac/svg/text/selection-styles-expected.txt
index 4f7d121..66e34a7 100644
--- a/LayoutTests/platform/mac/svg/text/selection-styles-expected.txt
+++ b/LayoutTests/platform/mac/svg/text/selection-styles-expected.txt
@@ -49,5 +49,5 @@ layer at (0,0) size 800x504
             RenderSVGInlineText {#text} at (0,0) size 589x23
               chunk 1 text run 1 at (0.00,390.00) startOffset 0 endOffset 73 width 589.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
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 0ab154d..ee79516 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+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
+
+        This requires updating the results of many layout tests,
+        but has no functional change.
+
+        * rendering/RenderTreeAsText.cpp:
+        (WebCore::nodePosition):
+
 2010-07-14  Kent Tamura  <tkent at chromium.org>
 
         Reviewed by Darin Fisher.
diff --git a/WebCore/rendering/RenderTreeAsText.cpp b/WebCore/rendering/RenderTreeAsText.cpp
index 04c4e4e..408015c 100644
--- a/WebCore/rendering/RenderTreeAsText.cpp
+++ b/WebCore/rendering/RenderTreeAsText.cpp
@@ -598,6 +598,7 @@ static String nodePosition(Node* node)
 {
     String result;
 
+    Element* body = node->document()->body();
     Node* parent;
     for (Node* n = node; n; n = parent) {
         parent = n->parentNode();
@@ -605,9 +606,14 @@ static String nodePosition(Node* node)
             parent = n->shadowParentNode();
         if (n != node)
             result += " of ";
-        if (parent)
+        if (parent) {
+            if (body && n == body) {
+                // We don't care what offset body may be in the document.
+                result += "body";
+                break;
+            }
             result += "child " + String::number(n->nodeIndex()) + " {" + getTagName(n) + "}";
-        else
+        } else
             result += "document";
     }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list