-
Notifications
You must be signed in to change notification settings - Fork 154
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
Error: Invalid Argument in IE11 #59
Comments
Same problem trying to build inside WinJS app |
I have the same problem in IE 8, 9, 10 and 11. Is there any development on this? I've done some research and it seems the problem is with the nodeValue property of the TextNode object in IE. In the reference here it says "You cannot use expressions to change the nodeValue of a TextNode object.", whatever that means. Meanwhile a possible workaround is to use the filter instead of the directive.
|
This is tested in ie9/win7 and ie10/win8 |
this is now also tested in ie11 <3 |
Great, it's working now. Thanks! |
good to hear. @rubenv any interest in merging this? |
@jeffrom Not in its current form: it breaks CI and testing. Use I'm also not sure that I want to introduce browser-specific behavior. User-agent sniffing is a recipe for disaster. Surely there must be a proper way to do this for everyone? That being said, if we can't find anything better, I might accept it anyway, as there's a rewrite of the directive coming up (to fix some larger issues). Consider the current |
Yea I hate ua sniffing as well but in this case I'm not really sure what On Friday, July 18, 2014, Ruben Vermeersch [email protected] wrote:
|
All set. Also there is another commit now that does this without browser sniffing. Basically it does what jQuery.fn.html does, which is try/catch. I have a feeling it wont work, since if it did, .html would have worked already in the first place, but i'll test it out when i get home. |
Anyone experiencing issues with IE, could you please test the xss-rewrite branch? It should fix your problems. Atleast it does for me on IE 11 (and Chrome, Safari and Firefox). This will eventually become version 1.0, but I'd like some testing first. |
Version |
Completely rewritten directive has the same issue :( |
I've based this on How come it works there and not here? |
I've been able to reproduce this on IE11 (only on Anyway, solution by @princed works, so I'll just go for that one. Still begs the question: why does this work with |
Fix released as |
In my case it does reproduce on
Because of IE? Thanks for the quick fix! |
My solution is to mark the translate directive as terminal. |
@DOrlov77 the translate directive is terminal, although there's an open PR to change that. |
For me it happens again in IE11. |
When using interpolation like:
In IE11 I get the following error:
The error is shown only If there are variables in the translated text.
Any ideas what is causing it?
The text was updated successfully, but these errors were encountered: