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

After ReplaceWith, a CQ object which is source does not refer to its new location #34

Closed
jamietre opened this issue Aug 16, 2012 · 0 comments
Labels

Comments

@jamietre
Copy link
Owner

In situations like this:

var content = CQ.Create("<div>some content</div>");

dom[".something"].ReplaceWith(content);

the previously unbound content element has an empty/broken selection set because it's elements were moved into a bound document. In jQuery, the existing object containing a fragment becomes bound to the DOM, This should have similar behavior.

jamietre added a commit that referenced this issue Aug 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant