I've been encountering a puzzling issue trying to debug a script that won't work in Firefox, even though it runs smoothly in other programs. In the code snippet from chirp.js, there's a line that reads:
script = document.scripts[document.scripts.length-1]
This line is throwing an error saying: document.scripts is undefined
When I check document.scripts in the Firebug console, it comes up as undefined, as expected. I checked Mozilla's documentation and found information on how to access it. Surprisingly, when I tried the same thing in the Chrome console, it displayed a list of loaded scripts.
This issue isn't limited to my own computer; it's also happening on my client's machine. Could this be related to a plugin or addon problem?
The same error occurs on the chirp project page as well.
Has anyone else encountered this issue before? I tried searching online, but couldn't find any relevant solutions among the pages of results about the document.scripts object.