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 Fragments #100

Merged
merged 2 commits into from
Jan 24, 2019
Merged

Document Fragments #100

merged 2 commits into from
Jan 24, 2019

Conversation

finnp
Copy link
Contributor

@finnp finnp commented Mar 21, 2018

If we allow DocumentFragments to be generated with nanohtml (choojs/nanohtml#118), then we should make sure that they can't be used to morph the existing tree.

Morphing with a DocumentFragment doesn't make sense, because it doesn't have an actual root node.

Potentially we could also define that if a DocumentFragment is used it will only morph the children of the rootTree. That would also solve #96. But I think that should be discussed further somewhere.

For now this is my proposal: I added an assert statement, so it will reject DocumentFragments.

@bcomnes bcomnes requested a review from kristoferjoseph March 21, 2018 01:58
@finnp finnp changed the base branch from beta to master December 14, 2018 21:52
@finnp
Copy link
Contributor Author

finnp commented Dec 14, 2018

@goto-bus-stop I knew there was a third pull request somewhere 😅If this looks good to you, maybe merge this in too.

@goto-bus-stop goto-bus-stop merged commit 2c78408 into choojs:master Jan 24, 2019
@finnp finnp deleted the fragments branch January 25, 2019 20:17
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

Successfully merging this pull request may close these issues.

3 participants