Bug #66196 [Opn->Fbk]: Invalid Entity Number - 8203
| From: | cmb@php.net | Date: | Mon, 02 Aug 2021 16:47:50 +0000 |
| Subject: | Bug #66196 [Opn->Fbk]: Invalid Entity Number - 8203 | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-29491@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66196&edit=1
ID: 66196
Updated by: cmb@php.net
Reported by: akauffman at ne4u dot com
Summary: Invalid Entity Number - 8203
-Status: Open
+Status: Feedback
Type: Bug
Package: Website problem
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[2014-02-03 15:00:37] francois dot gannaz at silecs dot info
Related To: Bug #66618
------------------------------------------------------------------------
[2014-02-03 10:20:52] 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 ­ (this changes slightly the behaviour, as a hyphen will appear when
the word is split).
------------------------------------------------------------------------
[2013-12-04 17:31:10] aharvey@php.net
Related To: Bug #66233
------------------------------------------------------------------------
[2013-11-29 00:36:24] 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).
------------------------------------------------------------------------
[2013-11-28 22:25:33] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66196&edit=1