Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
IE 8 unknown runtime error when setting directive template #3050
This only happens on IE 8 (works fine in IE 9, IE 10, Firefox, Chrome, Safari). The JQLite code of angular.js is throwing an "unknown runtime error" in the html() method on the line: (line 1976 in angular.js 1.1.5)
The value is the html string for the template of a directive. In the debugger, I tried:
which also threw an "unknown runtime error"
The nodeName for the element is the name of my directive XX-MYDIRECTIVE
I'm manually calling the angular bootstrap method on the html page, which has a directive element. Here is the call stack:
I found the workaround to the issue. If you change the directive from an element to an attribute, a runtime error will not be thrown. It seems that IE 8 does not like custom tag names such as and will throw a "unknown runtime error" when you attempt to set the innerHTML of a custom tag.