Skip to content

Instantly share code, notes, and snippets.

@paulirish
Created February 24, 2012 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulirish/1896401 to your computer and use it in GitHub Desktop.
Save paulirish/1896401 to your computer and use it in GitHub Desktop.
modernizr plugin for api.html5please.com
@nimbupani
Copy link

The url should be .js since it is always a callback. Also should document all the object key/value pairs that will be returned (including the html bit) Either on the index page or perhaps within this gist? Unsure where it should go.

@paulirish
Copy link
Author

Seems the way the API currently works is .html output is same as .js output but with the additional html bit (assuming a callback parameter is specified)

So this way, we offer the html field if they want it. Fine if they dont.. but we dont need to have it be an option in using the API. Just have it an option in the payload.

@paulirish
Copy link
Author

payload should be documented on the index, yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment