Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates containing javascript:void(0) cause errors in retrieving templates #30

Open
mdoleh opened this issue May 7, 2014 · 0 comments

Comments

@mdoleh
Copy link

mdoleh commented May 7, 2014

This is a bug in IE 9. When a template contains javascript:void(0) the preprocessor has an issue where it won't retrieve the template. For example, an external template contains the following:

<a href="javascript:void(0)" ng-click="buttonClicked()">Click Me</a>

Karma will return an error as follows:

TypeError: Unable to get value of the property 'then': object is null or undefined

However, clicking the DEBUG button in the browser Karma is using and checking the browser's console (F12 developer tools) shows the following:

LOG: SUCCESS ButtonsDirectives NavigationDirective Should render a loading message

I can consistently reproduce this as long as javascript:void(0) is in the template. Removing it seems to correct the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants