I'm using the containerless flow control syntax for whether or not I should show an item in a select list when a user goes to an edit modal. I seem to be having troubles with IE8 on getting this to work. From what I have been reading IE8 strips out the comments in the select. Great.
Options I see
- make another call to the service layer getting just the list I need.
- I tried messing with the doctype, but this is sitting in an old legacy app that is using framesets and I can't change it or it will break other parts of the site. The doctype set is: http-equiv="X-UA-Compatible" content="IE=EmulateIE8"
- somehow inject html into the select list maybe from knockout or jquery
Is there a way to make this to work cross browser without having to make the extra service call for the final list?
Here is my code for the select list
<tr>
<td><label for="EditStatus">Status</label></td>
<td><select id="EditStatus" class="" name="EditStatus" data-bind="value: editStatus" >
<option value="" selected>Select...</option>
<!-- ko if: editStatusCanShowActive() -->
<option value="A">Active</option>
<!-- /ko -->
<!-- ko if: editStatusCanShowInactive() -->
<option value="I">Inactive</option>
<!-- /ko -->
<!-- ko if: editStatusCanShowHold() -->
<option value="H">Hold</option>
<!-- /ko -->
<!-- ko if: editStatusCanShowLocked() -->
<option value="L">Locked</option>
<!-- /ko -->
</select></td>
</tr>