php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66196 Invalid Entity Number - 8203
Submitted: 2013-11-28 22:25 UTC Modified: 2021-08-15 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: akauffman at ne4u dot com Assigned: cmb (profile)
Status: No Feedback Package: Website problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: akauffman at ne4u dot com
New email:
PHP Version: OS:

 

 [2013-11-28 22:25 UTC] akauffman at ne4u dot com
Description:
------------
Since entity number 8203 is not an official W3C entity (reference: http://htmlentities.net/html/entities/) it does not render properly in some browsers (shows up as a box with an X).

Test script:
---------------
Use Opera in Linux to test.  Ex: http://us1.php.net/manual/en/function.array-diff-assoc.php


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-29 00:36 UTC] phpmpan at mpan dot pl
I believe this belongs to Opera's bug tracker, as this is neither bug in PHP nor in PHP's website.

"Official W3C entities" refer to named entities, not character codes. #8203 is a valid code for character U+200B (which should not be rendered at all, so it's not a typeface issue).
 [2014-02-03 10:20 UTC] francois dot gannaz at silecs dot info
AFAIK, the "zero width space" may appear as an "unknown character" in some browsers, this is not incorrect regarding the Unicode specification. It may also be displayed as a space in other cases, like justified text.

There are aternatives to the entity ​ that fix this wrong behaviour, at least with Opera/Linux. They are more portable than the current numerical entity.

1. Use the tag <wbr> (official since HTML5, but cross-browser since a long time, see https://developer.mozilla.org/en/docs/Web/HTML/Element/wbr ).
2. Use a soft hyphen &shy; (this changes slightly the behaviour, as a hyphen will appear when the word is split).
 [2021-08-02 16:47 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-02 16:47 UTC] cmb@php.net
While replacing the ZERO WIDTH SPACE with <wbr> wouldn't be
particularly hard[1], I wonder whether that is still relevant.

[1] <https://github.com/php/web-php/blob/a7bb693aaa62948ab0a70417e4ca56073129334c/include/shared-manual.inc#L378>
 [2021-08-15 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC