WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: web accessiblity - how to vildate JSP page

for

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

From: MUHAMMAD AKRAM
Date: Wed, Jun 27 2007 12:50AM
Subject: web accessiblity - how to vildate JSP page
No previous message | Next message →

I was trying to vildate (html vildator w3c) our government website
http://www.pakistan.gov.pk

it said <!DOCTYPE not exist however when i check the source code it exist!

besides when i tried to check other than home page
http://www.pakistan.gov.pk/GovContacts_new.jsp

i got error that it can not be vildate.

any help? can anyone check this site for me for accessibility, our government set an e-government directorate I'd like to get their attention on web accessiblity.

Thanks
Akram



---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.

From: Jared Smith
Date: Wed, Jun 27 2007 2:10AM
Subject: Re: web accessiblity - how to vildate JSP page
← Previous message | Next message →

On 6/27/07, MUHAMMAD AKRAM < = EMAIL ADDRESS REMOVED = > wrote:
> I was trying to vildate (html vildator w3c) our government website
> http://www.pakistan.gov.pk

Please note that this is a web accessibility mailing list. While I *do
not* want to raise this issue of the impact of validity on
accessibility, the fact that your site does not validate isn't really
relevant to the topics this list addresses.

> it said <!DOCTYPE not exist however when i check the source code it exist!

It is probably throwing the error because the DOCTYPE is not formatted
correctly. DOCTYPE is case sensitive and the text "html" in your page
should be UPPERCASE. Also, it should appear in the first line in the
code - yours is on line 15.

> besides when i tried to check other than home page
> http://www.pakistan.gov.pk/GovContacts_new.jsp
>
> i got error that it can not be vildate.

There seems to be some encoding error that is causing the error. It is
probably an illegal character somewhere in the several blank lines
before the DOCTYPE declaration.

Jared Smith
WebAIM

From: John Foliot - Stanford Online Accessibility Program
Date: Thu, Jun 28 2007 8:40AM
Subject: Re: web accessiblity - how to vildate JSP page
← Previous message | Next message →

Jared Smith wrote:
> Please note that this is a web accessibility mailing list. While I *do
> not* want to raise this issue of the impact of validity on
> accessibility, the fact that your site does not validate isn't really
> relevant to the topics this list addresses.

WCAG Priority 2: 3.2 "Create documents that validate to published formal
grammars."
[http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-identify-grammar]

Does not this then make it relevant?

JF

From: Jared Smith
Date: Thu, Jun 28 2007 9:10AM
Subject: Re: web accessiblity - how to vildate JSP page
← Previous message | No next message

On 6/28/07, John Foliot wrote:
> WCAG Priority 2: 3.2 "Create documents that validate to published formal
> grammars."
> [http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-identify-grammar]
>
> Does not this then make it relevant?

Relevant to WCAG 1.0? Yes. Relevant to accessibility? Probably not. At
least nobody has yet proven that incorrect case in a DOCTYPE renders a
page inaccessible. And don't make me bring up the unencoded ampersands
thing, John. ;-) Like I said, I didn't want to go there. But now that
we are there, here are a few resources:

John's article on the topic:
http://www.wats.ca/show.php?contentid=38

The only (though quite extreme) case I've seen of invalid code *alone*
causing accessibility issues:
http://alastairc.ac/2006/06/invalid-html-interfering-with-accessibility

Our fairly thorough discussion on the topic a few months ago:
http://www.webaim.org/discussion/mail_thread.php?thread=3271

Jared