Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-23 18:16:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

section 508 validation

It would be great if txp output could validate in section 508 (http://www.contentquality.com/).
A task which seems to be very simple as the only things which fail the validations are the search and the comment input text fields. With the addition of an alt attribute in those fields sites will have the possibility of validating under section 508.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2005-10-23 21:11:10

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: section 508 validation

alt attributes on form input fields? Um, I think something’s gone wrong or been misinterpreted somewhere…


You cooin’ with my bird?

Offline

#3 2005-10-24 05:21:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: section 508 validation

Here are the results from the 508 validation check

<blockquote>Rule: 1.1.2 – All INPUT elements are required to contain the alt attribute or use a LABEL.

Failure – INPUT Element, of Type TEXT, found at Line: 84, Column: 54
Failure – INPUT Element, of Type TEXT, found at Line: 217, Column: 16
Failure – INPUT Element, of Type TEXT, found at Line: 221, Column: 16
Failure – INPUT Element, of Type TEXT, found at Line: 226, Column: 16
Failure – INPUT Element, of Type CHECKBOX, found at Line: 227, Column: 1</blockquote>

When hand coding the forms and using an alt tag the validation succeeds

Last edited by colak (2005-10-24 05:24:17)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2005-10-24 07:11:29

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: section 508 validation

Yeah, what you want there is really a label, not alt text. You can add an alt attribute, but I don’t think it’s widely supported (if it’s supported at all) for form inputs, whereas adding a label is, and improves usability for everyone.


You cooin’ with my bird?

Offline

#5 2005-10-24 20:53:00

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: section 508 validation

The LABEL element has a totally different purpose; that being to specify a textual label for controls that do not have implicit labels.

ALT is to provide a textual context for those elements that may not be correctly rendered in a browser.

The <code>alt</code> attribute is required HTML for IMG and AREA elements to validate. It is optional but valid for the INPUT and APPLET elements.

For reference:

http://www.w3.org/TR/REC-html40/interact/forms.html#edef-LABEL
http://www.w3.org/TR/REC-html40/interact/forms.html#edef-INPUT
http://www.w3.org/TR/REC-html40/struct/objects.html#adef-alt


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

Board footer

Powered by FluxBB