Page MenuHomePhabricator

Excessive HTML entity encoding in title tag
Open, LowPublic

Description

See here and the result here.

HTML entity (hex) is not correctly render in the title tag:

 

This is what I see in the title bar of my browser:

<title>Rizultats des rcwerances po «&amp;#x202F;ok&amp;#x202F;» — Wikipedia</title>

This is what is expected:

<title>Rizultats des rcwerances po «&#x202F;ok&#x202F;» — Wikipedia</title>

The ampersand char shouldn't be encoded if it represents a part of a html entity.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 26 2020, 8:12 AM
Aklapper changed the task status from Open to Stalled.May 26 2020, 8:29 AM

@Reptilien.19831209BE1: It is correctly rendered here. If it is not, then please follow https://www.mediawiki.org/wiki/How_to_report_a_bug and explain what makes you think that it is not. Thanks!

@Aklapper I tried to clarify the issue, is it sufficient?

Aklapper changed the task status from Stalled to Open.May 26 2020, 9:06 AM
Aklapper triaged this task as Low priority.
Aklapper added a project: CirrusSearch.

Ah, sorry, so this is really about the title tag in your browser. I can confirm with Firefox and Chromium.

Restricted Application added a project: Discovery-Search. · View Herald TranscriptMay 26 2020, 9:06 AM
Nikerabbit added a subscriber: Nikerabbit.

That looks like someone trying to apply correct direction to the parameter. I've reverted the last update.

@Nikerabbit I don't understand what you mean by "trying to apply correct direction", somthing like RTL/LTR? The entity #x202F; is a typographical char used in French and Walloon. This char is correctly used. To revert the last update does not solve the problem but gets around it.

Ok I confused the unicode code. It's narrow no-break space. But using entities does not work in this message, so it was reverted. It needs some solution.