IE9 AngularJs 问题:无法获取属性“nodeName"的值:对象为 null 或 undefinedundefined
问题描述:
在 IE9 中使用 angular js 加载页面时出现此错误.Chrom/FF 没有问题.
Getting this error when a page is being loaded with angular js in IE9. No issues with Chrom/FF.
无法获取属性 'nodeName' 的值:对象为 null 或 undefinedundefined"
"Unable to get value of the property 'nodeName': object is null or undefinedundefined"
任何指针都会有所帮助.我认为这已作为 Angular js 1.0.1 版本的一部分修复.
Any pointers would help.I thought this was fixed as part of Angular js 1.0.1 release.
答
我在 IE9 中遇到了这个错误,因为我不小心有以下非法标记.
I got this error in IE9 when I accidentally had the following illegal markup.
<table>
<h3>foo</h3>
..... blah
</table>
也许可以运行 html lint 以确保您没有违反任何此类规则.
Maybe run a html lint to make sure you're not violating any rules like that.