Cannot Render HTML tags

Open
#1,270 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift
Domain
mobile

Research direction

Start by reproducing the issue in an Aztec editor instance with HTML containing head, body, or table tags, then trace the HTML parsing and rendering entry point. Done means these container tags are hidden while their contents render, matching the Android behavior; add or update regression coverage if the relevant test area is found.

Written by the indexing model from the issue text.

Description

[Type] Enhancement

Describe the bug

Putting text like:

<body style="font: 14px/1.4285714 Arial, sans-serif; color: #333">
    
  <table style="width: 100%; border-collapse: collapse">
    </table>
</body>

will render like:

[BODY][/BODY]

To Reproduce
Steps to reproduce the behavior:

  1. Open an instance of Aztec editor
  2. fill the editor with an HTML string that start and end with HTML tag like ,,
  3. this section will not be rendered
  4. Expected behavior

    As on the Android version, we will expect that body and head will just be hidden and their contents rendered

Dominant language
Swift
Stars
669
Forks
153
Avg merge
11h 27m
Merged PRs (30d)
4

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.

More from wordpress-mobile/AztecEditor-iOS

All issues in wordpress-mobile/AztecEditor-iOS

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.