Fix character set used for dynamically loaded scripts.
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 08:43:02 +0000 (08:43 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 08:43:02 +0000 (08:43 +0000)
commita788cfe3454025e32f3c9fe421d18cb47f07441e
tree75a995af22e9173aed3216c80a409dd3bf26620e
parentb3837da7b22ea6a5012ec7a38d266da8d707a609
Fix character set used for dynamically loaded scripts.

Reviewed by Weinig, Dan and Alexey.

Fix for:
    <rdar://problem/5333163> Safari can not display the mouse over pop menu on ChinaTimes News site correctly.
    <rdar://problem/5530048> [Safari]? :Leopard9A576: The typed CH characters displays as garbage in Sina website after reloading the webpage.
    <rdar://problem/5416588> All menus for chinese IBM site have wrong encoding

Use the same logic to determine the charset for a script loaded dynamically
as we do for a statically loaded script.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/encoding/no-charset-on-dynamic-script-load-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html [new file with mode: 0644]
LayoutTests/fast/encoding/resources/dynamic-load-target.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLScriptElement.cpp