Fixed a problem of a charset attribute for Script element is ignored,

request->mElement->GetCharset(charset) succeeded but the returned value 'charset' was ignored, fixed that problem,
bug 106360, r=ftang, sr=jst.
This commit is contained in:
nhotta%netscape.com 2001-11-02 02:07:08 +00:00
parent 491a9eb409
commit 373ca6f2c9

View File

@ -664,7 +664,7 @@ nsScriptLoader::OnStreamComplete(nsIStreamLoader* aLoader,
// is one.
nsCOMPtr<nsICharsetAlias> calias(do_GetService(kCharsetAliasCID,&rv));
if (NS_SUCCEEDED(rv)) {
rv = calias->GetPreferred(characterSet, preferred);
rv = calias->GetPreferred(charset, preferred);
if(NS_SUCCEEDED(rv)) {
characterSet = preferred;