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

Handle adjacent text nodes? #1

Open
cowboy opened this issue Jul 8, 2010 · 0 comments
Open

Handle adjacent text nodes? #1

cowboy opened this issue Jul 8, 2010 · 0 comments

Comments

@cowboy
Copy link
Owner

cowboy commented Jul 8, 2010

Ideally, adjacent text nodes should be "collapsed" into a single text node. For example:

$('<div>foo<span>bar</span>baz</div>')
  .find('span')
    .remove()
    .end()
  .contents()
    .get(); // [ "foo", "baz" ]
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

No branches or pull requests

1 participant