Giter Club home page Giter Club logo

Comments (2)

iamcal avatar iamcal commented on July 17, 2024

I don't really see this as a spec issue for two reasons:

  1. It's an accurate example of what a provider returns
  2. The spec does not say that you can't return XHTML

Further more, the spec does not mandate that the HTML must be 'valid' against any specific spec - the goal is for it to work in browsers.

from oembed.

danorton avatar danorton commented on July 17, 2024

If this intends to be a specific-ation, it needs to be specific.

No, it doesn’t say that it can’t return XHTML, but it doesn’t say it can’t return marshmallows, either. It does clearly say, however, “HTML”. If that’s not true, then that’s the problem and not the example. Either way, the example should agree with the details of the specification.

If the goal is “to work in browsers”, that’s a fine goal and perhaps that’s something for a meta section, along with the examples.

Why not simply say that it’s “XHTML 1.0 Strict”? This will inform page designers that they need to include the DOCTYPE declaration and it will inform providers of the level of conformity that clients expect. (Better still would be separate request and response fields with that level of detail, but that's beyond the scope of this particular issue.)

from oembed.

Related Issues (20)

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.