Hey everybody,
Let's say I do the following in Arbortext:
var document = Application.activeDocument;
var a = document.getElementById("stuff");
var b = document.getElementById("stuff");
So both a and b point to the same DOM element. Now, if I check their equality:
a == b
I get "false." Why is that? Shouldn't both variables contain references to the same object, and therefore be equal? Is there a simple way to check for element equality in javascript?
Note that when I do the same thing in a web browser, I get "true," like I expect.
Thanks,
James