While testing JavaScript code in Firefox 3.5 I sometimes get the following error:
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) <
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)
I just had the error by mistakenly trying to append an element to itself: elem.appendChild(elem);