wordpress-mobile / wordpress-mobile/AztecEditor-iOS
Some spaces should be sanitized, but aren't.
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 669
- Forks
- 153
- Avg merge
- 11h 27m
- Merged PRs (30d)
- 4
Description
Expected behavior
When rendering something like:
<strong>WordPress<strong> <b> </b><strong> </strong><span> </span><em>App</em>
Aztec should only render one space between words. This is how Safari renders it:
Actual behavior
Aztec is rendering 3 spaces:
Steps to reproduce the behavior
Just paste the snippet in HTML mode and switch back to visual.
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
Start by reproducing the supplied HTML snippet in AztecEditor-iOS HTML mode, then switch back to visual mode and trace where whitespace is sanitized during rendering. Identify the relevant rendering or sanitization entry point and add coverage for this snippet if the project has an existing test location. Done means the visual editor renders only one space between the words, matching Safari.
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
- Mostly clear
- Newbie friendliness
- 38/100