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

Document interrogation #3

Open
gagern opened this issue Dec 14, 2015 · 0 comments
Open

Document interrogation #3

gagern opened this issue Dec 14, 2015 · 0 comments
Assignees

Comments

@gagern
Copy link
Owner

gagern commented Dec 14, 2015

The library offers tools to interrogate the structure of the document, its nodes and attributes. It would be nice to expose this to the JavaScript world. It would be important, though, to make sure that this works nicely in the presence of memory reclamation.

  • Every other object (like nodes) should contain an internal reference to the document to keep that from getting garbage collected.
  • The document should have a version number. Every modification of the document should bump the version, invalidating all the nodes created prior to the modification. Similar to the fail-fast iterators in Java.

So we are looking at objects with about 3 internal fields: the wrapped node or attribute, the associated document and its generation at the time of creation.

@gagern gagern self-assigned this May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant