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)
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.
Comment 1•21 years ago
|
||
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.
Comment 2•21 years ago
|
||
See bug 204324 comment 1. Mozilla is not supposed to replace   and it
should be returning the actual string. So this is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 3•21 years ago
|
||
See http://www.w3.org/TR/CSS21/syndata.html#q4 for documentation of CSS
character escapes.
Comment 4•21 years ago
|
||
*** Bug 215770 has been marked as a duplicate of this bug. ***
Comment 5•20 years ago
|
||
*** Bug 281262 has been marked as a duplicate of this bug. ***
Comment 6•19 years ago
|
||
*** 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.
Description
•