9 May 08:54
FormBuilder-generated code won't HTML validate
Michael Collinson <mikes <at> ayeltd.biz>
2006-05-09 06:54:14 GMT
2006-05-09 06:54:14 GMT
Hi,
We're validating to HTML 4.01 transitional and all our
FormBuilder-generated forms fail because it is generating underbar
prefixed id tags as in the example below. Technically no big deal,
but we can't claim standards compliance unless we can eliminate
this. It also causes a problem with CSS formatting of Submit
buttons; good old IE works with input#fb_submit { ... } but not with
input#_submit { ... } .
Am I missing something simple in my source code to put in a prefix so
that it would generate something like id="fb_submit" instead?
If so, is it possible to generate such a prefix one time in one of
the CGI::Application rather than having to go to each of our many
forms? We are using CGI::Application and HTML::Template.
Regards,
Michael Collinson
Error Line 234 column 11: value of attribute "ID" invalid: "_" cannot
start a name.
is generated from:
<input id="_submit" name="_submit" type="submit" value=" Register " />
<tmpl_var form-start>
...
Email Address: <TMPL_VAR field-email>
(Continue reading)
RSS Feed