ZF-5838: Incorrect usage of XHTML Endtag

Issue Type: Bug Created: 2009-02-19T07:03:31.000+0000 Last Updated: 2009-02-19T10:32:48.000+0000 Status: Resolved Fix version(s): Reporter: Adriaan Graas (adriaan) Assignee: Benjamin Eberlei (beberlei) Tags: - ZendX_JQuery

Related issues: - ZF-5839



With a HTML doctype (set to view), JQuery still writes with a XHTML closing /> I think it would be a good idea if Zend_JQuery would use the View Helpers HeadLink() and HeadScript().


Posted by Benjamin Eberlei (beberlei) on 2009-02-19T09:41:51.000+0000

do you mean the tags?

I can't use HeadLink and HeadScript, because they don't enforce dependencies which are required, also they offer only one stack and no additional loading on that, it has some disadvantages.

Posted by Adriaan Graas (adriaan) on 2009-02-19T10:28:41.000+0000


Sorry for being unclear. I quicksaved the bugs i found yesterday in my project, so its a bit messy for me. I meant to say .

Can't you create a new object and use it as stack only or is that to much of a memory overload? Or is it singleton? Sorry, if this is a bit noobish.

Here's some example code:

<?php $this->jQuery()->setLocalPath('/script/jquery/jquery-1.3.1.js'); ?>
<?php $this->jQuery()->setUiLocalPath('/script/jquery/jquery-ui-1.6rc6.js'); ?>
<?php $this->jQuery()->addStylesheet('/style/jquery/ui.all.css'); ?>
<?php $this->jQuery()->enable(); ?>
<?php $this->jQuery()->uiEnable(); ?>
<?= $this->jQuery(); ?>

This returns:

I'm using the HTML4.01 STRICT doctype, and as you see, the tag is being rendered as being XHTML. HTML does not require the tag to be closed as far as i know.

It is possible to fetch the Doctype from the view object ofcourse, if that isnt done already.

Keep up the good work.

Posted by Adriaan Graas (adriaan) on 2009-02-19T10:29:35.000+0000

Posted by Benjamin Eberlei (beberlei) on 2009-02-19T10:31:11.000+0000

if its i already fixed it in one of the other bugs ups :-)

the container helpers are always singletons via Zend_Registry internally, which is very ugly, but thats the way its done :-/

Posted by Benjamin Eberlei (beberlei) on 2009-02-19T10:32:48.000+0000

Fixed in ZF-5839 and merged back into 1.7 release branch

Have you found an issue?

See the Overview section for more details.


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

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