2011-02-07 Kenichi Ishibashi <bashi@chromium.org>
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Feb 2011 05:28:19 +0000 (05:28 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Feb 2011 05:28:19 +0000 (05:28 +0000)
commit38d5f63d00b10a01d1a15f7927972b279c12d81d
tree0a8cbbf7643629744e8547e976cc89d87eb9b65b
parent908e7c13520d759da2dc93f631b7086645b1b0a7
2011-02-07  Kenichi Ishibashi  <bashi@chromium.org>

        Reviewed by Kent Tamura.

        HTMLFormElement::formElementIndex() returns a bad index into a vector of form associated elements
        https://bugs.webkit.org/show_bug.cgi?id=53970

        Adds HTMLObjectElement::virtualForm() to make HTMLObjectElement::form()
        return the right value.

        Test: fast/dom/HTMLObjectElement/form/nested-form-element.html

        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::virtualForm): Added.
        * html/HTMLObjectElement.h: Added virtualForm().

2011-02-07  Kenichi Ishibashi  <bashi@chromium.org>

        Reviewed by Kent Tamura.

        HTMLFormElement::formElementIndex() returns a bad index into a vector of form associated elements
        https://bugs.webkit.org/show_bug.cgi?id=53970

        Adds a test that ensures WebKit parses successfully a page that
        contains object elements which are in nested and defective form
        elements.

        * fast/dom/HTMLObjectElement/form/nested-form-element-expected.txt: Added.
        * fast/dom/HTMLObjectElement/form/nested-form-element.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLObjectElement/form/nested-form-element-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLObjectElement/form/nested-form-element.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLObjectElement.cpp
Source/WebCore/html/HTMLObjectElement.h