This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Expressions and Directives not parsed. "Cannot read property 'childNodes' of undefined" #8137
Closed
Description
I'm getting an error in what looks to be the compile step where the node
is undefined when calling childLinkFn
inside compositeLinkFn
. This was causing some expression and directives to not be evaluated in the document. Changing } else if (childLinkFn) {
to } else if (childLinkFn && node) {
works but I want to know more about the issue. The base module, "app", is bound to body
and it contains a good ammount of SVG elements though I did not find that they were apart of the issue. Also, the page is rather small in that it has less than 5000 DOM elements in it. Is this related to another bug, or is there some other issue I can look for to fix the issue besides the patch I made?
line:6040 of angular.js (1.2.19)
} else if (childLinkFn) {
childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);
}
Error Dump
TypeError: Cannot read property 'childNodes' of undefined
at compositeLinkFn (.../angular.js:6042:36)
at compositeLinkFn (.../angular.js:6042:13)
at compositeLinkFn (.../angular.js:6042:13)
at compositeLinkFn (.../angular.js:6042:13)
at compositeLinkFn (.../angular.js:6042:13)
at compositeLinkFn (.../angular.js:6042:13)
at compositeLinkFn (.../angular.js:6042:13)
at publicLinkFn (.../angular.js:5934:30)
at .../angular.js:1420:27
at Scope.$eval (.../angular.js:12595:28)