10 Feb 23:53
[FormBuilder] CGI::FB and XHTML 1.1
From: José Parrella <joseparrella <at> gmail.com>
Subject: [FormBuilder] CGI::FB and XHTML 1.1
Newsgroups: gmane.comp.lang.perl.modules.formbuilder
Date: 2007-02-10 22:55:20 GMT
Subject: [FormBuilder] CGI::FB and XHTML 1.1
Newsgroups: gmane.comp.lang.perl.modules.formbuilder
Date: 2007-02-10 22:55:20 GMT
I've been validating some of my applications using CGI::FB with the W3C validator, and it seems that the 'name' and 'charset' attributes are not allowed inside the <form> tag. However, setting a 'name' for the form is essential in order to get special stylesheeting over elements with id's like FormName_Field_Element. Also, setting 'charset' is useful for internal uses. Not dumping name= and charset= in the <form> tag would be nice, since it would still allow internal methods to access those options while being XHTML 1.1 compliant. I've been browsing the code but I can't point where the actual <form> tag is built. In Template/Builtin.pm, however, I assume it's comming from $form->text. I tried, unsuccesfully, to track $form down the parent methods. Maybe a 'compat' option in the new() method could prove useful (instead of just changing this things to make CGI::FB compliant). Another change that is needed is the removal of the <noscript> part in the JS output. This could be accomplished avoiding "push @html, $form->noscript if $js;" in Builtin.pm Jose -- -- José M. Parrella -> Debian Sid, k2.6.18 Escuela de Ingenieria Electrica Universidad Central de Venezuela -> ucvlug.info _______________________________________________ FBusers mailing list FBusers <at> formbuilder.org(Continue reading)
RSS Feed