Commit d0295906 authored by ap@webkit.org's avatar ap@webkit.org

Reviewed by Dave Hyatt.

        <rdar://problem/6576889> REGRESSION (r35185): Cannot watch Flash movies on omg.yahoo.com

        The problem was caused by missing <head> element - we used to create it when moving a
        misplaced <style> element, but we now handle those in place. Other browsers always create
        a <head> element.

        There is no guarantee that a <head> element always exists - first, it can be removed with
        removeChild or innerHTML, and also, we don't currently create it for frameset documents, or
        for manually created ones (e.g. ImageDocument).

        Test: fast/parser/head-element-for-yahoo-player.html

WebKit:
        * dom/Document.cpp: (WebCore::Document::implicitClose): Create a <head> element for about:blank.
        A removed comment talked about rdar://3758785, but that problem doesn't re-occur even if this
        code is removed completely.

        * html/HTMLHtmlElement.cpp: (WebCore::HTMLHtmlElement::checkDTD): No longer allow <script>
        elements as children of <html>. This isn't directly related to this bug, but it was easier
        to fix both at once (IE and Firefox both don't allow such mispositioned <script> elements).

        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::handleError): Move <script> to <head> if <body> hasn't been created yet.
        Create a <head> it a <body> is created implicitly to contain some other element.
        (WebCore::HTMLParser::bodyCreateErrorCheck): Ensure that a <head> exists when <body> is
        explicitly present in source.
        (WebCore::HTMLParser::createHead): Do the work even if <html> element hasn't been created yet.

