Changeset 19324 in webkit


Ignore:
Timestamp:
Jan 31, 2007 8:26:51 PM (17 years ago)
Author:
weinig
Message:

LayoutTests:

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=12506
REGRESSION: Safari doesn't display hebrew text on a web page,
displayed correctly on Tiger

  • fast/encoding/pseudo-tags-in-attributes-expected.txt: Added.
  • fast/encoding/pseudo-tags-in-attributes.html: Added.

WebCore:

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=12506
REGRESSION: Safari doesn't display hebrew text on a web page,
displayed correctly on Tiger

  • loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::checkForHeadCharset): Skip over quoted attributes.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r19322 r19324  
     12007-01-31  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=12506
     6        REGRESSION: Safari doesn't display hebrew text on a web page,
     7        displayed correctly on Tiger
     8
     9        * fast/encoding/pseudo-tags-in-attributes-expected.txt: Added.
     10        * fast/encoding/pseudo-tags-in-attributes.html: Added.
     11
    1122007-01-31  Anders Carlsson  <acarlsson@apple.com>
    213
  • trunk/WebCore/ChangeLog

    r19323 r19324  
     12007-01-31  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=12506
     6        REGRESSION: Safari doesn't display hebrew text on a web page,
     7        displayed correctly on Tiger
     8
     9        * loader/TextResourceDecoder.cpp:
     10        (WebCore::TextResourceDecoder::checkForHeadCharset): Skip over
     11        quoted attributes.
     12
    1132007-01-31  David Carson  <dacarson@gmail.com>
    214
  • trunk/WebCore/loader/TextResourceDecoder.cpp

    r19186 r19324  
    560560            }
    561561           
     562            // Find where the opening tag ends.
     563            const char* tagContentStart = ptr;
     564            if (!end) {
     565                while (*ptr != '>') {
     566                    if (*ptr == '\0')
     567                        return false;
     568                    if (*ptr == '\'' || *ptr == '"') {
     569                        char quoteMark = *ptr;
     570                        while (*ptr != quoteMark) {
     571                            if (*ptr == '\0')
     572                                return false;
     573                            ++ptr;
     574                        }
     575                    }
     576                    ++ptr;
     577                }
     578            }
     579           
    562580            if (!end && tag == metaTag) {
    563                 const char* end = ptr;
    564                 while (*end != '>' && *end != '\0')
    565                     end++;
    566                 if (*end == '\0')
    567                     break;
    568                 DeprecatedCString str(ptr, (end-ptr)+1);
     581                DeprecatedCString str(tagContentStart, tagContentStart - ptr);
    569582                str = str.lower();
    570583                int pos = 0;
Note: See TracChangeset for help on using the changeset viewer.