W3C home > Mailing lists > Public > www-validator-css@w3.org > April 2006

Re: problem with css validator

From: Jens Brueckmann <jens.brueckmann@gmail.com>
Date: Sat, 8 Apr 2006 01:12:08 +0200
Message-ID: <fe03a57b0604071612k1490ccbcm21cab8f312fa1625@mail.gmail.com>
To: www-validator-css@w3.org
Cc: "Christine Ce" <christine.ce@gmail.com>

Hi Christine,

> http://christinec.e-merging.net/wuongean/index.htm
> "Please, validate your XML document first!
> Line 105  Column 76
> Element type "img" must be followed by either attribute specifications, ">"
> or "/>". "

This message, although being applicable in a lot of instances where
errors occur in XML documents, points you to the right direction

> The error it reports is non-existent, the "img" elt IS followed by attribute
> specifications AND then "/>".

No, it is not. When you have a close look at line 105 col 76 you will see:


col76 is the character LATIN SMALL LETTER A.
According to the XML 1.1 Recommendation a white space character would
be expected here. This is clearly expressed in start-tag production at
http://www.w3.org/TR/xml11/#sec-starttags :

  STag ::= '<' Name (S Attribute)* S? '>'

> Plus the document is not XML but XHTML.

The CSS Validator treats documents with XHTML Doctypes and XML
declarations as XML. The HTML validator's XML support on the other
hand has some limitations, which you will find at
http://openjade.sourceforge.net/doc/xml.htm . One of these is that the
following constraint is not discovered:

  | XML does not allow a parameter separator that is adjacent
  | to a delimiter to be omitted

When setting the media type of your document to application/xhtml+xml,
supporting browsers like Opera or Firefox choke on your document and
point out your error.

Enough said, one should be happy that the CSS Validator discovers
errors in your markup where the HTML Validator disregards these.



Jens Brueckmann
Received on Friday, 7 April 2006 23:12:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:42 UTC