logo       

[ tidy-Bugs-1901689 ] 12.4.1.2 associate labels...flagging hidden tags erro: msg#00009

web.html-tidy.tracker

Subject: [ tidy-Bugs-1901689 ] 12.4.1.2 associate labels...flagging hidden tags erroneously

Bugs item #1901689, was opened at 2008-02-25 12:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1901689&group_id=27659

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Accessibility
Group: Current - all platforms
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mufasa (mufasa)
Assigned to: Nobody/Anonymous (nobody)
Summary: 12.4.1.2 associate labels...flagging hidden tags erroneously

Initial Comment:
Hidden (and a few other) input fields are getting flagged under Accessibility
Level 2 rule 12.4.1.2 ("associate labels explicitly with form controls") when
they should not be.

See http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20071211/H44.html#H44-description
for more info. The important parts are:

<quote>
Note 1: Elements that use explicitly associated labels are:

* input type="text"
* input type="checkbox"
* input type="radio"
* input type="file"
* input type="password"
* textarea
* select

Note 2: The label element is not used for the following because labels for
these elements are provided via the value attribute (for Submit and Reset
buttons), the alt attribute (for image buttons), or element content itself
(button).

* Submit and Reset buttons (input type="submit" or input type="reset")
* Image buttons (input type="image")
* Hidden input fields (input type="hidden")
* Script buttons (button elements or <input type="button">)
</quote>

(I have not tested if the other controls in this list are incorrectly flagged
or not.)



This is especially noticeable for any developers that use frameworks, such as
ASP.NET, that use hidden fields to track view state on every page.

Example:

<input type="hidden" name="ctl1000" id="__VIEWSTATE"
value="/wEPDwdfczNTUyMzEyZGTrFxuLgwqTI4uljgQqg==" />

(Although, any hidden type input tag will flag this rule, when it shouldn't.)




----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1901689&group_id=27659

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise