Hi there,
I am adapting 1 of my javascript libraries to make it compatible with
Chrome (working with FF & IE until now)
In this library, I enforce strong type checking.
I run into the following problem that you can easily reproduce through
the 2 command lines (with $) below with the js debugger of chrome:
$ print document.createElement('input').constructor
function HTMLInputElement() { [native code] }
$ print document.createElement('input').constructor ==
HTMLInputElement
false
Why does the equality (==) not work?
the constructor property should == the function that gets returned
when checking it
(it works for all other dom element constructors that I check
otherwise)
As an additional proof, you can run the following line in the debugger
$ print HTMLInputElement == HTMLInputElement
true
Please, let me know if I am wrong or if there is a real problem
regards
didier
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---