以下 XHTML 代码不起作用:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/dojotoolkit/dijit/themes/tundra/tundra.css" />
<link rel="stylesheet" type="text/css" href="/dojotoolkit/dojo/resources/dojo.css" />
<script type="text/javascript" src="/dojotoolkit/dojo/dojo.js" djConfig="parseOnLoad: true" />
<script type="text/javascript">
dojo.require("dijit.form.ValidationTextBox");
dojo.require("dojo.parser");
</script>
</head>
<body class="nihilo">
<input type="text" dojoType="dijit.form.ValidationTextBox" size="30" />
</body>
</html>
在 Firebug 中,我收到以下错误消息:
[异常...“组件返回失败代码:0x80004003(NS_ERROR_INVALID_POINTER)[nsIDOMNSHTMLElement.innerHTML]”nsresult:“0x80004003(NS_ERROR_INVALID_POINTER)”位置:“JS 框架 :: http://localhost:21000/dojotoolkit/dojo/dojo。 js :: 匿名 :: 第 319 行”数据:无] http://localhost:21000/dojotoolkit/dojo/dojo.js第 319 行
知道有什么问题吗?