Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8319001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:10:19+00:00 2026-06-08T22:10:19+00:00

In RP Niemeyer ‘s article Knockout.js Performance Gotcha #3 – All Bindings Fire Together

  • 0

In RP Niemeyer‘s article Knockout.js Performance Gotcha #3 – All Bindings Fire Together,
an approach to building a dropdown list is provided:

<select data-bind="value: selectedOption">
    <!-- ko foreach: options -->
    <option data-bind="attr: { value: id }, text: name"></option>
    <!-- /ko -->
</select>

This code is also in a jsfiddle from the article.

http://jsfiddle.net/rniemeyer/QjVNX/

However, when I employed this method of building a select in a project,
it was working just fine, until I tested in Internet Explorer 8. IE8 failed and
was “unable to parse bindings”.

Indeed, running the fiddle from the article in IE8 also results in an error.
Is there a way to build the select in IE8 (I assume IE8 or less)
using knockout’s foreach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:10:21+00:00Added an answer on June 8, 2026 at 10:10 pm

    Yes, that is definitely an issue. I will have to update the post. IE will strip comments from inside the select.

    Here is an issue that we saw on github that is similar: https://github.com/SteveSanderson/knockout/issues/578

    One solution is to use Michael Best’s repeat binding: https://github.com/mbest/knockout-repeat.

    One of the things that it allows you to do is repeat a single element multiple times with a different context. So, in that case it would act similar to the containerless syntax, just without the comments.

    Sample with repeat: http://jsfiddle.net/rniemeyer/QjVNX/

    You can also choose to use the other technique from the article (isolatedOptions), unless you need more control over your option elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to incorporate one of Ryan Niemeyer's jsFiddles http://jsfiddle.net/rniemeyer/WpnTU/ into my own
After watching the Knockout.JS video with Steve Sanderson I decided this would be great
I have been trying to do this for months, and months, and months, and
I am having trouble with the checked binding: clicking on the checkbox doesn't update
I have managed to create a simple wizard based on an answer given by
The idea of this page is, I have a text field which, when you
I am wanting to learn Java, particularly for Android development since I am getting
I have a model with two property: title and content and what I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.