Mobile app version of vmapp.org
Login or Join
Phylliss660

: Why does Open Graph use As far as I can tell, property is not a valid attribute of the <meta> tag in any of HTML 3, 4, XHTML-Transitional or XHTML-Strict. So why does the Open Graph

@Phylliss660

Posted in: #Facebook #Xhtml

As far as I can tell, property is not a valid attribute of the <meta> tag in any of HTML 3, 4, XHTML-Transitional or XHTML-Strict. So why does the Open Graph Protocol (and Facebook's API docs) specify example code like this?

<html xmlns:og="http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />


This doesn't validate. Changing property to name does validate, and I can verify that, at least on Facebook, it still works as intended. So why do they use property in their example code?
opengraphprotocol.org/

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Phylliss660

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

They define their own custom DTD (definition of DTD). This allows them to create their own extension to the HTML standard and as long as they follow their own DTD they are technically ok. It won't be valid HTML but it doesn't have to be.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme