Bug 25199

Summary: Some text escaped as gb2312 on map.sogou.com
Product: WebKit Reporter: xlyuan
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: johnnyding.webkit, jshin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: http://map.sogou.com/
Attachments:
Description Flags
testcase for reproducing this problem
none
data file for this testcase none

Description xlyuan 2009-04-14 20:21:31 PDT
Build: WebKit-r42277, 2009-04-09
   OS: Windows, not test on Mac

Other Browsers:
Chromium trunk: Fail
      Firefox3: OK
           IE8: OK

Steps:
1. Launch Safari
2. Go to http://map.sogou.com/
3. Search text "&#26597;&#35810;&#33539;&#22260;"
4. Observe

Result:
Texts followed with &#26597;&#35810;&#33539;&#22260; escaped as %C8%AB%B9%FA (which is &#20840;&#22269; escaped 
as gb2312)

Expected:
Original text &#20840;&#22269; should display
Comment 1 Mark Rowe (bdash) 2009-04-14 21:39:50 PDT
*** Bug 25200 has been marked as a duplicate of this bug. ***
Comment 2 johnnyding 2009-04-15 01:26:05 PDT
Created attachment 29493 [details]
testcase for reproducing this problem

The problem is because webkit doesn't support load method for document object. Sogou need to use document.load to load the unescaped data. Firefox supports load method for document object. So it's OK.

I wrote a test case based on some js code extracted from http://key.go2map.com/lib/js/k4.js
Comment 3 johnnyding 2009-04-15 01:27:14 PDT
Created attachment 29494 [details]
data file for this testcase
Comment 4 johnnyding 2009-04-15 01:38:05 PDT
I believe it's a duplicated bug of https://bugs.webkit.org/show_bug.cgi?id=9063
Comment 5 Jungshik Shin 2009-04-15 12:04:23 PDT

*** This bug has been marked as a duplicate of 9063 ***