XHTML validation, custom namespaces and attributes

前端 未结 4 1265
慢半拍i
慢半拍i 2020-12-09 20:29

I have a website that a client requires to be XHTML valid. They check it using the W3C validator.

I want to add my own namespace and attributes so I can do things li

4条回答
  •  星月不相逢
    2020-12-09 21:23

    I have a website that a client requires to be XHTML valid. They check it using the W3C validator.

    I've had some success with the W3C validator using, not xmlns=, but taking the standard XHTML DTD and adding a few attributes at the end as bobince describes above. I am using this to add attributes used by the PHPTAL templating system, such as

    
    

    I agree that what you need is not XHTML but a superset of XHTML. However, if your client is prepared to test simply by pointing the W3C validator at your URL, then go ahead. For advice, see WDG

提交回复
热议问题