support "java_CODE" and "CLASSID" attributes.

git-svn-id: svn://10.0.0.236/trunk@35140 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 1999-06-14 16:56:11 +00:00
parent cf41488e53
commit fcc1f4f5cb

View File

@ -243,9 +243,14 @@ void MRJContext::processAppletTag()
if (pageAttributes.codeBase == NULL)
pageAttributes.codeBase = value;
} else
if (strcasecmp(name, "CODE") == 0) {
if (strcasecmp(name, "CODE") == 0 || strcasecmp(name, "java_CODE") == 0) {
status = ::JMNewTextRef(mSessionRef, &info.fAppletCode, kTextEncodingMacRoman, value, strlen(value));
} else
} else
if (strcasecmp(name, "CLASSID") == 0) {
// bug 6591: <object> uses classid="java:classname"
value += 5;
status = ::JMNewTextRef(mSessionRef, &info.fAppletCode, kTextEncodingMacRoman, value, strlen(value));
} else
if (strcasecmp(name, "WIDTH") == 0) {
info.fWidth = ::atoi(value);
} else