<p>The following XHTML code is not working:</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;

&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
    &lt;link rel="stylesheet" type="text/css" href="/dojotoolkit/dijit/themes/tundra/tundra.css" /&gt;
    &lt;link rel="stylesheet" type="text/css" href="/dojotoolkit/dojo/resources/dojo.css" /&gt;
    &lt;script type="text/javascript" src="/dojotoolkit/dojo/dojo.js" djConfig="parseOnLoad: true" /&gt;
    &lt;script type="text/javascript"&gt;
        dojo.require("dijit.form.ValidationTextBox");
        dojo.require("dojo.parser");
    &lt;/script&gt;
&lt;/head&gt;

&lt;body class="nihilo"&gt;
    &lt;input type="text" dojoType="dijit.form.ValidationTextBox" size="30" /&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>In Firebug I get the following error message:</p>

<blockquote>
  <p>[Exception... "Component returned failure code: 0x80004003
  (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML]"  nsresult:
  "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame ::
  <a href="http://localhost:21000/dojotoolkit/dojo/dojo.js" rel="nofollow noreferrer">http://localhost:21000/dojotoolkit/dojo/dojo.js</a> :: anonymous :: line
  319"  data: no] <a href="http://localhost:21000/dojotoolkit/dojo/dojo.js" rel="nofollow noreferrer">http://localhost:21000/dojotoolkit/dojo/dojo.js</a> Line
  319</p>
</blockquote>

<p>Any idea what is wrong?</p>

[{'answer_id': 48552, 'author': 'John Smithers', 'author_id': 1069, 'author_profile': 'https://Stackoverflow.com/users/1069', 'pm_score': 0, 'selected': False, 'text': '<p>Well, what is dojo.js doing at line 319?</p>\n'}, {'answer_id': 48554, 'author': 'Brian Gianforcaro', 'author_id': 3415, 'author_profile': 'https://Stackoverflow.com/users/3415', 'pm_score': 1, 'selected': False, 'text': '<p>Where you import dojo.js:</p>\n\n<pre><code>&lt;script type="text/javascript" src="/dojotoolkit/dojo/dojo.js" djConfig="parseOnLoad: true"/&gt;\n</code></pre>\n\n<p>It should be:</p>\n\n<pre><code>&lt;script type="text/javascript" src="/dojotoolkit/dojo/dojo.js" djConfig="parseOnLoad:true"&gt;&lt;/script&gt;\n</code></pre>\n\n<p>Have fun with dojo, it\'s can do some cool stuff.</p>\n\n<p>Brian Gianforcaro</p>\n'}, {'answer_id': 48895, 'author': 'Brian Gianforcaro', 'author_id': 3415, 'author_profile': 'https://Stackoverflow.com/users/3415', 'pm_score': 0, 'selected': False, 'text': '<p>Are you sure your pointing to the right path in the script tags?</p>\n\n<p>I put it up on the web, check it out.</p>\n\n<p>The left is Dojo parsed input, the right is an regular old input. \n<a href="http://tncrocks.com/test/stackoverflow/" rel="nofollow noreferrer">Link</a></p>\n\n<p>I\'m on OS X, using firefox 3.0.1 I get no errors under firebug. </p>\n'}, {'answer_id': 49259, 'author': 'simon', 'author_id': 4875, 'author_profile': 'https://Stackoverflow.com/users/4875', 'pm_score': 2, 'selected': False, 'text': '<p>The problem seams to be the ending of the file...</p>\n\n<ul>\n<li>If I name the file <a href="http://www.tasix.ch/Greter/test2.html" rel="nofollow noreferrer">test2.html</a> everything works.</li>\n<li>If I name the file <a href="http://www.tasix.ch/Greter/test2.xhtml" rel="nofollow noreferrer">test2.xhtml</a> I get the error message.</li>\n</ul>\n\n<p>The diverence between the two seams to be the Content-Type in the response header from apache.</p>\n\n<ul>\n<li>For .html it is Content-Type    text/html; charset=ISO-8859-1</li>\n<li>For .xhtml it is Content-Type   application/xhtml+xml</li>\n</ul>\n'}, {'answer_id': 289725, 'author': 'Serxipc', 'author_id': 34009, 'author_profile': 'https://Stackoverflow.com/users/34009', 'pm_score': 0, 'selected': False, 'text': '<p>There are some similar tickets on the dojo trac page:</p>\n\n<p><a href="http://trac.dojotoolkit.org/search?q=xhtml+ns_error&amp;noquickjump=1&amp;ticket=on" rel="nofollow noreferrer">http://trac.dojotoolkit.org/search?q=xhtml+ns_error&amp;noquickjump=1&amp;ticket=on</a></p>\n\n<p>Probably you are facing a bug and you will need to fill a new ticket.</p>\n'}, {'answer_id': 319678, 'author': 'nsdel', 'author_id': 40807, 'author_profile': 'https://Stackoverflow.com/users/40807', 'pm_score': 1, 'selected': False, 'text': '<p>The problem is that innerHTML is an unofficial property that is not part of the W3C specifications, and thus may or may not work depending upon the browser, especially when the page is being rendered as a XHTML file rather than a HTML file. See <a href="http://domscripting.com/blog/display/35" rel="nofollow noreferrer">here</a> and <a href="http://www.quirksmode.org/bugreports/archives/2004/11/innerhtml_in_xh.html" rel="nofollow noreferrer">here</a>.</p>\n'}]
['https://Stackoverflow.com/questions/48497', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4875/']