views:

197

answers:

1

I'm actually gettings these errors and I cannot let them fixed. I need some help. I can't found anything on Google, sorry.

there is no attribute "href"

<div id="audio" href="http://domain.com/mp3/Green Day - A Quick One While Hes…

there is no attribute "xid"

<div style="margin: 0px 100px;"><fb:comments xid="music52"></fb:comments></div>

element "fb:comments" undefined

<div style="margin: 0px 100px;"><fb:comments xid="music52"></fb:comments></div>
+2  A: 

You cannot validate this against the standard (x)HTML DocTypes. If anything, this validates against XHTML2, e.g.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN"
         "http://www.w3.org/MarkUp/DTD/xhtml2.dtd"&gt;

This should be the only xHTML flavor that allows having href attributes on any element and that was supposed to have namespace support. Unfortunately, it is also dead.

The only thing you could do is find a schema file or DTD and then validate them as XML, for instance with

  • DOMDocument::schemaValidate — Validates a document based on a schema
  • DOMDocument::schemaValidateSource — Validates a document based on a schema
  • DOMDocument::validate — Validates the document based on its DTD

The alternative would be to not to use the XFBML tags. See

Gordon