Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrong CSS validation error? Aptana studio vs W3-Validator

#header ul li a[title="Über uns"] {
    background-image:url(images/header.jpg);
}

is said to be an lexical error by Aptana studio because of the Ü in the first line. The W3-Validator says its valid CSS, and also the Browsers understand. So its a bug?

like image 691
Sameera Thilakasiri Avatar asked Jun 28 '26 07:06

Sameera Thilakasiri


2 Answers

as long as your files are saved and the page is delivered with an encoding that supports german umlauts like "Ü" (utf-8, for example), everything is fine. if so, and Aptana studio still shows an error, it's a bug in Aptana studio.

like image 86
oezi Avatar answered Jun 29 '26 21:06

oezi


Workaround for this, if your url is in english:

#header ul li a[href~="about"] {

I think, the Aptana devs just forgot the Umlauts.

like image 25
sascha Avatar answered Jun 29 '26 20:06

sascha