wordpress-mobile / wordpress-mobile/AztecEditor-iOS

Some spaces should be sanitized, but aren't.

Open
#991 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Priority] Low [Type] Bug
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:

screen shot 2018-06-19 at 10 37 14
Actual behavior

Aztec is rendering 3 spaces:

screen shot 2018-06-19 at 10 37 33
Steps to reproduce the behavior

Just paste the snippet in HTML mode and switch back to visual.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.