WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Confused W3 css valitation error

for

Number of posts in this thread: 4 (In chronological order)

From: smithj7
Date: Fri, May 05 2006 8:50AM
Subject: Confused W3 css valitation error
No previous message | Next message →


Link to page in question.
http://dbs.myflorida.com/newsletter/index.shtml

I check xhtml of page with w3 validator. Validated
Then I checked the css style sheet. Valitated

Then I put up site and with the w3 links (css checked by page links)

Got following error:

Target: http://dbs.myflorida.com/newsletter/index.shtml
Please, validate your XML document first!

Line 227

Column 75

Element type "option" must be followed by either attribute
specifications, ">" or "/>".

Checked and double checked option and they are are closed to the best of
my knowledge. Is it possibly my doc type. This is a html page not a
xml page.





From: John S. Britsios
Date: Fri, May 05 2006 9:00AM
Subject: Re: Confused W3 css valitation error
← Previous message | Next message →

You html document has errors, even if W3C validator have not found them.

As you must know a quoted string (like an attribute value) cannot be
immediately followed by text. It must be followed by a space or by the
end of the tag. Is there a missing space character.

Here are the places the problem are:

<option
value="http://dbs.myflorida.com/newsletter/accesstech/2004_12.htm"selected="selected">December</option>
<option
value="http://dbs.myflorida.com/newsletter/accesstech/2004_12.htm"selected="selected">December</option>
<option
value="http://dbs.myflorida.com/newsletter/EyeOnUs/1205.html"selected="selected">December</option>
<option
value="http://dbs.myflorida.com/newsletter/EyeOnUs/eye1204.html"selected="selected">December</option>
<option
value="http://dbs.myflorida.com/newsletter/EyeOnUs/eye1203.html"selected="selected">December</option>

Best,

John




smithj7 wrote:
> Link to page in question.
> http://dbs.myflorida.com/newsletter/index.shtml
>
> I check xhtml of page with w3 validator. Validated
> Then I checked the css style sheet. Valitated
>
> Then I put up site and with the w3 links (css checked by page links)
>
> Got following error:
>
> Target: http://dbs.myflorida.com/newsletter/index.shtml
> Please, validate your XML document first!
>
> Line 227
>
> Column 75
>
> Element type "option" must be followed by either attribute
> specifications, ">" or "/>".
>
> Checked and double checked option and they are are closed to the best of
> my knowledge. Is it possibly my doc type. This is a html page not a
> xml page.
>
>
>
>
>
>





From: Patrick Lauke
Date: Fri, May 05 2006 9:30AM
Subject: RE: Confused W3 css valitation error
← Previous message | Next message →

> smithj7

> Link to page in question.
> http://dbs.myflorida.com/newsletter/index.shtml
>
> I check xhtml of page with w3 validator. Validated
> Then I checked the css style sheet. Valitated
>
> Then I put up site and with the w3 links (css checked by page links)
>
> Got following error:
>
> Target: http://dbs.myflorida.com/newsletter/index.shtml
> Please, validate your XML document first!
>
> Line 227
>
> Column 75
>
> Element type "option" must be followed by either attribute
> specifications, ">" or "/>".
>
> Checked and double checked option and they are are closed to
> the best of
> my knowledge. Is it possibly my doc type. This is a html page not a
> xml page.

It's caused by the fact that you don't have a space between the closing
double quote of your option's value and the selected attribute name.

i.e. at the moment you have

....accesstech/2004_12.htm"selected="selected">December....

where it should be

....accesstech/2004_12.htm" selected="selected">December....

Now I can't remember if it's ok not to have the space there, but to be
safe add that space in there...then it should work and the CSS validator
won't complain.

P
________________________________
Patrick H. Lauke
Web Editor / University of Salford
http://www.salford.ac.uk
________________________________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
________________________________




From: smithj7
Date: Sat, May 06 2006 6:40AM
Subject: RE: Confused W3 css valitation error
← Previous message | No next message

THANK YOU!!! Such a small thing! I was looking at the ending tag
<option> cause that was what the validation said. Next time, I'll pay
attention to the whole line.

-----Original Message-----
From: = EMAIL ADDRESS REMOVED =
[mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Patrick Lauke
Sent: Friday, May 05, 2006 11:20 AM
To: WebAIM Discussion List
Subject: RE: [WebAIM] Confused W3 css valitation error


> smithj7

> Link to page in question.
> http://dbs.myflorida.com/newsletter/index.shtml
>
> I check xhtml of page with w3 validator. Validated
> Then I checked the css style sheet. Valitated
>
> Then I put up site and with the w3 links (css checked by page links)
>
> Got following error:
>
> Target: http://dbs.myflorida.com/newsletter/index.shtml
> Please, validate your XML document first!
>
> Line 227
>
> Column 75
>
> Element type "option" must be followed by either attribute
> specifications, ">" or "/>".
>
> Checked and double checked option and they are are closed to
> the best of
> my knowledge. Is it possibly my doc type. This is a html page not a
> xml page.

It's caused by the fact that you don't have a space between the closing
double quote of your option's value and the selected attribute name.

i.e. at the moment you have

....accesstech/2004_12.htm"selected="selected">December....

where it should be

....accesstech/2004_12.htm" selected="selected">December....

Now I can't remember if it's ok not to have the space there, but to be
safe add that space in there...then it should work and the CSS validator
won't complain.

P
________________________________
Patrick H. Lauke
Web Editor / University of Salford
http://www.salford.ac.uk
________________________________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/ ________________________________

Address list
messages to = EMAIL ADDRESS REMOVED =