Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css hex colors turned into tags #955

Open
thingalon opened this issue Oct 25, 2024 · 3 comments
Open

css hex colors turned into tags #955

thingalon opened this issue Oct 25, 2024 · 3 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". Needs triage [Type] Bug Something isn't working WordPress.com

Comments

@thingalon
Copy link
Member

thingalon commented Oct 25, 2024

Quick summary

Related ticket: 8924019-zd-a8c

Any css hex color codes in the post_content get treated as potential hashtags, and become tags on the post.

e.g.: if your post body includes this

<span style="color:#ffffff">text</span>

Then the resultant post will get a tag ffffff which cannot be removed, as it is reapplied every time the post is edited.

Steps to reproduce

  1. Create a new Post, use the code editor.
  2. Enter an HTML tag with a css hex color code in its style. e.g.: <span style="color:#ffffff">
  3. Save the post
  4. Observe that the post now has a tag ffffff.
  5. Try removing the tag - either in the "Edit Post" screen or via "Quick Edit"
  6. The tag is re-added immediately upon removal.

What you expected to happen

Text that begins with a # inside an HTML attribute should be ignored when generating hashtags for a post.

What actually happened

CSS color codes from the post content are turned into tags.

Impact

One

Available workarounds?

Yes, easy to implement

Logs or notes

No response

@thingalon thingalon added [Type] Bug Something isn't working Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". Needs triage WordPress.com labels Oct 25, 2024
Copy link

Support References

This comment is automatically generated. Please do not edit it.

  • 8924019-zen

@pfefferle
Copy link
Member

Haven't we fixed that @akirk ?

@pfefferle
Copy link
Member

Aaaahhh, I see! It will not transform it in a clickable link, but adds it as a tag!?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". Needs triage [Type] Bug Something isn't working WordPress.com
Projects
None yet
Development

No branches or pull requests

2 participants