Reviewed by Darin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Aug 2005 23:58:28 +0000 (23:58 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Aug 2005 23:58:28 +0000 (23:58 +0000)
commitd8b0bdefa035a593b1be7d35431c3a407a40e1e7
treeed9738b1545a9b3e7b19361c86d23c1c6921c8ea
parent89f61139548d9ce6d3749d437e3547b67e19e42f
    Reviewed by Darin.
        Landed by David Harrison.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4475
          <noscript>, <noframes>, <nolayer> and <noembed> elements should be in the DOM

        Test cases added:
        * layout-tests/fast/dom/no-elements-expected.txt: Added.
        * layout-tests/fast/dom/no-elements.html: Added.

        * khtml/html/html_elementimpl.cpp:
        (blockTagList):
        Add noembed and nolayer to the list of block tags.

        * khtml/html/htmlparser.cpp:
        (HTMLParser::noembedCreateErrorCheck):
        (HTMLParser::noframesCreateErrorCheck):
        (HTMLParser::noscriptCreateErrorCheck):
        (HTMLParser::nolayerCreateErrorCheck):
        Make sure these elements are created, but that they won't have any children.
        (Except for <noscript> when JavaScript is turned off).

        * layout-tests/dom/html/level2/html/HTMLElement113-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement114-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement142-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement143-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement26-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement27-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement55-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement56-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement84-expected.txt:
        * layout-tests/dom/html/level2/html/HTMLElement85-expected.txt:
        These tests pass now.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/dom/html/level2/html/HTMLElement113-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement114-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement142-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement143-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement26-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement27-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement55-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement56-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement84-expected.txt
LayoutTests/dom/html/level2/html/HTMLElement85-expected.txt
LayoutTests/fast/dom/no-elements-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/no-elements.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_elementimpl.cpp
WebCore/khtml/html/htmlparser.cpp