Re: Web Accessibility - Section 508 Compliance
"Joe R. Jah" <[email protected]> Thu, 16 Nov 2006 09:49:34 -0800 (PST)
| Newsgroups | gmane.comp.web.htdig.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 14 Nov 2006, ICBG Global Data Center wrote: > Date: Tue, 14 Nov 2006 15:21:43 -0800 (PST) > From: ICBG Global Data Center <[email protected]> > To: [email protected] > Subject: [htdig] Web Accessibility - Section 508 Compliance > > Hi, > > We are using htdig for a web site that must be 508 compliant. > In the mail archive, I found my question asked, but did not find > an answer. (There was one answer from Tsjebbe de Vries but > he misunderstood the question). > > http://sourceforge.net/mailarchive/message.php?msg_id=9533373 > > If there is an answer in the archive, please point me at it. > > If not, then, in the archive, Martin states his question well. > But, I can add an html example for clarity. Here is an html snippet > generated by htDig: > > <input type="hidden" name="exclude" value=""> > Match: <select name="method"> > <option value="and" selected>All > <option value="or">Any > <option value="boolean">Boolean > </select> > > This form is not considered accessible to a blind person. To be > accessible the select statement must contain an id that ties it to the > label. > > <input type="hidden" name="exclude" value=""> > <label for="Match">Match: </label> > <select name="method" id="Match"> > <option value="and" selected>All > <option value="or">Any > <option value="boolean">Boolean > </select> > > This problem can be solved by having htdig generate an id that is > identical to the name attribute. > > <select name="method" id="method">....</select> > <select name="format" id="format"> > <select name="sort" id="sort"> > > etc. etc. Then by looking at the generated html, one can determine the > label to use. ie: > > <label for="method">Match: </label> > <label for="format">Format: </label> > <label for="sort">Sort by: </label> > > Any help would be appreciated. Edit the following lines in htsearch/Display.cc and libhtdig/ResultFetch.cc: *str << "<select name=\"format\">\n"; *str << "<select name=\"method\">\n"; *str << "<select name=\"sort\">\n"; To: *str << "<select id=\"format\" name=\"format\">\n"; *str << "<select id=\"method\" name=\"method\">\n"; *str << "<select id=\"sort\" name=\"sort\">\n"; Recompile and install. Also edit the following lines in common/syntax.html: Match: $(METHOD) Format: $(FORMAT) Sort: $(SORT) To: <label for="method">Match:</label> $(METHOD) <label for="Format">Format:</label> $(FORMAT) <label for="Sort">Sort:</label> $(SORT) > Thanks > Dee > > --------------------------------------------- > ICBG Global Data Center > P.O. Box 837 > 325 Court Street > Friday Harbor, WA 98250 > > 800.567.8725 > 360.378.7292 > [email protected] Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah [email protected] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ ht://Dig general mailing list: <[email protected]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general