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

Ko is undefined in IE9 using select and containerless flow #443

Closed
jonswaino opened this issue Apr 23, 2012 · 2 comments
Closed

Ko is undefined in IE9 using select and containerless flow #443

jonswaino opened this issue Apr 23, 2012 · 2 comments

Comments

@jonswaino
Copy link

Having difficulty with what appears to be a bug using ko in IE9 with select option bindings and containerless flow:

Jsfiddle: http://jsfiddle.net/U7qQZ/2/

This works fine in Chrome/FF but not in IE9.
Any help appreciated...

@mbest
Copy link
Member

mbest commented Apr 24, 2012

IE doesn't like comments inside select and strips them out. You have two options that I can think of: use a binding on the select that supports optgroup (like #94), or replace foreach with a binding that doesn't require comments (like repeat).

Here's your example updated to use repeat: http://jsfiddle.net/mbest/U7qQZ/3/

@jonswaino
Copy link
Author

ok great, thanks for this. I ended up using the repeat binding.

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

No branches or pull requests

2 participants