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

Creating links over whole inline elements creates orphans #36

Closed
lucthev opened this issue Apr 30, 2014 · 1 comment
Closed

Creating links over whole inline elements creates orphans #36

lucthev opened this issue Apr 30, 2014 · 1 comment
Labels

Comments

@lucthev
Copy link
Owner

lucthev commented Apr 30, 2014

With the following selection:

<p>One |<strong>two</strong>| three</p>

using .link('http://www.example.com') creates an orphaned <strong>:

<p>
  One 
  <strong></strong>
 |<a href="http://www.example.com"><strong>two</strong></a>|
   three
</p>

This is probably because of the custom conversion logic introduced in d54f6f0.

@lucthev lucthev added the bug label Apr 30, 2014
@lucthev
Copy link
Owner Author

lucthev commented Apr 30, 2014

More generally, it would be nice if orphaned inline elements got removed; when pasting images within anchors, for example (<a href="#"><img src="x.jpg" /></a>, the image gets stripped out, leaving behind an orphaned <a>.

@lucthev lucthev closed this as completed in c14217f May 1, 2014
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