Aron Allen
fa88c0e888
removed all references to parentElement, changed to parentNode. updated types
8 years ago
Simon Friis Vindum
3bd0068156
Merge pull request #213 from tdumitrescu/svg-ns-fix
...
Fix Custom Element creation when tag name begins with 'svg'
8 years ago
teddddd
72cdb52e1d
Fix Custom Element creation when tag name begins with 'svg'
...
The check at https://github.com/snabbdom/snabbdom/blob/f79af828/src/h.ts#L37
is too loose, and ends up adding the svg namespace to elements with
tagNames such as svg-icon, which prevents web components lifecycle
callbacks from firing.
8 years ago
Simon Friis Vindum
5e2f6ec9b7
Merge pull request #208 from jbucaran/fix-svg
...
Check that children data !== undefined before calling addNS
8 years ago
Aron Allen
bec0d9ab80
use parentNode instead of parentElement
8 years ago
Jorge Bucaran
00b9224d85
Check that children data !== undefined before calling addNS
...
Otherwise svg is broken.
8 years ago
paldepind
27993fcadf
Typing for module hooks and `h` data
8 years ago
paldepind
9a21abafcb
Cast `elm` once
8 years ago
paldepind
dccd3d4800
Satisfy strict null checks
8 years ago
Simon Friis Vindum
f79af82881
Merge pull request #195 from jlesquembre/css-variables
...
Add support for css variables
8 years ago
paldepind
f552b0e8ed
Tweak types, reduce casting
8 years ago
José Luis Lafuente
ccbf30f0c6
Add support for css variables
8 years ago
Simon Friis Vindum
cd952ac52f
Merge pull request #188 from zhulongzheng/patch
...
Fix bug of updating one child with same key but different sel.
8 years ago
Alexandre Galays
5a5c0dc121
Allow h(sel, data, node) and h(sel, node) shortcut notations
8 years ago
zhulongzheng
8ffb4eb91a
Fix bug of updating one child with same key but different sel
8 years ago
Simon Friis Vindum
8286862fae
Merge pull request #193 from staltz/typescript-migration
...
Migrate source code to TypeScript v2.0
8 years ago
Andre Staltz
091dc5f961
Migrate from CommonJS modules to ES2015 modules
8 years ago
Andre Staltz
499cd37b06
Migrate source code to TypeScript v2.0
8 years ago
Simon Friis Vindum
8079ba7868
Merge pull request #173 from jas-chen/jas-chen-patch-1
...
Fix thunk example
8 years ago
Simon Friis Vindum
c2d397035c
Merge pull request #120 from Risto-Stevcev/master
...
Added fully bundled version
8 years ago
Risto Stevcev
f632a1f944
Updated distribution build
8 years ago
Risto Stevcev
6d03c1a11a
Merge remote-tracking branch 'upstream/master'
8 years ago
Simon Friis Vindum
9b239929f9
Merge pull request #185 from AlexGalays/master
...
README: Add one more example in "Structuring application"
8 years ago
AlexGalays
8f30755a6a
README: Add one more example in "Structuring application"
8 years ago
Simon Friis Vindum
7cdbff4e75
Merge pull request #178 from amirouche/amirouche/doc
...
add «snabbdom in the wild» section
8 years ago
Amirouche
685fb99755
Add `vue.js` and `scheme-todomvc` in “Structuring applications”
8 years ago
paldepind
0fbcfd3278
Version 0.5.4
8 years ago
Simon Friis Vindum
fe7e82dd72
Merge pull request #180 from mkaemmerer/setAttributeNS
...
Support namespaced attributes
8 years ago
Matt Kaemmerer
e1d93dca97
Defer splitting namespace until needed
8 years ago
Simon Friis Vindum
ab34f7bb65
Merge pull request #179 from mightyiam/patch-1
...
Cycle.js instead of Motorcycle.js in README.md
8 years ago
Matt Kaemmerer
7399632795
Add test for namespaced attributes
8 years ago
Matt Kaemmerer
12bd7dd770
Call setAttributeNS instead of setAttribute for keys with a known namespace
8 years ago
Shahar Or
713fb5d559
Cycle.js instead of Motorcycle.js in README.md
8 years ago
Simon Friis Vindum
9a309df04f
Merge pull request #161 from fix-fix/fix-boolean-attributes
...
Don't treat Object.prototype properties as boolean attributes
8 years ago
Simon Friis Vindum
f6887733e7
Merge pull request #176 from LukaJCB/master
...
Updates distribution build
8 years ago
LukaJCB
463cf0304d
Updates distribution
8 years ago
Jas Chen
77ef0b59c4
Fix thunk example
8 years ago
Simon Friis Vindum
51b29139d5
Merge pull request #171 from radarhere/master
...
Fixed typos
8 years ago
Andrew Murray
1b48d39e56
Fixed typos
8 years ago
Simon Friis Vindum
be83096bac
Merge pull request #165 from forceuser/patch-1
...
fixed links in README (paldepind -> snabbdom)
8 years ago
Vitaly Dub
453d982180
fixed links in README (paldepind -> snabbdom)
8 years ago
paldepind
3e3acfcc54
Version 0.5.3
9 years ago
Simon Friis Vindum
4475a6f325
Merge pull request #159 from staltz/master
...
Fix patch() so that the root is patched instead of recreated
9 years ago
fix-fix
95913ee3ca
Don't treat Object.prototype properties as boolean attributes
...
Keep boolean properties in an object without prototype to prevent
false positive checks against attributes with the same name as Object.prototype
properties.
9 years ago
fix-fix
4fe2f5fedf
Add tests for attributes module
9 years ago
fix-fix
e68fb5884c
Add test bundle to gitignore
9 years ago
Andre Staltz
c091c59c59
Fix patch() so that the root is patched instead of recreated
...
Previously, patch(element, vnode) would create a new element every time
for the top-level element, unless the top-level vnode had no id and
className. This is because emptyNodeAt() would create a vnode with sel
equal to the element's tagName, NOT including id and className.
This seems to be just a small fix, however this fix was crucial to get
Web Components (custom elements) working with Cycle.js, because the
custom element's "create" callback was being called infinitely and
recursively, because snabbdom was creating the top-level element every
time, even if the sel of oldVNode and vnode were supposed to be the
same.
9 years ago
paldepind
f178f91dfa
Version 0.5.2
9 years ago
Simon Friis Vindum
45c622cf9b
Merge pull request #146 from katyo/master
...
New implementation of eventlisteners module
9 years ago
K.
4139431794
Optimization invoking handler with multiple arguments.
9 years ago