Issues

ZF-5714: jQuery UI TabContainer helper addnig extra invalid attribute to div container

Description

I created a tab container as such for a multi page form:


class forms_JudgmentWrapper extends ZendX_JQuery_Form   {

    public function init() {

        $this->setAction('/');
        $this->setAttrib('id', 'JudgmentWrapper');
        $this->setAttrib('class', 'flora');     
        $this->clearDecorators();
        $this->setDecorators(array(
            'FormElements',
            array('TabContainer', array(
                'id' => 'tabContainer',
                'style' => 'width: 800px;',
            )),
            'Form',
        ));

    }
}

The resulting HTML source is:


Notice the invalid attribute in the div: action="/"

If i remove the $this->setAction('/'); this is the result:


which is correct for the div, does not contain extra invalid attribute.

It would be nice to set the action of the form like done above, and per the documentation without it injecting it into the div tag.

Comments

Hello,

this is indeed strange behaviour and i will look what is causing this.

so i found the issue, i have to check how to fix it though. i'll keep you posted! won't take too long though

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.