Open Bug 583700 Opened 13 years ago Updated 6 months ago

"setAttribute is not a function" error in JavaScript


(Firefox :: General, defect)

3.6 Branch





(Reporter: bugzilla, Unassigned)




User-Agent:       Mozilla/5.0 (X11; U; Linux i686; nl; rv: Gecko/20100723 Ubuntu/9.10 (karmic) Firefox/3.6.8
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; nl; rv: Gecko/20100723 Ubuntu/9.10 (karmic) Firefox/3.6.8

A Flash application seems to fail because a JavaScript error occurs. After an initial page load, the following error pops up: 
  _obj.setAttribute is not a function,
where "_obj" obviously is a variable. Strangely, the error does not show up on the first page load. (See below for steps how to reproduce.)

Reproducible: Always

Steps to Reproduce:
1. Go to (site is in Dutch)
2. Click the "start" button
3. Go to "1.1 Inleiding -> Instaptoets"
4. Click the "start" button, three multiple choice questions appear (thus this works)
5. Click on the round button marked "2". This should take you to the the next question: this does not work, but no JavaScript error.
6. Go back to question 1 (round button marked "1"): the question does not load and the JavaScript error appears. Any other question gives the same result.
Actual Results:  
After step 4, no flash movies are loaded. This seems to relate to the JavaScript error, as in the particular part of the code the flash animations are loaded which set up the multiple choice questions.

Expected Results:  
Obviously, I expect the flash animations to be loaded.

I have tested the above with a clean (i.e. new) Firefox profile, no add-ons installed. Only the relevant plugins. I have also tested in Opera on Linux, version 10.60. Opera does not give the reported JavaScript error. Firefox on MS Windows XP gives the same result as Firefox on Linux.
Version: unspecified → 3.6 Branch
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.