Coder Social home page Coder Social logo

php-oembed's People

php-oembed's Issues

Script crashes when attempting to call URL with embedding disabled.

What steps will reproduce the problem?
1. Enter a URL with embedding disabled
(http://www.youtube.com/watch?v=yh5ZS5N51ug)
2. Script crashes in YouTubeProvider.class.php when trying to set
$med_content_url 

What is the expected output? What do you see instead?
Script should return gracefully but with no data

What version of the product are you using? On what operating system?
PHP 5 Apache 2

Please provide any additional information below.
I have gotten around this by checking the length of
$xml->getElementsByTagNameNS("http://search.yahoo.com/mrss/","content");
before proceeding, and if there is no length throwing an exception.

This is a different issue, but please note that also the Exception404 class
is not complete as it does not pass on its parameters to the base exception
class in the constructor, and also there is no toString function
implemented so you have an undefined function in your sample when you
attempt to catch the exceptino and call toString.

Original issue reported on code.google.com by [email protected] on 3 Aug 2008 at 3:56

YouTubeProvider::getEmbed() returns invalid HTML

What steps will reproduce the problem?
1. Reference YouTube video, e.g. 
http://www.youtube.com/oembed?maxwidth=500&maxheight=600&url=http://www.youtube.
com/watch%3Fv%3DulcgFppkbLU


What is the expected output? What do you see instead?
Expect valid HTML in the "html" field, but it contains invalid </param> and 
</embed> tags.


What version of the product are you using? On what operating system?
N/A


Please provide any additional information below.

The code is clearly generated in YouTubeProvider.class.php in the function 
YouTubeProvider::getEmbed() at "$myEmbed->html=..."

(There might be additional places)

cf.
PARAM: http://www.w3.org/TR/html401/struct/objects.html#h-13.3.2
EMBED http://dev.w3.org/html5/spec/Overview.html#elements-0
“Void elements only have a start tag; end tags must not be specified for void 
elements.”

Reported to Google here:

http://code.google.com/p/gdata-issues/issues/detail?id=2346

Original issue reported on code.google.com by [email protected] on 6 Oct 2010 at 11:36

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.