Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#8254 closed defect (bug) (fixed)

JavaScript breaking HTML entities

Reported by: xibe's profile xibe Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: UI Keywords: i18n needs-patch
Focuses: Cc:

Description

(this is a follow-up ticket to the first part of this wp-testers message)

The Publish section of the Edit screen for a published post displays an "Update Post" button, which in French is translated using the string "Mettre à jour l’article".

It works fine on first loading, but it breaks easily: just click the Edit link for the timestamp and cancel, and the the button's label goes from "Mettre à jour l'article" to "Mettre à jour l’article", literally.

I'm guessing this is due to JS not parsing HTML entities.

Attachments (2)

wp-htmlentitiesbreak.png (20.1 KB) - added by xibe 16 years ago.
Label of the button is updated after the timestamp section is openned/closed.
jquery-monkey-patch-attr-entities.diff (1.4 KB) - added by nbachiyski 16 years ago.
Make jQuery run all attribute values through a span, so that entities are parsed

Download all attachments as: .zip

Change History (7)

@xibe
16 years ago

Label of the button is updated after the timestamp section is openned/closed.

#1 @xibe
16 years ago

  • Cc xibe added
  • Keywords i18n needs-patch added
  • Version set to 2.7

#2 @ryan
16 years ago

  • Component changed from Administration to UI
  • Owner anonymous deleted

@nbachiyski
16 years ago

Make jQuery run all attribute values through a span, so that entities are parsed

#3 @azaozz
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9809]) Filter HTML entities when inserting strings with js, includes patch by nbachiyski, fixes #8254

#4 @azaozz
16 years ago

(In [9811]) Remove unused bits, see #8254

#5 @azaozz
16 years ago

(In [9836]) Improve filtering of HTML entities from translated strings used in js, see #8254

Note: See TracTickets for help on using tickets.