On 4/12/13 6:49 AM, Arnaud Didry wrote:
> We are experiencing random and obscure errors since the FF20 update : "TypeError: Value does not implement interface Element".
That's certainly the error you'd get if something that's not an element
has an element method called on it...
> The stack trace always point to the same line of code : `if (
node.id && !node.id.tagName && !node.id.item) {id =
node.id;}` (from YUI3 [1]). The caller also ensure that `node.nodeType === 1` [2]
That's quite odd, for sure!
Are you able to log any information about this when it fails? Knowing
node.localName would really help.
> We're still trying to find a way to produce a failing test case. We deployed a patch which wrap the line in a try/catch to log the `node` variable but since then the error doesn't seems to occur anymore.
_That_ indicates some sort of JIT bug to me, unfortunately. :( I guess
that answers my question about logging...
What if you put the try/catch higher up the callstack?
> Should I file a ticket on bugzilla ?
Please, with whatever information you have!
-Boris