Closed Bug 274681 Opened 20 years ago Closed 20 years ago

Problem render &nbsp if it is followed by a single quote character

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: davidf63, Assigned: bugzilla)

Details

I am using OSCommerce PHP online shop tool.

In a particular Add-on module I find the following declaration

  define('MODULE_PAYMENT_AUS_BANK_TEXT_DESCRIPTION', '<BR>Please use the
following details to transfer your total order value:<br><br>Account No.:
&nbsp&nbsp&nbsp' . MODULE_PAYMENT_AUS_BANK_ACCNUM . '<BR>BSB Number:
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' . MODULE_PAYMENT_AUS_BANK_BSB . '<BR>Account
Name: ' . MODULE_PAYMENT_AUS_BANK_ACCNAM . '<BR>Bank Name: &nbsp&nbsp&nbsp&nbsp
' . MODULE_PAYMENT_AUS_BANK_BANKNAM . '<br><br>Your order will not ship until we
receive payment in the above account.');

Which is later used to render details of payment method on the web page such:

Please use the following details to transfer your total order value:

Account No.:   &nbsp99999
BSB Number:      &nbsp999-999
Account Name: Soaps Plus
Bank Name:      Blue Mountains Credit union

Your order will not ship until we receive payment in the above account.

Notice that the BANK NAME field has a space after the &nbsp tag in the definition.
This renders correctly - whereas the account no and BSB number fields have the
single quote immediatly following the &nbsp. as you can see this does not.

As it only seems to appear incorrect on FireFox, I suggest this is a FF bug.

As it effects the Professional look of an Online shop it is worth a Major severity.

I look forward to your response.
http://www.w3.org/TR/html401/charset.html#h-5.3

Note. In SGML, it is possible to eliminate the final ";" after a character
reference in some cases (e.g., at a line break or immediately before a tag). In
other circumstances it may not be eliminated (e.g., in the middle of a word). We
strongly suggest using the ";" in all cases to avoid problems with user agents
that require this character to be present.

So, fix the entities. &nbsp' is the case of 'in the middle of a word'.  You need
&nbsp;' for it to parse correctly.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.