Changeset 18939 for S60/trunk/WebCore

Show
Ignore:
Timestamp:
01/18/07 08:32:53 (2 years ago)
Author:
yongjzha
Message:

2007-01-14 sareen <shyam.sareen@nokia.com>

Reviewed by Antti Kovisto.Browser
DESC: Browser - Form/The TC is not displayed, it's a white page displayed
http://bugzilla.opendarwin.org/show_bug.cgi?id=12269

WARNING: NO TEST CASES ADDED OR CHANGED

  • khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::parseTag):
  • khtml/html/htmltokenizer.h:
Location:
S60/trunk/WebCore
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebCore/ChangeLog

    r18936 r18939  
     12007-01-14  sareen  <shyam.sareen@nokia.com> 
     2 
     3        Reviewed by Antti Kovisto.Browser  
     4        DESC: Browser - Form/The TC is not displayed, it's a white page displayed 
     5        http://bugzilla.opendarwin.org/show_bug.cgi?id=12269 
     6 
     7        WARNING: NO TEST CASES ADDED OR CHANGED 
     8 
     9        * khtml/html/htmltokenizer.cpp: 
     10        (khtml::HTMLTokenizer::parseTag): 
     11        * khtml/html/htmltokenizer.h: 
     12 
    1132007-01-18  sareen  <shyam.sareen@yahoo.com> 
    214 
  • S60/trunk/WebCore/khtml/html/htmltokenizer.cpp

    r16142 r18939  
    10281028{ 
    10291029    assert(!Entity ); 
     1030#ifdef NOKIA_CHANGES 
     1031    slashAtEndOfTag = false; 
     1032#endif 
    10301033 
    10311034    while ( !src.isEmpty() ) 
     
    11221125 
    11231126                // Accept empty xml tags like <br/>.  We trim off the "/" so that when we call 
    1124                 // getTagID, we'll look up "br" as the tag name and not "br/". 
     1127                // getTagID, we'll look up "br" as the tag name and not "br/". This will also 
     1128                // handle a case when some wrong tags such as <title/> is found and ther is no 
     1129                // end tag. 
     1130 
    11251131                if(len > 1 && ptr[len-1] == '/' ) 
    1126                     ptr[--len] = '\0'; 
     1132                { 
     1133#ifdef NOKIA_CHANGES 
     1134                 slashAtEndOfTag = true; 
     1135#endif 
     1136                 ptr[--len] = '\0'; 
     1137                } 
    11271138 
    11281139                // Look up the tagID for the specified tag name (now that we've shaved off any 
     
    15271538            case ID_TITLE: 
    15281539                if (beginTag) { 
     1540#ifdef NOKIA_CHANGES 
     1541                    if(slashAtEndOfTag)  
     1542                       break;     
     1543#endif 
    15291544                    searchStopper = titleEnd; 
    15301545                    searchStopperLen = 7; 
    1531                     title = true; 
     1546                    title = true;          
    15321547                    parseSpecial(src); 
    15331548                } 
  • S60/trunk/WebCore/khtml/html/htmltokenizer.h

    r14720 r18939  
    381381    //Are we executing an external script? 
    382382    bool executingExternalScript; 
     383    //Sometimes, it is found that tag name is ended with slash 
     384    //For example, <title/>. But, after that there is not end tag. 
     385    bool slashAtEndOfTag; 
    383386#endif 
    384387