Issues

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

Issue Type: Bug Created: 2009-02-07T17:30:41.000+0000 Last Updated: 2012-11-20T20:52:34.000+0000 Status: Closed Fix version(s): Reporter: Brian Passavanti (gottaloveit) Assignee: None Tags: - ZendX_JQuery

Related issues: Attachments:

Description

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

<pre class="highlight">
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:

<pre class="highlight">

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

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




<pre class="highlight">

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

Posted by Benjamin Eberlei (beberlei) on 2009-02-08T02:16:54.000+0000

Hello,

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

Posted by Benjamin Eberlei (beberlei) on 2009-02-12T11:04:51.000+0000

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

Posted by Rob Allen (rob) on 2012-11-20T20:52:34.000+0000

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts