Bug 27095
| Summary: | Garbled text at http://trangnhat.net | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jungshik Shin <jshin> |
| Component: | Evangelism | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ap, jensimmons, xlyuan |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://trangnhat.net/ | ||
Jungshik Shin
From the chromium bug tracker ( http://crbug.com/9641 )
1. Go to http://trangnhat.net/
2. Hover mouse to link "Tin chuyên ngành - Báo chí"
>>Second tab in the middle of the page
3. Observe the content popped up
The file is sent by the server with just 'Content-Type: text/html' so that we have to
honor what's in the file (meta charset). Now I wonder why Firefox does not honor that
in this case. Perhaps, it's coming through XHR and Firefox always interprets that as
in UTF-8 (depending on how it's pulled).
The html page loaded separately ( http://trangnhat.net/chuyenmuc/tinchuyennganh.htm )
is interpreted as windows-1252 by Firefox and is garbled.
The html snippet in the main html is as following. The second <li> corresponds to the middle tab in the main page.
<div><ul id="maintab" class="shadetabs">
<li class="selected"><a href="#default" rel="ajaxcontentarea">Tin Tức hàng
ngày</a></li>
<li class=""><a rel="ajaxcontentarea" href="chuyenmuc/tinchuyennganh.htm">Tin
chuyên ngành - Báo chí</a></li>
<li class=""><a rel="ajaxcontentarea" href="chuyenmuc/news.htm">International
News</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle" style="width: 607px; height: 200px">
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Per XMLHttpRequest spec, it is correct behavior to look inside HTML responses for META, see <http://www.w3.org/TR/XMLHttpRequest/#text-response-entity-body>. Apparently, Firefox does not implement this.
As an aside, this page is particularly buggy - its title and body are in different encodings, as you can see in Safari or Firefox by opening it directly.
To Evangelism.