Automattic / Automattic/o2

Live Comments: Titles with long-html break the widget.

Open
#242 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
338
Forks
56
Avg merge
24m
Merged PRs (30d)
16

Description

As reported in https://github.com/WordPress/wporg-make/issues/59 by @BenjaminZekavica

1. Create a post with the title of `Testing super-long-code-HTML-tags in titles..`
2. Comment on it.
3. View the Live Comments widget:

Image

This is caused by makeLongWordsShort() which splits strings without care for HTML.

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the JavaScript implementation of makeLongWordsShort() and reproduce the reported post title and comment in the Live Comments widget. Trace how the title is shortened without treating its HTML as plain text; done means the widget remains intact and displays the long HTML-tagged title correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wordpress
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.