Closed Bug 281262 Opened 21 years ago Closed 21 years ago

special characters in CSS attribute 'content:' (used in ':after') are not handled

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 207461

People

(Reporter: ja.stiebing, Assigned: dbaron)

Details

User-Agent: Opera/7.50 (Windows NT 5.0; U) [en] Build Identifier: Mozilla 1.7a Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040219 CSS extraction: .out:after { Content:"&nbsp;("url(../pics/exit.png)")"; } HTML extraction: link to <a class="out" href="http://www.mozilla.org/download.html" target="_blank" name="mozilla" title="Mozilla">Mozilla</a>... If one is trying to use these codes, the picture is correctly displayed after the link, but instead of a space between link text and picture there appears the string '&nbsp;'. This seeme to happen with each kind of special characters (e.g '&pound;', '&euro;') Reproducible: Always
those are HTML entities... since this is CSS, this seems to work as intended. note this part of http://www.w3.org/TR/CSS21/generate.html#content : "In particular, it is not fed back to the document language processor (e.g., for reparsing)." you can use \a0 if you want a non-breaking space in CSS, if I'm reading this right
Assignee: general → dbaron
Component: General → Style System (CSS)
Product: Mozilla Application Suite → Core
QA Contact: general → ian
Version: unspecified → Trunk
*** This bug has been marked as a duplicate of 207461 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
ah, yes. bug 204324 might have been a better dupe target, but anyway, vrfy.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.