mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Nullify version selection via <script language='JavaScript1.x'> to match other browsers (255895, r+sr=jst).
This commit is contained in:
parent
4ebc402441
commit
bc1cb54066
@ -408,6 +408,14 @@ nsScriptLoader::ProcessScriptElement(nsIScriptElement *aElement,
|
||||
if (!language.IsEmpty()) {
|
||||
isJavaScript = nsParserUtils::IsJavaScriptLanguage(language,
|
||||
&jsVersionString);
|
||||
|
||||
// IE, Opera, etc. do not respect language version, so neither should
|
||||
// we at this late date in the browser wars saga. Note that this change
|
||||
// affects HTML but not XUL or SVG (but note also that XUL has its own
|
||||
// code to check nsParserUtils::IsJavaScriptLanguage -- that's probably
|
||||
// a separate bug, one we may not be able to fix short of XUL2). See
|
||||
// bug 255895 (https://bugzilla.mozilla.org/show_bug.cgi?id=255895).
|
||||
jsVersionString = ::JS_VersionToString(JSVERSION_DEFAULT);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user