Closed Bug 207461 Opened 21 years ago Closed 21 years ago

HTML entities don't work correctly in CSS content rule.

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: johno, Assigned: dbaron)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312

content: " ";

in 
q:before { content: " "; }

and the browser prints out the string   not the non-breaking space

Reproducible: Always

Steps to Reproduce:
1. Make any CSS rule like p:after { content: "[ ]"; }
2.
3.



Expected Results:  
Mozilla should replace it with valid html entity representation.
Reading the CSS2 and even CSS3 specs on content, I believe that content isn't
supposed to do that.  You're simply giving it a text string to output (generally
speaking).  I suspect this bug is invalid.
See bug 204324 comment 1.  Mozilla is not supposed to replace &nbsp and it
should be returning the actual string.  So this is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
*** Bug 215770 has been marked as a duplicate of this bug. ***
*** Bug 281262 has been marked as a duplicate of this bug. ***
*** Bug 292192 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.