I’m running into an odd failure. It seems that if I have both an ID and NAME attribute on an anchor element, document.getElementById fails. If I remove the NAME, it works. I’m seeing this in Firefox 3.5(latest) but haven’t checked other browsers yet.
Is this a bug or intentional?
I’ve never heard of such a bug, so I attempted to reproduce it and failed. This suggests that you have misdiagnosed the problem, or at least haven’t provided enough information about it.
I tested with Firefox 3.5 and the following code.