Commit graph

284 commits

Author SHA1 Message Date
Pierre-Yves Gerardy
90b67b42f0 Tests: render/test-components tweaks 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
f96319e6f6 Tests: add dummy forEach blocks around sections with components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
a8e5189f0b Tests: factory => closure components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
d7f39a8254 Tests: group together tests with/without components 2017-02-19 02:14:15 +01:00
Leo Horie
732ddf06be Merge pull request #1595 from tivac/issues-1593
Loose comparison when early-outing from setting attributes
2017-02-18 10:05:42 -05:00
Pierre-Yves Gérardy
3f3af74dde Support classes and factories as components (#1339)
* Support classes and factories as components

* Tests for class and factory component support
2017-02-14 22:48:02 -05:00
Pierre-Yves Gérardy
75b20e86e8 test: Re-enable the test suite (#1616) 2017-02-11 14:04:27 -08:00
Leo
632677e00c fix update lifecycle in children of recycled 2017-02-10 10:09:18 -05:00
Leo
0d9a51fe37 fix lifecycle in unkeyed child of recycled keyed 2017-02-09 09:54:48 -05:00
Leo
dc42b60687 #1609 fix lifecycle hooks in children of recycled keyed vnode 2017-02-09 08:31:08 -05:00
Tetsuro Yoshikawa
fdf2985adf Error in IE11 due to setting of type attribute
If you assign an input type that is not supported by IE11 with an
assignment expression, an error will occur.
2017-02-09 22:27:55 +09:00
Gyandeep Singh
390e1fe343 Update: Add elem to parent before adding its children 2017-02-07 21:55:01 -06:00
Pat Cavit
5ab2cf4172 fix: Use loose comparison for non-string values
fixes #1593
2017-02-06 14:46:31 -08:00
maks feltrin
f59402718b check that selector.view is a function 2017-01-23 11:54:35 +01:00
Leo Horie
4fc9368a30 Merge pull request #1516 from tivac/issues/1014
Render false as an empty string
2017-01-07 15:19:16 -05:00
Barney Carroll
e1ea2822c9 Fix state initialisation logic 2017-01-06 17:12:56 +00:00
Barney Carroll
a19eae2792 Avoid creating intermediary constructor in component state creation 2017-01-06 16:59:52 +00:00
Pat Cavit
9f32267259 tests: Update tests for false -> "" behavior 2017-01-05 23:07:47 -08:00
Pat Cavit
6170573c29 feat: Return empty string node for false values
Very specifically doing a strict `false` check here to try & avoid
coercion perf costs.
2017-01-05 23:07:34 -08:00
Barney Carroll
fbb454c6fd Merge branch 'rewrite' into array-isArray 2017-01-04 14:24:07 +00:00
Barney Carroll
3fa771ac28 Test for onbeforeremove delayed resolution 2016-12-30 19:31:51 +00:00
Leo Horie
bedcd8bdbf update docs re:onbeforeremove and clean up 2016-12-26 12:28:13 -05:00
Leo Horie
1222a9a3ab change onbeforeremove and make state inherit from prototype 2016-12-26 12:19:20 -05:00
James
39b6f1e0fe Simplify draw routine 2016-12-18 22:21:53 +11:00
James
15c28066d7 Spy on setAttribute to test customElement support 2016-12-18 22:07:33 +11:00
Leo Horie
de07a54881 add support for route state #1480 2016-12-17 21:50:04 -05:00
Leo Horie
c95629c623 handles noop from undefined to null #1473 2016-12-16 15:21:57 -05:00
Barney Carroll
1050ade7c8 Merge branch 'rewrite' into array-isArray 2016-12-05 19:12:01 +00:00
Tomas Sardyha
3e44c9234c Improve event binding 2016-12-03 11:57:46 +01:00
Leo Horie
3068f2494b beef up tests 2016-12-02 21:24:12 -05:00
Leo Horie
2f7c4983f3 ensure null doesn't displace next siblings 2016-12-02 20:41:07 -05:00
Barney Carroll
deaabb2684 Merge branch 'rewrite' into array-isArray 2016-11-24 16:26:10 +00:00
Barney Carroll
e8669ad5c8 Fix #1421 2016-11-24 12:29:45 +00:00
Barney Carroll
edf3c5eaf7 Tests for contenteditable trust, including failing test for #1421 2016-11-24 12:25:00 +00:00
Barney Carroll
d82d337569 Replace x instanceof Array with Array.isArray(x) 2016-11-24 09:21:27 +00:00
Leo Horie
2b856ed6ac remove unnecessary append 2016-11-23 23:33:57 -05:00
Leo Horie
8eb61a12ab fix diff bug when array is sparse, item type and position and array length change 2016-11-23 22:28:08 -05:00
Vincent Velociter
47db092838 Fix blinking select in chrome when setting select value 2016-11-22 11:14:58 +01:00
Leo Horie
d20e8a880f Merge pull request #1410 from barneycarroll/allow-verbose-class-attribute-declaration
Allow verbose class attribute declaration
2016-11-22 00:31:35 -05:00
porsager
fd484f9766 Fix options inside optgroups (active check is unnecessary) 2016-11-21 09:59:21 +01:00
porsager
af01c3c89f Use correct key name 2016-11-21 02:27:59 +01:00
Rasmus Porsager
848f79c2c7 Don't set same value of options in focused select - fixes #1413 2016-11-21 02:12:56 +01:00
Barney Carroll
6cb9a5cc80 Handle [class] selector properly 2016-11-19 17:44:36 +00:00
Barney Carroll
63f491db88 Initial test case: can't declare class as an attribute in hyperscript selector 2016-11-19 17:32:36 +00:00
Thibault Duplessis
7163d5f744 Fix SVG element update with tag change
Fixes the new failing test.

Before: the updated element is unknown HTML
After: the updated element is an SVG element
2016-11-13 11:31:55 +01:00
Thibault Duplessis
d539c515ea Test SVG update element with tag change
Currently failing. Updating an SVG element which tag changes
actually results in an unknown HTML element.
2016-11-13 11:30:22 +01:00
valtron
6526ff9df6 Fix #1380 2016-11-04 12:30:14 -06:00
Leo Horie
ff7ce37476 allow dom level 1 events to be removed #1385 2016-11-04 12:33:36 -04:00
Leo Horie
bc0a75a6a2 fix regression when empty text node 2016-11-02 15:38:23 -04:00
Leo Horie
8b168deef4 build 2016-11-02 14:57:09 -04:00