First check, was this (upgrade GM) done at exactly the same time that
you upgraded Firefox 2 to 3? In FF3, I see the same behavior. And I'm
similarly at a loss for an explanation. The best next step would be to
come up with a minimal test case. A sample page with as few elements as
possible, a script with as few statements as possible, which triggers
the same error. (Basically, start taking things away, and keep doing
that as long as you can take something away without removing the tiniest
bit that breaks.)
P.S. node.insertBefore(othernode, null) has the exact same affect as
node.appendChild(othernode) so you can skip that if test.
Crazy. This leads me to a test case:
var parent=document.body;
parent.parentNode;
Assign any element to a "var parent" and look for it's parentNode, and
you get this error. Sounds like it's related to: