Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 79722

Summary: gentoo-webroot-default is not valid -//W3C/DTD XHTML 1.0 Transitional//EN
Product: Gentoo Linux Reporter: Holly <holly-gentoo-bugzilla>
Component: [OLD] UnspecifiedAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED TEST-REQUEST    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://validator.w3.org/check?uri=http%3A%2F%2Fshinra.phren.net%2Fgentoo-webroot-default%2F
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 76457    
Attachments: valid index.html

Description Holly 2005-01-27 06:59:58 UTC
I just tested the new gentoo-webroot-default. It looks nice and I like it better than the default apache-page, but unfortunatly it is not fully standard compliant.

There's a link to the w3-validator in the "url"-field. I'll attach a fully valid index.html in a second post.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Holly 2005-01-27 07:01:48 UTC
Created attachment 49663 [details]
valid index.html

This is a valid index.html file.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2005-01-27 07:42:22 UTC
gentoo-webroot-default also doesn't include icons (dir listing broken, etc)
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2005-01-28 09:03:43 UTC
this is fixed in cvs. please test
Comment 4 Holly 2005-01-28 11:13:51 UTC
Works for me.

But one thing: I don't know much about current markup-language standards, but why are "" and '' both used? It makes no sense for me to mix quotation marks.
Comment 5 Christian Parpart (RETIRED) gentoo-dev 2005-01-28 19:02:33 UTC
> But one thing: I don't know much about current markup-language 
> standards, but why are "" and '' both used? It makes no sense for me to mix quotation marks.

the W3 working groups for XML/XHTML (dunno about HTML4 and prior) recommend using single quotes (') but allow double quotes (") as well. Since it may happen, that you also wanne write quotes inside element attribute content, let's say single quotes, they recomment using double quotes for defining the element attribute and vice versa for the other way around.
So, it's a matter of taste, single quotes look cleaner (to me) but sometimes you need to quote a string inside the element attribute. So I use double quotes for the outer string and single quotes for the inner string (happens very often in XPath expression in XSLT documents).

Finally, thanks for the conformance test, I must just have been to tired when writing this file ;) Thanks.