chengchao
4d680794a5
fix(parser): the first newline following pre and textarea tag should be ignored ( #6022 )
...
fix #6022
2017-07-10 21:42:00 +08:00
wenlu.wang
e4da249ab8
feat: add `comments` option to allow preserving comments in template ( #5951 )
...
close #5392
2017-06-30 08:56:23 +08:00
Evan You
303780acd2
make function compilation reusable
2017-05-15 15:35:45 +08:00
Evan You
d8315c42ef
do not decode text inside script/style tags ( fix #5526 )
2017-04-27 12:23:48 +08:00
Evan You
c24f492543
fix edge test case
2017-04-26 18:24:38 +08:00
AchillesJ
c6ab2e06d4
warn when template contains text outside root element ( #5164 )
...
* warn when template contains text outside root element
* fix warned flag
* make warn once a function
2017-03-13 15:42:46 +08:00
Herrington Darkholme
8fca83d6b6
fix #5121 : parse content in textarea as plaintext ( #5143 )
...
* fix #5121 : parse content in textarea as plaintext
* update comment
2017-03-10 09:39:38 +08:00
YOU
e12d96a132
chore(parser.spec): fix an IE conditional test with a typo ( #5102 )
...
* chore(parser.spec): fix an IE conditional test with a typo
* check children.length is 0, instead of undefined
2017-03-08 10:17:08 +08:00
YOU
61930e0cc6
chore(test): fix some typos ( #5101 )
2017-03-06 09:50:49 +01:00
Evan You
f59aef08e6
further improve end tag check ( close #4408 )
2017-02-14 15:47:40 -05:00
Evan You
af619151c6
improve other parser warnings
2017-02-06 19:32:17 -05:00
Evan You
cfb4d7c655
improve parser warning for tags with no matching close tag
2017-02-06 19:18:50 -05:00
chengchao
e02fb1294d
preserve the only whitespace child ( #4760 )
2017-01-20 09:42:54 -05:00
Evan You
ab0a2259e0
Revert "also bind static special attrs as props ( fix #4530 )"
...
This reverts commit b3ebfef91d .
2017-01-12 20:58:32 -05:00
Evan You
01f533db1a
avoid duplicate whitespace nodes caused by comments
2016-12-23 20:08:51 -05:00
Evan You
de220a635d
ignore text nodes between v-if conditions ( fix #4533 )
2016-12-22 23:40:10 -05:00
Evan You
b3ebfef91d
also bind static special attrs as props ( fix #4530 )
2016-12-22 22:32:57 -05:00
Evan You
1903df4991
rename ASTElement node.conditions -> node.ifConditions, avoid mutating it during codegen ( close #4317 )
2016-11-25 10:06:21 -05:00
Evan You
b7946a4b22
wip: fix tests with expected warnings
2016-11-24 12:00:51 -05:00
Evan You
cc4f4c5bda
v-elseif -> v-else-if
2016-11-21 15:25:08 -05:00
chengchao
af78bcf916
Support v-if multiple conditions ( #4271 )
...
* add if conditions
* update v-if conditional
* update test
* update test case
* add test case
* update if conditions
* update walkThroughConditionsBlocks
* update v-elseif
* update v-once with v-elseif test case
* update style with v-elseif
* update flow type
2016-11-21 15:24:54 -05:00
Evan You
5d36e8bc1b
fix IE conditional comments ( fix #4125 )
2016-11-04 19:48:11 -04:00
Evan You
e2a361a052
forgivingly handle < inside template plain text ( fix #4012 )
2016-11-03 00:53:49 -04:00
Chris Fritz
84918577d2
fix problematic use of 'deprecated' in warnings ( #4043 )
2016-11-01 11:17:25 -04:00
Evan You
3f8fa43819
fix duplicate attribute test case in IE
2016-10-13 05:19:51 -04:00
Chris Fritz
de199f9bbd
allow 2 root nodes with v-if and v-else ( #3887 )
...
* allow 2 root nodes with v-if and v-else
* fix compiler-options test with less specific text
2016-10-09 16:33:23 -04:00
Evan You
8ef603b7c3
test <template> key warning, fix coverage
2016-09-30 14:19:16 -04:00
Brandon Surowiec
0f8ad06b2c
Fix Spelling ( #3496 )
...
* Fix Spelling
* Fix other instances.
2016-08-22 23:03:00 +02:00
Evan You
35ee5b105e
remove staticAttrs
2016-07-29 10:45:43 -04:00
Chris Fritz
3e06c575cb
Allow 2 root nodes with v-if and v-else ( #3329 )
...
* allow 2 root nodes with v-if and v-else
* apply root constraints to 2nd root element with v-else
2016-07-28 23:40:18 -04:00
Evan You
04e2b53cd7
properly perserve whitespace in <pre> ( fix #3341 )
2016-07-28 18:50:05 -04:00
Evan You
bee95f8c08
Revert "remove parser pre/post transforms (not used)"
...
This reverts commit 2e7a792308 .
2016-07-26 22:23:54 -04:00
Evan You
2e7a792308
remove parser pre/post transforms (not used)
2016-07-19 18:43:33 -04:00
Evan You
39bcd60a33
remove no longer necessary specs
2016-07-13 12:21:47 -04:00
Evan You
579ff4ddbc
fix nested svg namespaces
2016-07-03 14:51:14 -04:00
Evan You
feee9ef6f6
remove camelCase tag warning
2016-06-28 17:41:44 -04:00
Evan You
e3fb6fe834
remove <render> tag
2016-06-17 13:25:34 -04:00
Evan You
cec833a9e8
implement new v-for iterator syntax (ref: #3073 )
2016-06-13 14:55:53 -04:00
Evan You
3edfc4518d
support postTransform as well
2016-06-08 17:33:33 -04:00
Evan You
3ddef0c53c
add preTransform option for compiler modules
2016-06-08 16:36:01 -04:00
Evan You
8924e91abc
v-pre nodes should use staticAttrs
2016-06-08 16:22:51 -04:00
Evan You
e236f80fa0
parser for single-file components
2016-06-07 21:36:00 -04:00
Evan You
93501f2002
transition refactoring
2016-06-02 22:29:54 -04:00
Evan You
48a0d29e35
rename track-by -> key
2016-06-02 13:43:53 -04:00
Evan You
0a15d9ee27
add root element warnings
2016-05-23 19:03:02 -04:00
Evan You
82c76175ec
use extend instead of Object.assign() since the latter is not avaialble in phantomjs
2016-05-20 11:46:51 -04:00
Evan You
f5297358af
fix linting problems
2016-05-20 11:42:58 -04:00
Evan You
600ebfbaa4
simplify compiler tests
2016-05-19 23:15:58 -04:00
Evan You
6fe268874c
improve codegen for smaller generated code size
2016-05-18 20:57:51 -04:00
Jinjiang
1d45c4b9e9
extract style/class/transition as web platform compiler modules ( #2885 )
...
* extract style/class/transition as web platform compiler modules
* fixed genData bug
* made module.staticKeys optional in compiler
* changed module.genData just return additional data in compiler
* cached genStaticKeys in compiler optimizer
2016-05-16 21:02:13 -04:00