jQuery give NS_ERROR_DOM_SECURITY_ERR errors in Firefox
<p>so, guys, I know I am way over my head, so have pity. I'm trying to learn.</p>

<p>This is in file called ifx.js</p>

<p>I had programmers work on my project, and it's been fine, until recently on Firefox, where it just.... isnt.</p>

<p>The Error received when I try to perform the action (opening a horizontal menu) is: </p>

<pre><code>Error: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://xxx.xxx.xx.xxx/~yvonechr/users/lib/ifx.js Line: 389"]
</code></pre>

<p>The area in the file is here: (line ending in NULL is line 389 [CODE]</p>

<pre><code>for (p in prop) {
    if (p == 'style') {
        var newStyles = jQuery.parseStyle(prop[p]);
        for (np in newStyles) {
            this.getValues(np, newStyles[np]);
        }
    } else if (p == 'className') {
        if (document.styleSheets) for (var i = 0; i &lt; document.styleSheets.length; i++) {
            var cssRules = document.styleSheets[i].cssRules || document.styleSheets[i].rules || null;
            if (cssRules) {
                for (var j = 0; j &lt; cssRules.length; j++) {
                    if (cssRules[j].selectorText == '.' + prop[p]) {
                        var rule = new RegExp('\.' + prop[p] + ' {');
                        var styles = cssRules[j].style.cssText;
                        var newStyles = jQuery.parseStyle(styles.replace(rule, '').replace(/}/g, ''));
                        for (np in newStyles) {
                            this.getValues(np, newStyles[np]);
                        }
                    }
                }
            }
        }
    } else {
        this.getValues(p, prop[p]);
</code></pre>

<p>I'm sorry if this post is just so wrong, but I'll learn, really. And if anyone can help me, I'll be so thankful, you won't believe it.</p>
