XForms: Question about tax form example
Erik Bruchez <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
All, I notice that this example, linked from here: http://www.mozilla.org/projects/xforms/ http://www.mozilla.org/projects/xforms/sample1.xhtml uses <xforms:label> all over the place outside XForms controls. It is my understanding that <xforms:label> must be used within a control element, see: http://www.w3.org/TR/xforms/slice8.html#ui-commonelems-label "This required element labels the containing form control with a descriptive label" So instead of: <xf:label>Your first name and initial</xf:label> <br/> <xf:input ref="/f1040ez/section01/fname"/> Use: <xf:input ref="/f1040ez/section01/fname"> <xf:label>Your first name and initial</xf:label> </xf:input> If what I am saying is right, using <xforms:label> outside form controls shouldn't even work. Also, in the same example, I notice that the same "id" attributes are used on many elements. I believe "id" attributes in XHTML must be unique. Instead, the example should use class attributes for the purpose of styling. Please let me know if I should file bugs, but I think it's best if the Mozilla XForms project doesn't start with spreading incorrect XForms examples. -Erik