WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 Jan 2008 05:50:36 +0000 (05:50 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 Jan 2008 05:50:36 +0000 (05:50 +0000)
commit6ad3c78ec3336cff4fda2732acfbc402d0d12dd2
tree1032658e4d1a05df7523c56b5d55da48042b8ddc
parent726e5697efc23ec07975204867ef187e398052f5
WebCore:

2008-01-11  Anyang Ren  <anyang.ren@gmail.com>

        Reviewed by Darin Adler.

        http://bugs.webkit.org/show_bug.cgi?id=15960
        The view source mode should skip an empty attribute value only if
        the attribute name is not followed by an equal sign (=).

        Test: fast/frames/viewsource-empty-attribute-value.html

        * html/HTMLViewSourceDocument.cpp:
        (WebCore::HTMLViewSourceDocument::addViewSourceToken):

LayoutTests:

2008-01-11  Anyang Ren  <anyang.ren@gmail.com>

        Reviewed by Darin Adler.

        Add a new regression test for
        http://bugs.webkit.org/show_bug.cgi?id=15960
        The view source mode should skip an empty attribute value only if
        the attribute name is not followed by an equal sign (=).

        * fast/frames/resources/viewsource-frame-1.html: Added.
        * fast/frames/viewsource-empty-attribute-value-expected.txt: Added.
        * fast/frames/viewsource-empty-attribute-value.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/frames/resources/viewsource-frame-1.html [new file with mode: 0644]
LayoutTests/fast/frames/viewsource-empty-attribute-value-expected.txt [new file with mode: 0644]
LayoutTests/fast/frames/viewsource-empty-attribute-value.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLViewSourceDocument.cpp