Page 1 of 1

Validation of Bulletproof

Posted: Wed Jan 07, 2009 1:23 pm
by konus
Hi,
I just tried to validate my Blog with Validome

It looks pretty good, except of the navigation below the banner
Fehler: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'NMTOKENS'.
Fehlerstelle: <li class="">
and
Fehler: Der Wert '' des Attributes 'class' vom Element 'li' ist für den Typ 'NMTOKENS' ungültig.
Fehlerstelle: <li class=" navlink_last"><a href="http://www.dd4kids.de/pages/kontakt.html"
I think it does have a problem with the class-value being empty or starting with a space. I wounder if the class-names used have a special reason, i.e. browser-compatibility or if I could try to change it.

Re: Validation of Bulletproof

Posted: Wed Jan 07, 2009 1:57 pm
by yellowled
konus wrote:I think it does have a problem with the class-value being empty or starting with a space. I wounder if the class-names used have a special reason, i.e. browser-compatibility or if I could try to change it.
Basically, it's just a matter of keeping the code short.

Yes, if a link is neither the current page nor the first or last item in that list, BP emits class="" for that link - which is not considered invalid by the official w3c validator. Same with the class=" navlink_last" - according to the w3c validator, which I consider to be more authoritative than validome, this is valid html.

I guess we could change that line in order to not emit empty classes, but that would lengthen the code considerably. Don?

YL

Posted: Wed Jan 07, 2009 6:23 pm
by Don Chambers
I have no problems validating bp. class="" is perfectly valid, as is a space preceeding a class name. We could certainly change it so that does not happen, but we would need to lengthen the {if} condition quite a bit to do so. I don't see a compelling reason to do it though.

Posted: Thu Jan 08, 2009 1:34 pm
by konus
Thank you for the fast answers. If you say the code is valid, I prefer to belive you and not validome :lol: