WebCore:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Aug 2007 23:09:39 +0000 (23:09 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Aug 2007 23:09:39 +0000 (23:09 +0000)
commita1c1d2dcab9669b5ee2680c76ddf059f5f243d56
tree50a1b43a2b4c3d8c768131805f57225f70bc5cdc
parent4817ecb99adfee0ade481f2bd2ba32539d5fd69d
WebCore:

        Reviewed by Maciej.

        Fix <rdar://problem/5433144>
        REGRESSION: Unable to click "Select" link at Expedia for car rentals

        javascript: URLs need special handling when serializing. Escaping them like
        normal attribute values can do bad things. Try hard to not escape anything,
        escape quote characters only if really necessary. Try to match Firefox.

        Test: fast/innerHTML/javascript-url.html

        * editing/markup.cpp:
        (WebCore::urlAttributeToQuotedString):
        (WebCore::startMarkup):

LayoutTests:

        Reviewed by Maciej.

        Test for <rdar://problem/5433144>
        REGRESSION: Unable to click "Select" link at Expedia for car rentals

        * fast/innerHTML/javascript-url-expected.txt: Added.
        * fast/innerHTML/javascript-url.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/innerHTML/javascript-url-expected.txt [new file with mode: 0644]
LayoutTests/fast/innerHTML/javascript-url.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/markup.cpp