-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Question] $eval vs getProperties #1592
Comments
@JohnPucciarelli the const element = document.querySelector('article a');
console.log(Object.getOwnPropertyNames(element)); So thus the difference. It is actually confusing; at the very least we should clarify this in the documentation. @dgozman: what do you think about renaming |
That makes sense now. I agree that Thanks for the help @aslushnikov 👍 |
Hi,
I am a little confused as to what
getProperties
should return. I seem to be getting references to objects (react internals in my case) instead of elements as expected. I put together an example below:Output:
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: