I posted this as an Issue, but bobbyvandersluis asked that I reposted
it here. I don't have a sample page as I edited my local copy of
swfobject to work around this.
What steps will reproduce the problem?
1. With a link to swfobject.js on our web page, open the page in
Internet
Explorer 7.
2. As soon as the page loads, you'll see an error:
Line: 130
Character: 4
Code: 0
Error Message: 'script.parentNode' is null or not an object
What is the expected output? What do you see instead?
The line in question is:
script.parentNode.removeChild(script);
and if I change it to :
if (script.parentNode) {
script.parentNode.removeChild(script);
}
then everything seems to work fine. Is anything more needed?
What version of the product are you using?
swfobject 2.1: The first line of swfobject.js is:
/*! SWFObject v2.1 <http://code.google.com/p/swfobject/>
On what operating system?
The page works fine in FireFox and Safari, but not in Internet
Explorer 7.0
on Windows Vista.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---