-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
Description
Version
2.5.16 / 2.5.17
Reproduction link
https://jsfiddle.net/plasmaeng/ndmjjkho/1/
Steps to reproduce
Running the code below in IE10 will result in the following error:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="vue.js"></script>
</head>
<body>
<div id="app_test">
<form>
<select>
<option v-for="value in L">{{value}}</option>
</select>
</form>
</div>
<script>
var appTest = new Vue({
el: '#app_test',
data: {
L : [ '1', '2' ,'3']
}
});
</script>
</body>
</html>
Here is the error message from IE10.
[Vue warn]: Error compiling template:
<div id="app_test">
<form>
<select>
<option v-for="value in L">{{value}}</option>
</select>
</form>
</div>
invalid expression: Syntax error in Raw expression: v-for="value in L"
invalid v-for alias "" in expression: v-for="value in L"
What is expected?
<option>
is generated from 1 to 3.
What is actually happening?
<option>
is not generated with error !!!
I have persuaded a senior for a long time to introduce Vue.js.
If this problem is solved, we plan to reorganize the site into Vue.js.
Please solve the problem.
dkmin, pbelyaev, SimonBackx, ElForastero, BenSpace48 and 15 morecaoliangsong, SimonBackx, ryanelian, HerrBertling and simonwepSimonBackx