Page 1 of 1

CSS Validation Error

Posted: Mon Aug 22, 2005 11:41 am
by anonymous coward
Hi there.

Just finished installing s9y, love it btw.

When set to force XHTML 1.1 (Which is actually 1.0 per the DTD) the document validates. CSS on the other hand does not. (When using the default template)

The error given when run through W3C's validator is:
URI : http://www.hobbycode.com/index.php?/serendipity.css

* Line: 2 Context : img

Property behavior doesn't exist : url("http://www.hobbycode.com/index.php?/plu ... havior.htc")
"/plugin" doesn't actually exist, so I changed it in serendipity_event_browsercompatibility.php to

Code: Select all

/plugins
That didn't work. So I changed it to

Code: Select all

/plugins/serendipity_event_browsercompatibility/pngbehavior.htc
and it still didn't find it. I'm not sure what's going on.

Is S9Y still able to use this file even though the validator cannot find it? Is the original pathname correct?

Not sure if this is a bug or not...

Thanks!

Posted: Mon Aug 22, 2005 1:18 pm
by MySchizoBuddy
hmm i actually disabled the plugin to validate.

Re: CSS Validation Error

Posted: Mon Aug 22, 2005 2:20 pm
by garvinhicking
The path name of the plugin is right, as the file itself gets accessed using index.php rewriting.

The CSS validator error says that the "behaviour" CSS attribute is invalid, not the referenced URL.

However that behaviour is required by InternetExplorer, and the plugin is used to that IE can display transparent images. That means, all is basically fine if you can live with non-validating CSS (which werks perfect though in all browsers).

If you don'T want to live with non-validating CSS you can remove the browsercompatibility plugin. The drawback is that InternetExplorer users will not see transparent images then. :)

Regards,
Garvin