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:
parent
cf41488e53
commit
fcc1f4f5cb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user