DOM 异常:INVALID_CHARACTER_ERR (5)
在 IE9 中运行的一个 aspx 页面中收到以下脚本错误消息。该页面还具有 Telerik 控件。
有人有这方面的经验吗?
Message: DOM Exception: INVALID_CHARACTER_ERR (5)
Line: 3422
Char: 8
Code: 0
URI: http://localhost/AbcWeb/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen%3a183fb741-216d-4765-9b46-4a1f5d38fdd7%3a16e4e7cd%3af7645509%3aed16cbdc%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3a76254418%3bTelerik.Web.UI%2c+Version%3d2010.2.929.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3a183fb741-216d-4765-9b46-4a1f5d38fdd7%3a874f8ea2%3a24ee1bba%3a19620875%3a490a9d4e%3abd8f85e4%3a9cdfc6e7
In one aspx page which is running in IE9 got following script Error message. That page also having telerik controls.
Does anybody have experince with this ?
Message: DOM Exception: INVALID_CHARACTER_ERR (5)
Line: 3422
Char: 8
Code: 0
URI: http://localhost/AbcWeb/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen%3a183fb741-216d-4765-9b46-4a1f5d38fdd7%3a16e4e7cd%3af7645509%3aed16cbdc%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3a76254418%3bTelerik.Web.UI%2c+Version%3d2010.2.929.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3a183fb741-216d-4765-9b46-4a1f5d38fdd7%3a874f8ea2%3a24ee1bba%3a19620875%3a490a9d4e%3abd8f85e4%3a9cdfc6e7
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IE9于2011年3月发布。在您发布的URL中,我看到Telerik版本是2010.2.929.40(2010年9月)。也许这只是旧版 Telerik 和新浏览器的兼容性问题?您可以做的就是获取更新的 RadControls 版本,或者强制您的页面使用 IE8 渲染。有关 IE 兼容性模式的详细信息,请参阅 http: //msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx
TL;DR - 在页面标题中添加以下元标记,看看它是否会生成不同之处:
IE9 was released in March 2011. In the URL you posted, I see the Telerik version is 2010.2.929.40 (September 2010). Perhaps this is just a compatibility issue with the older Telerik version and the new browser? What you can do is either get a newer RadControls build, or force your page to use IE8 rendering. For more information about IE compatibility modes, see http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx
TL;DR - Add the following meta tag in the header of your page and see if it makes a difference:
来自 HTML::DOM::Exception - 异常接口对于 HTML::DOM
您可以看到其原因为
From the HTML::DOM::Exception - The Exception interface for HTML::DOM
you can see the reason for this as