Quote from: lluuuk at Aug 11, 2010, 01:53 PM
....................
I didn’t say it is invalid, I just never saw it this way but as you said, I could validate it myself! Does the validator just not care about the content of an attribute, can this be the case?
From the HTML4 spec...
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
IIRC HTML5 loosens this, the only rule is that the name attribute can’t be an empty string if given. Just to be sure i tend to always use simple lowercase alphabetical names.
there comes another question along with the inputs: How about the placeholders in the value attribute, the [[+fi.name]], as you mentioned above... I don’t see through technically yet but I would like to because I want to make FormIt work as an "AJAX-Form" (I had this with eForm...) and I think these placeholders are something crucial...
so for what are they there and what do they do?
In that respect i don’t think there is a big difference with eform:
<input type="text" name="adres" id="adres" size="20" maxlength="48" eform="Adres::1:"/>
renders to
<input type="text" name="adres" id="adres" size="20" maxlength="48" value="" />
So i’m guessing in Formit things like
value="[[+fi.username]]" will also become something like
value=""