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条回答
够拽才男人
2楼-- · 2020-02-09 02:11

The problem was:

<table>
    <tr ng-repeat="p in list">
        <td>{{p.f1}}</td> {{p.f2}}
    </tr>
<table>

Remember <tr> should contain only <td> tag not any another tag or raw text according to the HTML specification. Modern browsers (including IE 10) can deal with that mistake but in IE 9 angular raises an error.

查看更多
兄弟一词,经得起流年.
3楼-- · 2020-02-09 02:15

For me, it was a case of having a table row inside of a div. I was fine as soon as I removed the intervening div.

<table>
  <div>
    <tr></tr>
  </div>
</table>
查看更多
登录 后发表回答