ZF-4090: invalid xhtml in YouTubeVideoApp

Issue Type: Coding Standards Violation Created: 2008-08-27T07:47:41.000+0000 Last Updated: 2008-11-13T14:10:29.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Erel Segal (erelsgl) Assignee: Jochen Hartmann (jhartmann) Tags: - Zend_Gdata

Related issues: Attachments:


in Zend/GData/demos/Zend/GData/YouTubeVideoAp/p/operations.php, there are some functions that generate invalid HTML.

This causes problems when trying to incorporate the examples in a gadget that uses XML, i.e. taconite.

To make it valid, you should use htmlspecialchars. For example: * In function echoVideoPlayer - (NOTE: add missing quote at embed tag) $videoTitle = htmlspecialchars($entry->getVideoTitle()); $videoUrl = htmlspecialchars(findFlashUrl($entry)."&autoplay=1");

  • In function echoVideoMetadata - $title = htmlspecialchars($entry->getVideoTitle()); $description = htmlspecialchars($entry->getVideoDescription()); $authorUsername = htmlspecialchars($entry->author[0]->name); $tags = htmlspecialchars(implode(', ', $entry->getVideoTags())); $watchPage = htmlspecialchars($entry->mediaGroup->player[0]->url); $flashUrl = htmlspecialchars(findFlashUrl($entry));
    • In function echoThumbnails: (NOTE: close img tag correctly) echo ''     . $firstThumbnail .'getVideoTitle()) . '" />' ."\n";
    • In function echoVideoList: add a letter to the id, because an id must not start with a number: $table .= '' In file index.php, the line


form id="navigationForm"> is not valid, because a form must have an 'action'.


Posted by Jochen Hartmann (jhartmann) on 2008-11-06T13:10:41.000+0000

Thanks for pointing that stuff out. Fixed in r12344.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:29.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


© 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.