IE9 AngularJs issue:Unable to get value of the pro

2020-02-09 01:43发布

Getting this error when a page is being loaded with angular js in IE9. No issues with Chrom/FF.

"Unable to get value of the property 'nodeName': object is null or undefinedundefined"

Any pointers would help.I thought this was fixed as part of Angular js 1.0.1 release.

标签: angularjs
8条回答
Animai°情兽
2楼-- · 2020-02-09 01:58

I had the same problem and it was because in a <table> I had put some <h3> not wrapped in <tr> and <td>, and also, I have some <br> and <br/> tags, which should better be <br />, for XHTML's sake.

查看更多
SAY GOODBYE
3楼-- · 2020-02-09 02:02

Most probably you messed up with the syntax inside the

<table> <SOMETHING> </table>

I suggest you copy the DOM from browser and do a check on the https://validator.w3.org/check . Look for errors like : document type does not allow element "SOMETHING" here; missing one of "TH", "TD" start-tag .

查看更多
迷人小祖宗
4楼-- · 2020-02-09 02:05

I got this error in IE9 when I accidentally had the following illegal markup.

<table>
   <h3>foo</h3>

    ..... blah

</table>

Maybe run a html lint to make sure you're not violating any rules like that.

查看更多
手持菜刀,她持情操
5楼-- · 2020-02-09 02:06

I got this error on angular-perf.js. If you add an conditional comment to exclude IE, it will work, but you won't be able to use angular-perf in IE.

查看更多
Root(大扎)
6楼-- · 2020-02-09 02:06

For me the culprit was a thead tag in the table:

 <table>
   <thead>bla</thead>
    ...        
</table>
查看更多
forever°为你锁心
7楼-- · 2020-02-09 02:08

for me the issue was << before Back hyperlink. I used htmllint and resolved all illegal mark up error except the ones for angular.

查看更多
登录 后发表回答