Matthew Weier O'Phinney schreef:
-- Bart McLeod <[EMAIL PROTECTED]> wrote
(on Tuesday, 15 July 2008, 08:16 PM +0200):
I am currently working in version 9906 or so of standard/trunk.

A while ago I noticed that input tags in forms get the correct XHTML formatting (<input /> instead of <input >), just because I added a doctype view helper to the view.
I was very happy with this behavior, because it freed me from the task.

However, today I noticed that this behavior has changed. Now, all my elements are rendered as <input ... > which yields something like 69 errors in the w3c validator for XHTML strict.

Anyone knows what to do about this? And what changed?

Nothing has changed in that regard to my knowledge; the only changes
I've made to Zend_Form are the lazyloading (covered in another thread).

There _is_ active development of Zend_View_Helper-related items in the
incubator, however. Are you using the incubator in your include_path? If
so, I may have an idea what the culprit is.

Finally, can you verify that you've set the doctype prior to rendering
the form?

I am not using the incubator, but it is likely that I did not set the doctype prior to rendering in all of the cases. I use to render the form in the controller and set it as a property on the view. This will mean I have to set the doctype on the view in the controller, before I render the form. I will try. And YES, this solves the problem (obviously :-) ). Many thanks for your fast reply!

Reply via email to