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

Capture element state and reuse it #27

Open
sylvainhalle opened this issue Sep 1, 2021 · 1 comment
Open

Capture element state and reuse it #27

sylvainhalle opened this issue Sep 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@sylvainhalle
Copy link
Contributor

sylvainhalle commented Sep 1, 2021

Implement function that compares the same element in two different snapshots (or states) of a page.

Discussion points

  • The original function in Cornipickle worked because each DOM element touched by the interpreter was given an ID. If the element moved inside the structure of the page, one could still track it because of this ID (even if its DOM path changed). Can we do this with the current setup?
  • An alternate way of doing this would be to create a JS object that captures all the relevant properties of the DOM node, so that its track inside the document afterwards does not need to be kept.
@sylvainhalle sylvainhalle added the enhancement New feature or request label Sep 1, 2021
@sylvainhalle
Copy link
Contributor Author

Suggestion: take two snapshots and evaluate the property by comparing the two

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

No branches or pull requests

1 participant