Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-10-2010, 01:01 PM   PM User | #1
mbaker
Regular Coder

 
mbaker's Avatar
 
Join Date: Jan 2010
Location: Burford, Oxfordshire, United Kingdom
Posts: 249
Thanks: 1
Thanked 39 Times in 39 Posts
mbaker is an unknown quantity at this point
Facebook, the OpenGraph Protocol & (in)Valid HTML

Hi,

Out of now where, in about the last month, the OpenGraph Protocol has been developed by Facebook and others. It is used in support of the Facebook like widget.

Unfortunately the OpenGraph Protocol and all the software I've seen that supports the OpenGraph Protocol requires the use of invalid meta tags, such as:

<meta property="og:email" content="me@example.com" />

The invalid part being that the meta tag has no property attribute. In place of property, it should use the name attribute.

I think use of the OpenGraph Protocol is likely to spread like wildfire. There is already a wordpress plugin.

Is anyone here willing to work with me in contacting those involved, and asking them very politely, to modify the OpenGraph Protocol, or at least the supporing software, so that it will work with valid (x)HTML?

For background on the FaceBook like widget see: http://developers.facebook.com/docs/opengraph
For background on the OpenGraph Protocol, including all the implementations, see: http://opengraphprotocol.org/

Apart from the backers of the OpenGraph Protocol itself, the implementors should also be contacted.

A suitable message to an implementor might go along the lines of:
- - - - - - 8< - - - - - -
Could you please modify your OpenGraph implementation so that it will work with pages written in valid HTML.

An example of such a page using valid meta tags with OpenGraph data is available at: http://www.html-tags-guide.com/
- - - - - - 8< - - - - - -

Michael.
__________________
- Michael Baker - HTML Tags Guide - Reference and Tutorials
- Like voting, validate early, validate often - W3C HTML Validator - W3C CSS Validator
- Wot? me cynical? no, its just if you vote, er, validate early, you have more chance of validating often.

Last edited by mbaker; 05-11-2010 at 01:21 AM..
mbaker is offline   Reply With Quote
Old 05-10-2010, 09:30 PM   PM User | #2
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
Can meta take property in the current HTML5 draft?
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Old 05-11-2010, 01:26 AM   PM User | #3
mbaker
Regular Coder

 
mbaker's Avatar
 
Join Date: Jan 2010
Location: Burford, Oxfordshire, United Kingdom
Posts: 249
Thanks: 1
Thanked 39 Times in 39 Posts
mbaker is an unknown quantity at this point
Thanks to a swift reply from one of the implementers of software to parse OpenGraph metadata, I've realised that OpenGraph is based on RDFa and that RDFa can be used in HTML4.01 Transitional by using a DTD & Doctype developed for the purpose:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa-1.dtd">

If you know anyone involved with the http://opengraphprotocol.org/ website, you might suggest to them that providing advice on this on their website might save others from chasing down rabbit holes that I've been doing for the past 24 hours.

Michael.
__________________
- Michael Baker - HTML Tags Guide - Reference and Tutorials
- Like voting, validate early, validate often - W3C HTML Validator - W3C CSS Validator
- Wot? me cynical? no, its just if you vote, er, validate early, you have more chance of validating often.

Last edited by mbaker; 05-11-2010 at 01:37 AM..
mbaker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:02 AM.


Advertisement
Log in to turn off these ads.