-- Martijn De Letter <[EMAIL PROTECTED]> wrote (on Monday, 08 September 2008, 06:14 AM -0700): > I tried to add field 'field%%' to an Element, but the % character is > stripped from the name. > The '%' character is stripped by the ^a-zA-Z0-9_\x7f-\xff regex in the > filterName function. > > So why is the % character stripped from the name? > > According to the W3C standard a name attribute of an input is a CDATA type: > see > http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-transitional.dtd_input
I answered this earlier today for another developer as well. In Zend_Form, for a variety of reasons, we only allow valid variable names for element names. You can certainly override this behavior, but be aware that certain things such as overloading, using some config formats, etc., will not work if you do so. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
