Previous Message
Next Message

RE: [css-d] Numeric IDs

Sent by Ian Hickson on 16 January 2003 18:06


On Thu, 16 Jan 2003, Saila, Craig wrote:
>
> Porter Glendinning wrote:
>> At 11:42 AM 1/16/2003, Saila, Craig digitized these thoughts:
>>> Even more fun:
>>>  <div id="something.new:before">Content</div>
>> [snip]
>> I believe the technically correct way to handle ids with special
>> characters like that is to escape them in your selectors:
>> 
>>    #something\.new\:before { color: red; content: "nothing"; }
> 
> Riiiight... Seems to work in Mozilla and Opera, thanks. 
> 
> Interestingly, Opera 7b2 adds "nothing" to the now red DIV, but removes
> "Content". Mozilla 1.3a makes it red, but doesn't add "nothing"...

Opera's behaviour is correct per proposed CSS3.

Mozilla's behaviour is correct per CSS2.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Previous Message
Next Message

Message thread: