Recognize application/x-javascript (70439, r=timeless, sr=waterson).

This commit is contained in:
brendan%mozilla.org 2001-03-09 00:53:26 +00:00
Родитель f8d51eb42b
Коммит ceac8904de
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -18,14 +18,17 @@
* Rights Reserved.
*
*
* Original Authors: Chris Waterson & David Hyatt
* Original Contributors:
* Chris Waterson <waterson@netscape.com>
* David Hyatt <hyatt@netscape.com>
*
* Contributor(s):
* Brendan Eich <brendan@mozilla.org>
*/
/*
An implementation for an NGLayout-style content sink that knows how
An implementation for a Gecko-style content sink that knows how
to build an RDF content model from XUL.
For each container tag, an RDF Sequence object is created that
@ -1495,7 +1498,8 @@ XULContentSinkImpl::OpenScript(const nsIParserNode& aNode)
nsAutoString params;
SplitMimeType(type, mimeType, params);
isJavaScript = mimeType.EqualsIgnoreCase("text/javascript");
isJavaScript = mimeType.EqualsIgnoreCase("application/x-javascript") ||
mimeType.EqualsIgnoreCase("text/javascript");
if (isJavaScript) {
JSVersion jsVersion = JSVERSION_DEFAULT;
if (params.Find("version=", PR_TRUE) == 0) {