Jump to content

Recommended Posts

Posted

Hi there,

At http://ogp.me/# it shows the following "og" namespace definition in the html element.

<html prefix="og: http://ogp.me/ns#">

If I want to specify the Facebook App Id, I also need to define the "fb" namespace too. However, I can't see any definite HTML5 based example of how to do this. So, I think the following should be OK but would appreciate any advice around this:

<html lang="en-GB" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#" >

Sorry about the bizarre colours! :)

Thanks.

Posted

If ProCache is still stripping out the head I would consider that a bug. An element with attribute should never be stripped, if it's content is not the default content (e.g. <input type="text"> == <input>).

  • Like 1
Posted

This is the error message I get with the attributes on the <head> element and it works OK without any attributes.

Warning: preg_replace(): Compilation failed: missing ) at offset 17 in /Applications/MAMP/htdocs/iconic/ProcessWire/site/modules/ProCache/ProCache.module on line 1065

If I put these attributes on the <html> element, the page generates OK although I don't know whether this is suboptimal so far as Facebook is concerned.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...