LayoutTests:
        * fast/parser/head-element-for-yahoo-player-expected.txt: Added.
        * fast/parser/head-element-for-yahoo-player.html: Added.
        Test the regression case (a misplaced <style> that used to create <head> implicitly).

        * editing/selection/select-all-005.html: Use a new index when selecting the body.

        * fast/dom/Document/document-write-doctype-expected.txt:
        * fast/dom/Document/resources/document-write-doctype.js:
        Removed checks for "Gecko quirk" of implicitly adding HEAD - that not a quirk, but standard
        behavior per HTML5.

        * editing/execCommand/create-list-1-expected.txt:
        * platform/mac/editing/deleting/4845371-expected.txt:
        * platform/mac/editing/deleting/4866671-expected.txt:
        * platform/mac/editing/deleting/4875189-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/5156801-2-expected.txt:
        * platform/mac/editing/deleting/5168598-expected.txt:
        * platform/mac/editing/deleting/5272440-expected.txt:
        * platform/mac/editing/deleting/5300379-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/delete-at-start-or-end-expected.txt:
        * platform/mac/editing/deleting/delete-block-table-expected.txt:
        * platform/mac/editing/deleting/delete-hr-expected.txt:
        * platform/mac/editing/deleting/delete-mixed-editable-content-001-expected.txt:
        * platform/mac/editing/deleting/delete-to-select-table-expected.txt:
        * platform/mac/editing/deleting/deletionUI-single-instance-expected.txt:
        * platform/mac/editing/deleting/merge-endOfParagraph-expected.txt:
        * platform/mac/editing/deleting/merge-no-br-expected.txt:
        * platform/mac/editing/deleting/merge-whitespace-pre-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/4916583-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/5119244-expected.txt:
        * platform/mac/editing/execCommand/5120591-expected.txt:
        * platform/mac/editing/execCommand/5136770-expected.txt:
        * platform/mac/editing/execCommand/5142012-1-expected.txt:
        * platform/mac/editing/execCommand/5142012-2-expected.txt:
        * platform/mac/editing/execCommand/5142012-3-expected.txt:
        * platform/mac/editing/execCommand/5144139-1-expected.txt:
        * platform/mac/editing/execCommand/5164796-expected.txt:
        * platform/mac/editing/execCommand/5207369-expected.txt:
        * platform/mac/editing/execCommand/5210032-expected.txt:
        * platform/mac/editing/execCommand/5432254-1-expected.txt:
        * platform/mac/editing/execCommand/5432254-2-expected.txt:
        * platform/mac/editing/execCommand/5481523-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/5700414-1-expected.txt:
        * platform/mac/editing/execCommand/5700414-2-expected.txt:
        * platform/mac/editing/execCommand/insert-list-empty-div-expected.txt:
        * platform/mac/editing/input/5576619-expected.txt:
        * platform/mac/editing/inserting/12882-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-2-expected.txt:
        * platform/mac/editing/inserting/5156401-2-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/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/typing-tab-designmode-forms-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/5027857-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/5134759-expected.txt:
        * platform/mac/editing/pasteboard/5156401-1-expected.txt:
        * platform/mac/editing/pasteboard/5247341-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/5601583-1-expected.txt:
        * platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt:
        * platform/mac/editing/pasteboard/input-field-1-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-start-blockquote-expected.txt:
        * platform/mac/editing/pasteboard/paste-unrendered-select-expected.txt:
        * platform/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt:
        * platform/mac/editing/pasteboard/select-element-1-expected.txt:
        * platform/mac/editing/selection/13804-expected.txt:
        * platform/mac/editing/selection/14971-expected.txt:
        * platform/mac/editing/selection/4397952-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/5136696-expected.txt:
        * platform/mac/editing/selection/5195166-1-expected.txt:
        * platform/mac/editing/selection/5195166-2-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/addRange-expected.txt:
        * platform/mac/editing/selection/caret-before-select-expected.txt:
        * platform/mac/editing/selection/contains-boundaries-expected.txt:
        * platform/mac/editing/selection/drag-select-1-expected.txt:
        * platform/mac/editing/selection/editable-html-element-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/mixed-editability-6-expected.txt:
        * platform/mac/editing/selection/mixed-editability-7-expected.txt:
        * platform/mac/editing/selection/move-by-sentence-linebreak-expected.txt:
        * platform/mac/editing/selection/select-all-005-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/wrapped-line-caret-1-expected.txt:
        * platform/mac/editing/selection/wrapped-line-caret-2-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/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/undo/5378473-expected.txt:
        * platform/mac/fast/block/float/relative-painted-twice-expected.txt:
        * platform/mac/fast/dom/delete-contents-expected.txt:
        * platform/mac/fast/events/context-no-deselect-expected.txt:
        * platform/mac/fast/events/label-focus-expected.txt:
        * platform/mac/fast/forms/input-appearance-focus-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/textfield-drag-into-disabled-expected.txt:
        * platform/mac/fast/forms/textfield-overflow-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/overflow/overflow-focus-ring-expected.txt:
        * platform/mac/fast/repaint/4776765-expected.txt:
        * platform/mac/fast/repaint/selection-after-delete-expected.txt:
        * platform/mac/fast/repaint/selection-after-remove-expected.txt:
        * platform/qt/editing/deleting/4845371-expected.txt:
        * platform/qt/editing/deleting/4866671-expected.txt:
        * platform/qt/editing/deleting/4875189-expected.txt:
        * platform/qt/editing/deleting/5026848-1-expected.txt:
        * platform/qt/editing/deleting/5026848-2-expected.txt:
        * platform/qt/editing/deleting/5026848-3-expected.txt:
        * platform/qt/editing/deleting/5032066-expected.txt:
        * platform/qt/editing/deleting/5091898-expected.txt:
        * platform/qt/editing/deleting/5099303-expected.txt:
        * platform/qt/editing/deleting/5115601-expected.txt:
        * platform/qt/editing/deleting/5126166-expected.txt:
        * platform/qt/editing/deleting/5144139-2-expected.txt:
        * platform/qt/editing/deleting/5156801-2-expected.txt:
        * platform/qt/editing/deleting/5168598-expected.txt:
        * platform/qt/editing/deleting/5272440-expected.txt:
        * platform/qt/editing/deleting/5300379-expected.txt:
        * platform/qt/editing/deleting/5390681-expected.txt:
        * platform/qt/editing/deleting/5408255-expected.txt:
        * platform/qt/editing/deleting/delete-at-start-or-end-expected.txt:
        * platform/qt/editing/deleting/delete-block-table-expected.txt:
        * platform/qt/editing/deleting/delete-hr-expected.txt:
        * platform/qt/editing/deleting/delete-link-1-expected.txt:
        * platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt:
        * platform/qt/editing/deleting/delete-to-select-table-expected.txt:
        * platform/qt/editing/deleting/deletionUI-single-instance-expected.txt:
        * platform/qt/editing/deleting/merge-endOfParagraph-expected.txt:
        * platform/qt/editing/deleting/merge-no-br-expected.txt:
        * platform/qt/editing/deleting/merge-whitespace-pre-expected.txt:
        * platform/qt/editing/execCommand/4641880-1-expected.txt:
        * platform/qt/editing/execCommand/4641880-2-expected.txt:
        * platform/qt/editing/execCommand/4747450-expected.txt:
        * platform/qt/editing/execCommand/4786404-1-expected.txt:
        * platform/qt/editing/execCommand/4786404-2-expected.txt:
        * platform/qt/editing/execCommand/4916402-expected.txt:
        * platform/qt/editing/execCommand/4916541-expected.txt:
        * platform/qt/editing/execCommand/4916583-expected.txt:
        * platform/qt/editing/execCommand/4920488-expected.txt:
        * platform/qt/editing/execCommand/4920742-1-expected.txt:
        * platform/qt/editing/execCommand/4924441-expected.txt:
        * platform/qt/editing/execCommand/5049671-expected.txt:
        * platform/qt/editing/execCommand/5062376-expected.txt:
        * platform/qt/editing/execCommand/5080333-1-expected.txt:
        * platform/qt/editing/execCommand/5080333-2-expected.txt:
        * platform/qt/editing/execCommand/5119244-expected.txt:
        * platform/qt/editing/execCommand/5120591-expected.txt:
        * platform/qt/editing/execCommand/5136770-expected.txt:
        * platform/qt/editing/execCommand/5142012-1-expected.txt:
        * platform/qt/editing/execCommand/5142012-2-expected.txt:
        * platform/qt/editing/execCommand/5142012-3-expected.txt:
        * platform/qt/editing/execCommand/5144139-1-expected.txt:
        * platform/qt/editing/execCommand/5164796-expected.txt:
        * platform/qt/editing/execCommand/5207369-expected.txt:
        * platform/qt/editing/execCommand/5210032-expected.txt:
        * platform/qt/editing/execCommand/5432254-1-expected.txt:
        * platform/qt/editing/execCommand/5432254-2-expected.txt:
        * platform/qt/editing/execCommand/insert-list-empty-div-expected.txt:
        * platform/qt/editing/inserting/12882-expected.txt:
        * platform/qt/editing/inserting/4840662-expected.txt:
        * platform/qt/editing/inserting/4875189-1-expected.txt:
        * platform/qt/editing/inserting/4875189-2-expected.txt:
        * platform/qt/editing/inserting/4959067-expected.txt:
        * platform/qt/editing/inserting/4960120-1-expected.txt:
        * platform/qt/editing/inserting/4960120-2-expected.txt:
        * platform/qt/editing/inserting/5002441-expected.txt:
        * platform/qt/editing/inserting/5058163-2-expected.txt:
        * platform/qt/editing/inserting/5156401-2-expected.txt:
        * platform/qt/editing/inserting/editable-html-element-expected.txt:
        * platform/qt/editing/inserting/editable-inline-element-expected.txt:
        * platform/qt/editing/inserting/edited-whitespace-1-expected.txt:
        * platform/qt/editing/inserting/editing-empty-divs-expected.txt:
        * platform/qt/editing/inserting/insert-before-link-1-expected.txt:
        * platform/qt/editing/pasteboard/4806874-expected.txt:
        * platform/qt/editing/pasteboard/4840662-expected.txt:
        * platform/qt/editing/pasteboard/4944770-1-expected.txt:
        * platform/qt/editing/pasteboard/4989774-expected.txt:
        * platform/qt/editing/pasteboard/5027857-expected.txt:
        * platform/qt/editing/pasteboard/5032095-expected.txt:
        * platform/qt/editing/pasteboard/5065605-expected.txt:
        * platform/qt/editing/pasteboard/5071074-2-expected.txt:
        * platform/qt/editing/pasteboard/5071074-expected.txt:
        * platform/qt/editing/pasteboard/5075944-2-expected.txt:
        * platform/qt/editing/pasteboard/5075944-3-expected.txt:
        * platform/qt/editing/pasteboard/5075944-expected.txt:
        * platform/qt/editing/pasteboard/5134759-expected.txt:
        * platform/qt/editing/pasteboard/5156401-1-expected.txt:
        * platform/qt/editing/pasteboard/5245519-expected.txt:
        * platform/qt/editing/pasteboard/5247341-expected.txt:
        * platform/qt/editing/pasteboard/5387578-expected.txt:
        * platform/qt/editing/pasteboard/5478250-expected.txt:
        * platform/qt/editing/pasteboard/5483567-expected.txt:
        * platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt:
        * platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt:
        * platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt:
        * platform/qt/editing/pasteboard/merge-after-delete-expected.txt:
        * platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt:
        * platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt:
        * platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt:
        * platform/qt/editing/selection/13804-expected.txt:
        * platform/qt/editing/selection/4397952-expected.txt:
        * platform/qt/editing/selection/4818145-expected.txt:
        * platform/qt/editing/selection/4866671-expected.txt:
        * platform/qt/editing/selection/4889598-expected.txt:
        * platform/qt/editing/selection/4895428-2-expected.txt:
        * platform/qt/editing/selection/4895428-3-expected.txt:
        * platform/qt/editing/selection/4932260-1-expected.txt:
        * platform/qt/editing/selection/4932260-2-expected.txt:
        * platform/qt/editing/selection/4932260-3-expected.txt:
        * platform/qt/editing/selection/4960116-expected.txt:
        * platform/qt/editing/selection/4983858-expected.txt:
        * platform/qt/editing/selection/5007143-2-expected.txt:
        * platform/qt/editing/selection/5007143-expected.txt:
        * platform/qt/editing/selection/5076323-1-expected.txt:
        * platform/qt/editing/selection/5076323-2-expected.txt:
        * platform/qt/editing/selection/5076323-3-expected.txt:
        * platform/qt/editing/selection/5081257-1-expected.txt:
        * platform/qt/editing/selection/5081257-2-expected.txt:
        * platform/qt/editing/selection/5099303-expected.txt:
        * platform/qt/editing/selection/5136696-expected.txt:
        * platform/qt/editing/selection/5195166-1-expected.txt:
        * platform/qt/editing/selection/5195166-2-expected.txt:
        * platform/qt/editing/selection/5234383-1-expected.txt:
        * platform/qt/editing/selection/5234383-2-expected.txt:
        * platform/qt/editing/selection/5240265-expected.txt:
        * platform/qt/editing/selection/addRange-expected.txt:
        * platform/qt/editing/selection/caret-before-select-expected.txt:
        * platform/qt/editing/selection/editable-html-element-expected.txt:
        * platform/qt/editing/selection/mixed-editability-6-expected.txt:
        * platform/qt/editing/selection/mixed-editability-7-expected.txt:
        * platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt:
        * platform/qt/editing/selection/select-all-005-expected.txt:
        * platform/qt/editing/selection/table-caret-1-expected.txt:
        * platform/qt/editing/selection/table-caret-2-expected.txt:
        * platform/qt/editing/selection/table-caret-3-expected.txt:
        * platform/qt/editing/style/4916887-expected.txt:
        * platform/qt/editing/style/5017613-1-expected.txt:
        * platform/qt/editing/style/5017613-2-expected.txt:
        * platform/qt/editing/style/5046875-1-expected.txt:
        * platform/qt/editing/style/5046875-2-expected.txt:
        * platform/qt/editing/style/5065910-expected.txt:
        * platform/qt/editing/style/5084241-expected.txt:
        * platform/qt/editing/style/5228141-expected.txt:
        * platform/qt/editing/style/5279521-expected.txt:
        * platform/qt/editing/style/font-family-with-space-expected.txt:
        * platform/qt/editing/style/fontsize-1-expected.txt:
        * platform/qt/editing/style/highlight-expected.txt:
        * platform/qt/editing/style/non-inheritable-styles-expected.txt:
        * platform/qt/editing/undo/5378473-expected.txt:
        * platform/qt/fast/dom/delete-contents-expected.txt:
        * platform/qt/fast/events/label-focus-expected.txt:
        * platform/qt/fast/forms/input-appearance-focus-expected.txt:
        * platform/qt/fast/forms/input-maxlength-2-expected.txt:
        * platform/qt/fast/forms/input-text-click-inside-expected.txt:
        * platform/qt/fast/forms/input-text-option-delete-expected.txt:
        * platform/qt/fast/forms/input-text-self-emptying-click-expected.txt:
        * platform/qt/fast/forms/textfield-drag-into-disabled-expected.txt:
        * platform/qt/fast/forms/textfield-overflow-expected.txt:
        * platform/qt/fast/overflow/overflow-focus-ring-expected.txt:
        * platform/qt/fast/repaint/4776765-expected.txt:
        * platform/qt/fast/repaint/selection-after-delete-expected.txt:
        * platform/qt/fast/repaint/selection-after-remove-expected.txt:
        * platform/win/editing/deleting/5168598-expected.txt:
        * platform/win/editing/inserting/4960120-1-expected.txt:
        * platform/win/editing/inserting/5607069-2-expected.txt:
        * platform/win/editing/inserting/5607069-3-expected.txt:
        * platform/win/editing/inserting/typing-tab-designmode-forms-expected.txt:
        * platform/win/editing/pasteboard/4806874-expected.txt:
        * platform/win/editing/selection/4895428-3-expected.txt:
        * platform/win/editing/selection/5136696-expected.txt:
        * platform/win/editing/selection/drag-select-1-expected.txt:
        * platform/win/fast/events/context-no-deselect-expected.txt:
        * platform/win/fast/events/label-focus-expected.txt:
        * platform/win/fast/forms/input-appearance-focus-expected.txt:
        * platform/win/fast/forms/input-text-click-inside-expected.txt:
        * platform/win/fast/forms/input-text-click-outside-expected.txt:
        * platform/win/fast/forms/input-text-double-click-expected.txt:
        * platform/win/fast/forms/input-text-drag-down-expected.txt:
        * platform/win/fast/forms/input-text-option-delete-expected.txt:
        * platform/win/fast/forms/input-text-scroll-left-on-blur-expected.txt:
        * platform/win/fast/forms/input-text-self-emptying-click-expected.txt:
        * platform/win/fast/forms/textfield-drag-into-disabled-expected.txt:
        * platform/win/fast/forms/textfield-overflow-expected.txt:
        Updated BODY element index in test output (for some tests, it increased because of the
        implicitly added <head>, and for others, it decreased because mispositoned <script> is being
        moved into <head>).

        * webarchive/adopt-attribute-styled-body-webarchive-expected.webarchive:
        * webarchive/archive-empty-frame-dom-expected.webarchive:
        Updated to include the implicitly added <head> elements.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 28ce677a
