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

Invalid html when creating list from a paragprah #1308

Open
tipa opened this issue Nov 1, 2020 · 0 comments
Open

Invalid html when creating list from a paragprah #1308

tipa opened this issue Nov 1, 2020 · 0 comments

Comments

@tipa
Copy link

tipa commented Nov 1, 2020

Describe the bug
Aztec editor creates invalid html when creating a list from a previously loaded paragraph

To Reproduce
Steps to reproduce the behavior:

  • Load the following html into the TextView via the setHTML method: <p>sample text</p>
  • Select the text and make it a list
  • Get the text with getHTMLWithPrettify(false)

Expected behavior
Same result when creating a list form scratch:

<ul>
  <li>sample text</li>
</ul>

Actual behavior

<p>
  <ul>
    <li>sample text</li>
  </ul>
</p>

This is invalid html

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