HighDots Forums  

Usage of character references in generated content

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Usage of character references in generated content in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Headless
 
Posts: n/a

Default Usage of character references in generated content - 07-07-2003 , 08:16 AM






Are character references allowed in generated content, in other words
should they be parsed by a UA?

(Opera does, Moz doesn't)


Headless


Reply With Quote
  #2  
Old   
Arve Bersvendsen
 
Posts: n/a

Default Re: Usage of character references in generated content - 07-07-2003 , 09:18 AM






Headless wrote in news:stnigvg8reavv4434n9q3spn5csli3c55u (AT) 4ax (DOT) com:

Quote:
Are character references allowed in generated content, in other
words should they be parsed by a UA?
<URL:http://www.w3.org/TR/CSS2/syndata.html#q24>

# Note. In HTML 4.0, numeric character references are interpreted in
# "style" attribute values but not in the content of the STYLE
# element. Because of this asymmetry, we recommend that authors use
# the CSS character escape mechanism rather than numeric character
# references for both the "style" attribute and the STYLE element.
# For example, we recommend:
#
# <SPAN style="voice-family: D\FC rst">...</SPAN>
#
# rather than:
#
# <SPAN style="voice-family: Dürst">...</SPAN>

and <URL:http://www.w3.org/TR/CSS2/syndata.html#escaped-characters>

# In CSS2, a backslash (\) character indicates three types of
# character escapes.

Thus: If you want unicode references you should use the hexadecimal
numeric value, prepended by \. Example:

ul li a:before {
content: "\25B9\00A0";
}


--
Arve | http://www.bersvendsen.com/ | http://www.virtuelvis.com/

Lyd i nettbasert reklame? Nei takk!
http://www.bersvendsen.com/stillhet/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.