Closed Bug 280266 Opened 20 years ago Closed 20 years ago

&nbsp not rendered if followed by a trailing character

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 251010

People

(Reporter: tony, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041110 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041110 Firefox/1.0

When using the '&nbsp' to add a space, if you have a '-' after the &nbsp it is
not rendered, instead it is outputted as text.

Reproducible: Always

Steps to Reproduce:
1. Create a page with the following line as html
&nbsp&nbsp- Hello

Actual Results:  
Output is '  &nbsp- Hello'

Expected Results:  
Should have created '   Hello'
Should be ' &nbsp- Hello' instead of '  &nbsp- Hello' 
and '  - Hello' instead of '   - Hello'
A character entity reference ends properly with a semicolon, newline, or the
start  of a tag, and improperly in error recovery with the first character
that's not a legal NAME character in HTML (anything but A-Z, a-z, 0-9, or .-_:).
Because &nbsp- would be a legally-named HTML entity, we don't pretend we saw
  instead, while something like &nbsp* isn't a legal name, so you must have
meant &nbsp

*** This bug has been marked as a duplicate of 251010 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.