This diff is collapsed.
...@@ -26,4 +26,4 @@ layer at (0,0) size 800x600 ...@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
RenderBlock (anonymous) at (0,68) size 784x18 RenderBlock (anonymous) at (0,68) size 784x18
RenderText {#text} at (0,0) size 102x18 RenderText {#text} at (0,0) size 102x18
text run at (0,0) width 102: "Paragraph Two." text run at (0,0) width 102: "Paragraph Two."
caret: position 0 of child 0 {LI} of child 2 {OL} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 0 of child 0 {LI} of child 2 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
if (window.layoutTestController) if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks(); layoutTestController.dumpEditingCallbacks();
var e = document.getElementById("html"); var e = document.getElementById("html");
window.getSelection().setBaseAndExtent(e, 0, e, 1); window.getSelection().setBaseAndExtent(e, 1, e, 2);
</script> </script>
</body></html> </body></html>
\ No newline at end of file
...@@ -6,11 +6,11 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ...@@ -6,11 +6,11 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
about:blank is quirksmode by default about:blank is quirksmode by default
PASS iframeDocument.compatMode is "BackCompat" PASS iframeDocument.compatMode is "BackCompat"
ensure that about:blank's DOM has an html and body element ensure that about:blank's DOM has an html and body element
PASS treeAsString(iframeDocument) is "#document [HTML [BODY]]" PASS treeAsString(iframeDocument) is "#document [HTML [HEAD, BODY]]"
writing a doctype as the first document.write can change the document to standards writing a doctype as the first document.write can change the document to standards
PASS iframeDocument.compatMode is "CSS1Compat" PASS iframeDocument.compatMode is "CSS1Compat"
ensure the written DOM has an html and body element ensure the written DOM has an html and body element
PASS treeAsString(iframeDocument) is "#document [html, HTML [BODY [#text]]]" PASS treeAsString(iframeDocument) is "#document [html, HTML [HEAD, BODY [#text]]]"
ensure that document.open clears the document but does not change the document pointer ensure that document.open clears the document but does not change the document pointer
PASS iframeDocument is iframe.contentWindow.document PASS iframeDocument is iframe.contentWindow.document
document.open should also clear the document and reset the doctype) document.open should also clear the document and reset the doctype)
...@@ -19,7 +19,7 @@ PASS iframeDocument.compatMode is "BackCompat" ...@@ -19,7 +19,7 @@ PASS iframeDocument.compatMode is "BackCompat"
document.write of "" should leave the document in quirksmode and add no content to the document document.write of "" should leave the document in quirksmode and add no content to the document
PASS iframeDocument.compatMode is "BackCompat" PASS iframeDocument.compatMode is "BackCompat"
PASS treeAsString(iframeDocument) is "#document" PASS treeAsString(iframeDocument) is "#document"
document.write calls can change the doctype until an is created document.write calls can change the doctype until an <html> is created
PASS iframeDocument.compatMode is "CSS1Compat" PASS iframeDocument.compatMode is "CSS1Compat"
reset the document again reset the document again
document.write of "<html>" should leave the document in quirksmode and add only an HTML element, no body document.write of "<html>" should leave the document in quirksmode and add only an HTML element, no body
......
description("Test that iframe.contentWindow.document.write() can convert a document to strict mode -- https://bugs.webkit.org/show_bug.cgi?id=24336"); description("Test that iframe.contentWindow.document.write() can convert a document to strict mode -- https://bugs.webkit.org/show_bug.cgi?id=24336");
// Test if we're on FF and all HTMLHTMLElements have an implicit HEAD element
function testForGeckoImplicitHeadQuirk(doc)
{
window.hasImplicitHeadQuirk = false;
if (doc.firstChild && doc.firstChild.firstChild)
window.hasImplicitHeadQuirk = doc.firstChild.firstChild.tagName == "HEAD";
}
function implicitHeadString()
{
return hasImplicitHeadQuirk ? "HEAD, " : "";
}
// Simple recurisve "give me a string to represent this tree" function // Simple recurisve "give me a string to represent this tree" function
function treeAsString(node) { function treeAsString(node) {
var string = node.nodeName; var string = node.nodeName;
...@@ -42,20 +29,17 @@ function doctypeNodeName(iframeDocument) { ...@@ -42,20 +29,17 @@ function doctypeNodeName(iframeDocument) {
var iframe = document.createElement("iframe"); var iframe = document.createElement("iframe");
document.body.appendChild(iframe); document.body.appendChild(iframe);
var iframeDocument = iframe.contentWindow.document; var iframeDocument = iframe.contentWindow.document;
testForGeckoImplicitHeadQuirk(iframeDocument);
if (hasImplicitHeadQuirk)
debug("WARNING: This browser adds implicit HEAD elements in every HTMLHTMLElement");
debug("about:blank is quirksmode by default") debug("about:blank is quirksmode by default")
shouldBeEqualToString("iframeDocument.compatMode", "BackCompat"); shouldBeEqualToString("iframeDocument.compatMode", "BackCompat");
debug("ensure that about:blank's DOM has an html and body element") debug("ensure that about:blank's DOM has an html and body element")
shouldBeEqualToString("treeAsString(iframeDocument)", "#document [HTML [" + implicitHeadString() + "BODY]]"); shouldBeEqualToString("treeAsString(iframeDocument)", "#document [HTML [HEAD, BODY]]");
iframeDocument.write("<!DocType html><html><body>test</body></html>"); iframeDocument.write("<!DocType html><html><body>test</body></html>");
debug("writing a doctype as the first document.write can change the document to standards") debug("writing a doctype as the first document.write can change the document to standards")
shouldBeEqualToString("iframeDocument.compatMode", "CSS1Compat"); shouldBeEqualToString("iframeDocument.compatMode", "CSS1Compat");
debug("ensure the written DOM has an html and body element") debug("ensure the written DOM has an html and body element")
shouldBeEqualToString("treeAsString(iframeDocument)", "#document [" + doctypeNodeName(iframeDocument) + ", HTML [" + implicitHeadString() + "BODY [#text]]]"); shouldBeEqualToString("treeAsString(iframeDocument)", "#document [" + doctypeNodeName(iframeDocument) + ", HTML [HEAD, BODY [#text]]]");
// document.open() doesn't seem to clear the document as expected in Gecko // document.open() doesn't seem to clear the document as expected in Gecko
// https://bugzilla.mozilla.org/show_bug.cgi?id=483908 // https://bugzilla.mozilla.org/show_bug.cgi?id=483908
...@@ -72,7 +56,7 @@ iframeDocument.write(""); ...@@ -72,7 +56,7 @@ iframeDocument.write("");
shouldBeEqualToString("iframeDocument.compatMode", "BackCompat"); shouldBeEqualToString("iframeDocument.compatMode", "BackCompat");
shouldBeEqualToString("treeAsString(iframeDocument)", "#document"); shouldBeEqualToString("treeAsString(iframeDocument)", "#document");
debug("document.write calls can change the doctype until an <html> is created") debug("document.write calls can change the doctype until an &lt;html> is created")
iframeDocument.write("<!DocType html><html><body>test</body></html>"); iframeDocument.write("<!DocType html><html><body>test</body></html>");
shouldBeEqualToString("iframeDocument.compatMode", "CSS1Compat"); shouldBeEqualToString("iframeDocument.compatMode", "CSS1Compat");
......
Test for rdar://problem/6576889: Cannot watch Flash movies on omg.yahoo.com.
Make sure that a HEAD element exists, at least in situations where Safari 3 would create one implicitly by moving a misplaced STYLE element.
PASS
<html>
<body>
<style>body {}</style>
<p>Test for <a href="rdar://problem/6576889">rdar://problem/6576889</a>: Cannot watch Flash movies on omg.yahoo.com.</p>
<p>Make sure that a HEAD element exists, at least in situations where Safari 3 would create one implicitly by moving a misplaced STYLE element.</p>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
document.write(document.getElementsByTagName("head").length ? "PASS" : "FAIL");
</script>
</body>
</html>
...@@ -26,4 +26,4 @@ layer at (0,0) size 800x600 ...@@ -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] RenderTableCell {TD} at (6,2) size 24x20 [r=0 c=1 rs=1 cs=1]
RenderText {#text} at (1,1) size 22x18 RenderText {#text} at (1,1) size 22x18
text run at (1,1) width 22: "baz" 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -19,4 +19,4 @@ layer at (0,0) size 800x600 ...@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
RenderBlock (anonymous) at (40,36) size 744x103 RenderBlock (anonymous) at (40,36) size 744x103
RenderInline {SPAN} at (0,0) size 76x14 RenderInline {SPAN} at (0,0) size 76x14
RenderImage {IMG} at (0,0) size 76x103 RenderImage {IMG} at (0,0) size 76x103
caret: position 0 of child 0 {BR} of child 1 {LI} of child 0 {UL} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 0 of child 0 {BR} of child 1 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -13,4 +13,4 @@ layer at (0,0) size 800x600 ...@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
RenderBR {BR} at (99,14) size 0x0 RenderBR {BR} at (99,14) size 0x0
RenderText {#text} at (0,18) size 102x18 RenderText {#text} at (0,18) size 102x18
text run at (0,18) width 102: "Paragraph Two." text run at (0,18) width 102: "Paragraph Two."
caret: position 14 of child 0 {#text} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 14 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -11,4 +11,4 @@ layer at (0,0) size 800x600 ...@@ -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." text run at (0,18) width 323: "shouldn't see anything in the editable region below."
RenderBlock {DIV} at (0,52) size 784x18 RenderBlock {DIV} at (0,52) size 784x18
RenderBR {BR} at (0,0) size 0x18 RenderBR {BR} at (0,0) size 0x18
caret: position 0 of child 0 {BR} of child 3 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -25,4 +25,4 @@ layer at (0,0) size 800x600 ...@@ -25,4 +25,4 @@ layer at (0,0) size 800x600
RenderText {#text} at (1,1) size 82x18 RenderText {#text} at (1,1) size 82x18
text run at (1,1) width 82: "Non-editable" text run at (1,1) width 82: "Non-editable"
RenderBlock (anonymous) at (0,24) size 784x0 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -28,4 +28,4 @@ layer at (0,0) size 800x600 ...@@ -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 (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] 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 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -18,4 +18,4 @@ layer at (0,0) size 800x600 ...@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 168x18 RenderInline {SPAN} at (0,0) size 168x18
RenderText {#text} at (238,2) size 168x18 RenderText {#text} at (238,2) size 168x18
text run at (238,2) width 168: "should be in one table cell." 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -13,4 +13,4 @@ layer at (0,0) size 800x600 ...@@ -13,4 +13,4 @@ layer at (0,0) size 800x600
RenderInline {DIV} at (0,0) size 168x18 RenderInline {DIV} at (0,0) size 168x18
RenderText {#text} at (183,0) size 168x18 RenderText {#text} at (183,0) size 168x18
text run at (183,0) width 168: "This should be underlined." text run at (183,0) width 168: "This should be underlined."
caret: position 29 of child 0 {#text} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 29 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -17,4 +17,4 @@ layer at (0,0) size 800x600 ...@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
RenderBlock {DIV} at (0,28) size 784x18 RenderBlock {DIV} at (0,28) size 784x18
RenderText {#text} at (0,0) size 9x18 RenderText {#text} at (0,0) size 9x18
text run at (0,0) width 9: ")." text run at (0,0) width 9: ")."
caret: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document 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
...@@ -18,4 +18,4 @@ layer at (0,0) size 800x600 ...@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
text run at (2,2) width 298: "This sentence should be inside the editable cell." text run at (2,2) width 298: "This sentence should be inside the editable cell."
RenderBR {BR} at (300,16) size 0x0 RenderBR {BR} at (300,16) size 0x0
RenderBlock (anonymous) at (0,28) size 784x0 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -22,4 +22,4 @@ layer at (0,0) size 800x600 ...@@ -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] 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 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." 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -15,4 +15,4 @@ layer at (0,0) size 800x600 ...@@ -15,4 +15,4 @@ layer at (0,0) size 800x600
RenderInline {A} at (0,0) size 48x18 [color=#0000EE] RenderInline {A} at (0,0) size 48x18 [color=#0000EE]
RenderText {#text} at (0,18) size 48x18 RenderText {#text} at (0,18) size 48x18
text run at (0,18) width 48: "Cached" 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -19,4 +19,4 @@ layer at (0,0) size 800x600 ...@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
layer at (13,83) size 122x13 layer at (13,83) size 122x13
RenderBlock {DIV} at (3,3) size 122x13 RenderBlock {DIV} at (3,3) size 122x13
RenderBR {BR} at (1,0) size 0x13 RenderBR {BR} at (1,0) size 0x13
caret: position 0 of child 0 {BR} of child 0 {DIV} of child 3 {INPUT} of child 0 {BODY} of child 0 {HTML} of document 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
...@@ -11,4 +11,4 @@ layer at (0,0) size 800x600 ...@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
RenderText {#text} at (1,1) size 387x18 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." 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 RenderBR {BR} at (388,15) size 0x0
caret: position 62 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document 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
...@@ -8,4 +8,4 @@ layer at (0,0) size 800x600 ...@@ -8,4 +8,4 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 50x18 RenderText {#text} at (0,0) size 50x18
text run at (0,0) width 50: "Success" text run at (0,0) width 50: "Success"
RenderBlock {DIV} at (0,18) size 784x0 RenderBlock {DIV} at (0,18) size 784x0
caret: position 7 of child 0 {#text} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 7 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -17,4 +17,4 @@ layer at (0,0) size 800x600 ...@@ -17,4 +17,4 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 20x18 RenderInline {SPAN} at (0,0) size 20x18
RenderText {#text} at (0,18) size 20x18 RenderText {#text} at (0,18) size 20x18
text run at (0,18) width 20: "bar" text run at (0,18) width 20: "bar"
caret: position 0 of child 0 {BR} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 0 of child 0 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -11,4 +11,4 @@ layer at (0,0) size 800x600 ...@@ -11,4 +11,4 @@ layer at (0,0) size 800x600
text run at (0,18) width 87: "select:ignore. " 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." 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 784x32 RenderBlock {DIV} at (0,52) size 784x32
caret: position 0 of child 3 {DIV} of child 0 {BODY} of child 0 {HTML} of document caret: position 0 of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -42,4 +42,4 @@ layer at (0,0) size 800x600 ...@@ -42,4 +42,4 @@ layer at (0,0) size 800x600
RenderBR {BR} at (6,6) size 0x18 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] 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 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -19,4 +19,4 @@ layer at (0,0) size 800x600 ...@@ -19,4 +19,4 @@ layer at (0,0) size 800x600
RenderTableRow {TR} at (0,26) size 27x4 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 (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] 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -9,4 +9,4 @@ layer at (0,0) size 800x600 ...@@ -9,4 +9,4 @@ layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600 RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584 RenderBody {BODY} at (8,8) size 784x584
RenderBlock {DIV} at (0,0) size 784x18 RenderBlock {DIV} at (0,0) size 784x18
caret: position 0 of child 0 {DIV} of child 2 {BODY} of child 0 {HTML} of document caret: position 0 of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
...@@ -46,4 +46,4 @@ layer at (0,0) size 800x600 ...@@ -46,4 +46,4 @@ layer at (0,0) size 800x600
RenderText {#text} at (38,1) size 21x18 RenderText {#text} at (38,1) size 21x18
text run at (38,1) width 21: "fter" text run at (38,1) width 21: "fter"
RenderBlock (anonymous) at (0,70) size 784x0 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 2 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -24,4 +24,4 @@ layer at (0,0) size 800x600 ...@@ -24,4 +24,4 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 21x18 RenderText {#text} at (0,0) size 21x18
text run at (0,0) width 21: "fter" text run at (0,0) width 21: "fter"
RenderText {#text} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0
caret: position 0 of child 0 {#text} of child 3 {SPAN} of child 0 {DIV} of child 2 {BODY} of child 0 {HTML} of document 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
...@@ -26,4 +26,4 @@ layer at (0,0) size 800x600 ...@@ -26,4 +26,4 @@ layer at (0,0) size 800x600
RenderBR {BR} at (0,0) size 0x0 RenderBR {BR} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0 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 {BR} of child 3 {SPAN} of child 1 {SPAN} of child 0 {DIV} of child 2 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -54,5 +54,5 @@ layer at (0,0) size 800x600 ...@@ -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] RenderTableCell {TD} at (31,24) size 47x20 [r=1 c=1 rs=1 cs=1]
RenderText {#text} at (1,1) size 45x18 RenderText {#text} at (1,1) size 45x18
text run at (1,1) width 45: "buffalo" text run at (1,1) width 45: "buffalo"
selection start: position 0 of child 1 {TABLE} of child 0 {DIV} of child 2 {BODY} of child 0 {HTML} of document 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 2 {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
...@@ -31,4 +31,4 @@ layer at (24,94) size 752x82 layerType: foreground only ...@@ -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] RenderTableCell (anonymous) at (2,2) size 748x0 [r=0 c=0 rs=1 cs=1]
layer at (7,79) size 30x30 layer at (7,79) size 30x30
RenderImage zI: 1000000 {IMG} at (-17,-15) 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 0 {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 child 1 {BODY} of child 0 {HTML} of document
...@@ -31,4 +31,4 @@ layer at (0,0) size 800x600 ...@@ -31,4 +31,4 @@ layer at (0,0) size 800x600
RenderBlock {DIV} at (5,174) size 774x32 [border: (1px solid #000000)] RenderBlock {DIV} at (5,174) size 774x32 [border: (1px solid #000000)]
RenderBlock {DIV} at (6,6) size 762x20 [border: (1px solid #FF0000)] RenderBlock {DIV} at (6,6) size 762x20 [border: (1px solid #FF0000)]
RenderBR {BR} at (1,1) size 0x18 RenderBR {BR} at (1,1) size 0x18
caret: position 0 of child 0 {BR} of child 0 {DIV} of child 6 {DIV} of child 2 {BODY} of child 0 {HTML} of document 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
...@@ -29,4 +29,4 @@ layer at (0,0) size 800x600 ...@@ -29,4 +29,4 @@ layer at (0,0) size 800x600
RenderBlock (anonymous) at (11,67) size 714x18 RenderBlock (anonymous) at (11,67) size 714x18
RenderText {#text} at (0,0) size 30x18 RenderText {#text} at (0,0) size 30x18
text run at (0,0) width 30: "Four" 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 2 {BODY} of child 0 {HTML} of document 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
...@@ -18,4 +18,4 @@ layer at (0,0) size 800x600 ...@@ -18,4 +18,4 @@ layer at (0,0) size 800x600
RenderBlock {PRE} at (0,31) size 784x15 RenderBlock {PRE} at (0,31) size 784x15
RenderText {#text} at (0,0) size 24x15 RenderText {#text} at (0,0) size 24x15
text run at (0,0) width 24: "baz" 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 0 {BODY} of child 0 {HTML} of document 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
...@@ -26,5 +26,5 @@ layer at (0,0) size 800x600 ...@@ -26,5 +26,5 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 237x18 RenderText {#text} at (0,0) size 237x18
text run at (0,0) width 237: "This paragraph should not be in a list." text run at (0,0) width 237: "This paragraph should not be in a list."
RenderBR {BR} at (237,14) size 0x0 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 0 {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 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 0 {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
...@@ -24,5 +24,5 @@ layer at (0,0) size 800x600 ...@@ -24,5 +24,5 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 246x18 RenderText {#text} at (0,0) size 246x18