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
Function is not an attribute #216
Comments
While this seems strange, I do think this is correct behavior. some_function becomes an enumerable property of all objects. Maybe a hasOwnProperty check would be better; that I would consider over a specific function check. |
I would rather see this done using Object.keys. The problem is extending the object prototype, not the fact that it's a function. You should try to avoid that in whatever code you're dealing with. |
+1 for Object.keys actually. Just skipped my mind. |
Attr now doesn't serialize functions (second edition) libxmljs#216
Sample code:
Result:
The text was updated successfully, but these errors were encountered: