I’m using a doctype with custom attributes to validate XHTML. Here is my Doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
[
<!ATTLIST div data-localized CDATA #IMPLIED>
]>
But the problem is that it’s displaying “]>” when I load my page on the browser. The XHTML validates fine.
Check out the article in A list apart –
It points out a solution that involves using a separate DTD file (which will fail in W3C validator…)