Make WordPress Core

Opened 8 years ago

Last modified 3 months ago

#43810 new defect (bug)

Apostrophe issue

Reported by: colomet's profile colomet Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.5
Component: Formatting Keywords: needs-patch wptexturize
Focuses: Cc:

Description (last modified by sabernhardt)

Take a look. Instead of to have normal apostrophe, we have open and close if is between tags

https://i.imgur.com/c6QDmR5.png

https://i.imgur.com/1F1zfWj.png

Change History (8)

#1 @swissspidy
8 years ago

  • Component changed from General to Formatting
  • Description modified (diff)

#2 @azouamauriac
4 years ago

  • Focuses accessibility added
  • Keywords reporter-feedback added

Hello thanks for your report. I'm not able to reproduce the issue. can you confirm if this still present, and provide the steps to reproduce it?
Thanks.

#3 @sabernhardt
4 years ago

  • Description modified (diff)
  • Keywords needs-patch added; reporter-feedback removed
  • Summary changed from Aphostrophe issue to Apostrophe issue

This can also happen when the letter before the apostrophe is inside a tag (and wptexturize is active).

<strong>I</strong>'m

This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.


4 years ago

#5 @sabernhardt
4 years ago

  • Focuses accessibility removed

#6 @sabernhardt
4 years ago

  • Keywords wptexturize added

#7 @aslamdoctor
7 months ago

I can reproduce this using block editor.

Screenshots:
Admin: https://shottr.cc/s/16oD/SCR-20250512-psi.png
Frontend: https://shottr.cc/s/1eha/SCR-20250512-ptd.png

Default theme: Twenty Twenty-Five

Steps:

  1. Add a text block with this text
I'v'e' 'b'e'en'
  1. Select these letter 'v'e' 'b'e'en' and apply Bold style
  2. Check on frontend

Is this an expected behaviour or not ?

Last edited 7 months ago by aslamdoctor (previous) (diff)

#8 @jdeep
3 months ago

After a bit of digging, I am unsure if this is a bug or an expected behaviour. The content is filtered through wptexturize which converts ' (ASCII 39) to open and closed apostrophes based on regex. So the apostrophes do appear correctly when the text is bold. Now, why it is not being done when the content is not between tags like <strong> is another issue.

Note: See TracTickets for help on using tickets.