Clear questions and runnable code
get the best and fastest answer
CGI.pm tag attributes and underscoresby Hero Zzyzzx (Curate)
|on Dec 15, 2004 at 19:46 UTC||Need Help??|
Hero Zzyzzx has asked for the
wisdom of the Perl Monks concerning the following question:
I use CGI.pm to generate all my form elements and the automagical stuff it does in the background is usually helpful, but not in this case.
I'm integrating a through-the-web WYSIWYG editor with a content management system. One way you can tell it to take control of a field is to add an attribute named "mce_editable" to a <textarea> tag. Unfortunately, CGI automatically turns "_" in attributes into hyphens.
when I want it to output:
I'm not sure if "_" are valid in attribute names, and a quick glance at the HTML4 DTD didn't answer that question for me. I've also looked at the CGI.pm source and nothing jumped out at me.
Ideas? Any other options other than subclassing CGI.pm to make textareas work the way I want?
-Any sufficiently advanced technology is