wordpress-mobile / wordpress-mobile/AztecEditor-iOS
Invalid html when creating list from a paragprah
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 669
- Forks
- 153
- Avg merge
- 11h 27m
- Merged PRs (30d)
- 4
Description
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
setHTMLmethod:<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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by loading
sample text
through setHTML, selecting the text, and converting it to a list. Trace the HTML conversion used by getHTMLWithPrettify(false), then verify that the result is a standalone ul containing the li rather than a ul nested inside p.Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100