artlung / Open-Graph-Protocol-Plugin-for-WordPress

WordPress Plugin that adds Open Graph Protocol Metadata to your blog. To download a copy, click "Download Source" and choose the zip file. Unzip, and place the resulting folder in your WordPress installation under wp-content/plugins/
http://lab.artlung.com/open-graph-protocol-tools/
32 stars 4 forks source link

Namespace declaration missing #1

Closed tobyink closed 12 years ago

tobyink commented 14 years ago

This plugin currently does not add xmlns:og="http://opengraphprotocol.org/schema/ to the <html> element. Perhaps Wordpress' API doesn't allow plugins to do that? If not, then adding the xmlns:og attribute to each <meta> element ought to work fine.

artlung commented 14 years ago

I saw that on the opengraphprotocol.org page. Is it strictly necessary? My understanding of namespaces is that adding it like that would allow adding something like:

<og:tag attribute="value">

but the opengraphprotocol does not do that.

Adding attribute values to the html is not something I can do, but I can add a note telling users of the plugin that it exists and they should consider adding it. But I'm not sure it's /required/.

Thanks so much for the feedback!

tobyink commented 14 years ago

Sorry about the slow reply. It is strictly necessary - the question is whether you want to be strict or not though!

artlung commented 12 years ago

Added instructions about namespace from http://ogp.me/ .. if you have further ideas for better or more complete instructional text please feel free to add as a comment or fork and edit yourself. Thanks!