<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:q="http://localhost/test-ns" xml:lang="en-gb" lang="en-gb">
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<q:test>This is a test tag</q:test>
BUT when I try to read the document in use PHP's DOMDocument::loadHTMLFile(), I get the warning Namespace prefix q is not defined.
This has been there for a while and so far I have just switched the warning off because I don't know how to fix it ... but I would love to fix it and I am flat out of ideas on what is wrong with the markup!
you should try reading it as XML, since there is no namespace in HTML.
The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.