Closed Bug 1599047 Opened 5 years ago Closed 4 years ago

[Snippets] Bold <b> and anchor <a> tags don't work together nicely

Categories

(Firefox :: Messaging System, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: giorgos, Unassigned)

References

(Blocks 2 open bugs)

Details

There 're a few display issues for text in snippets that's both bold and links somewhere.

  1. Links within marked bold text are ignored
    Example:
    <b><a href="https://example.com">foo</a></b>
    displays text in bold, no link

  2. Bold text within link is ignored on Light theme only
    Example:
    <a href="https://example.com"><b>foo</b></a>

  3. All bold text within link is treated as bold when some text is marked bold only (Dark theme). Link is preserved.
    Example:
    <a href="https://example.com">Hi <b>there!</b></a>

Blocks: cfr
Priority: -- → P2
Blocks: 1513279
Priority: P2 → P3
Flags: needinfo?(andrei.br92)

Links introduce an edge case into how snippets are rendered with Fluent. Most Fluent strings that contain links are static (meaning the content of the string does not change, link position is fixed) while for snippets we need to render dynamic content. This seems to break for nested HTML tags, I think we need different snippet templates to handle this scenario if we need to support it.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(andrei.br92)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.