<xforms:input ref="Transactions/FederalCash/CashReceipts">
<xforms:label>Cash Receipts</xforms:label> <xforms:alert>Please enter a valid amount</xforms:alert> </xforms:input> Would generate an HTMl which isn't 508 complaint: <label class="xforms-label" id="xf-78-label" for="xf-78">Cash Receipts</label> <input id="xf-78$xforms-input-1" type="text" name="xf-78$xforms-input-1" value="0" class="xforms-input-input xforms-type-decimal"> the <label> tag's 'for' attribute points to the tag (xf-78). To comply to 508 standards, shouldn't it point to the <input> tag? Shouldn't the 'for' attribute be for="xf-78$xforms-input-1"? -- You receive this message as a subscriber of the ops-users@ow2.org mailing list. To unsubscribe: mailto:ops-users-unsubscribe@ow2.org For general help: mailto:sympa@ow2.org?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Mark,
As far as I know this has been fixed. Have you tried this with a nightly build? Alex On Fri, Mar 19, 2010 at 1:45 PM, Mark Bryan Yu <[hidden email]> wrote: > <xforms:input ref="Transactions/FederalCash/CashReceipts"> > <xforms:label>Cash Receipts</xforms:label> > <xforms:alert>Please enter a valid amount</xforms:alert> > </xforms:input> > > Would generate an HTMl which isn't 508 complaint: > > <label class="xforms-label" id="xf-78-label" for="xf-78">Cash > Receipts</label> > <span id="xf-78" class="xforms-control xforms-input xforms-type-decimal"> > <input id="xf-78$xforms-input-1" type="text" name="xf-78$xforms-input-1" > value="0" class="xforms-input-input xforms-type-decimal"> > </span> > > the <label> tag's 'for' attribute points to the <span> tag (xf-78). To > comply to 508 standards, shouldn't it point to the <input> tag? > > Shouldn't the 'for' attribute be for="xf-78$xforms-input-1"? > > [ Show » <http://jira.rnsolutions.com/browse/GS-4356> ] > Mark Yu <http://jira.rnsolutions.com/secure/ViewProfile.jspa?name=myu> added > a comment - 19/Mar/10 04:29 PM ok. i can hide the label using CSS.. but im > not sure if reader would read it if it has a "display:none". Another issue, > we have is the label isn't associated with the input field. here the output > HTML: <label class="hidden-508 xforms-label" id="xf-78-label" > for="xf-78">Cash Receipts</label> <span id="xf-78" class="xforms-control > xforms-input xforms-type-decimal"> <input id="xf-78$xforms-input-1" > type="text" name="xf-78$xforms-input-1" value="0" class="xforms-input-input > xforms-type-decimal"> </span> The label is associated to the span and not to > the input tag. This the xforms code to generate the HTML above: > <xforms:input ref="Transactions/FederalCash/CashReceipts"> > <xforms:label class="hidden-508">Cash Receipts</xforms:label> > <xforms:alert>Please enter a valid amount</xforms:alert> > </xforms:input> > > ______________________________________________________________________ > This e-mail has been scanned by MCI Managed Email Content Service, using > Skeptic(tm) technology powered by MessageLabs. > ______________________________________________________________________ > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |