I have an HTML page that has this doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
However, the HTML contains this tag:
<applet src="blahblah"></applet>
(EDIT: actually the HTML doesn't contain the applet. The applet is created dynamically by other javascript code).
Yes, I know that applet
is deprecated, and I know that an applet
tag can't contain a src
attribute, but I can't edit that HTML code.
The problem is this Javascript code:
alert(appletElement.getAttribute('src'));
In FF and Chrome it shows "blahblah", but in IE8 it shows null
. Also, appletElement.attributes['src']
is not defined.
Anybody knows how to get the src
attribute in IE8 with strict mode?
Thanks