Skip to content
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

Properly implement toString's (class string) #1136

Closed
Joris-van-der-Wel opened this issue May 23, 2015 · 1 comment
Closed

Properly implement toString's (class string) #1136

Joris-van-der-Wel opened this issue May 23, 2015 · 1 comment

Comments

@Joris-van-der-Wel
Copy link
Member

See Web IDL.

document.createElement('div').toString() === "[object HTMLDivElement]";
HTMLDivElement.prototype.toString() === "[object HTMLDivElementPrototype]";
window.toString() === "[object Window]";

A few of those are already correct, but there are also a bunch missing

@domenic
Copy link
Member

domenic commented May 23, 2015

If we wait for an io.js release with toStringTag we can fix the result of Object.prototype.toString at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants