New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS: small issue with Std.is and Firefox #2297
Comments
Std.is(elem, Element) also seems to work as expected. |
Seems similar to #2441 |
In my case it was a pretty old version of Firefox (11.0) which returned |
Closing this since it seems to affect an old version of one browser. If there are any recent browsers that do this, please reopen. |
Safari does this. Here is a proposed fix: #2857 |
It's also the correct behaviour defined in the spec. |
Too late for 3.2, possible for 3.3. |
A fix from me is already merged since last year: #2857. This can be closed. |
Std.is(elem, Element) returns false for an Element in Firefox, because
typeof Element
returns "object" in Firefox while it returns "function" in WebKit browsers. Modifying the check in
js.Boot.__instanceof
to:seems to fix this.
The text was updated successfully, but these errors were encountered: