Commit Graph

714 Commits (881d9195d7336fbf274a2543fd57aa2ccff938ae)
 

Author SHA1 Message Date
Steve Lee 741b382696 Added dataset module docs 8 years ago
Simon Friis Vindum 97b5dcb105 Merge pull request #272 from Reon90/patch-2
Add Tung to README
8 years ago
Reon90 33cc60b863 Add Tung to README 8 years ago
Shahar Or (mightyiam) 9dfa5d6f3c type VNode props (fixes #264) 8 years ago
André Staltz 250a5d7635 Merge pull request #269 from jvanbruegge/patch-1
Replace snabbdom-jsx with snabbdom-pragma
8 years ago
Jan van Brügge c7488d784f Replace snabbdom-jsx with snabbdom-pragma
fixes #248
As snabbdom-jsx and snabbdom-jsx-babel hadn't had an update in 7 to 8 month and expecially the former has several bugs I would not advertise to use them.
Snabbdom-pragma works more reliable and thanks to a few PRs by me it works just as good with svg as it does with html
8 years ago
Simon Friis Vindum 020835fa0b Merge pull request #267 from pmros/patch-1
Add Cyclow framework to README
8 years ago
Patricio M. Ros c117be989e Add Cyclow framework to README
Cyclow is a new reactive frontend framework for JavaScript I've created. It uses Snabbdom. Please, consider add it to "Structuring applications" section. Thank you.
8 years ago
Diego Ferreiro Val 4ede863df2 Performance improvement for attribute patching: (#257)
* Performance improvements for attribute patching:
- Avoid call to split and use a object lookup instead
- Simplify the code for `svg` name spaced attributes

* Fix typo and added missing property

* Fixing previous attribute ns assignment

* Refactor NS

* Add fast path for non namespaced elements

* Adding tests
8 years ago
paldepind 6f12fdc9dd Version 0.6.7 8 years ago
paldepind efb203ed21 Update bundle 8 years ago
paldepind dc837b70f9 Version 0.6.6 8 years ago
Simon Friis Vindum e923478dcd Merge pull request #255 from snabbdom/set-boolean-attributes-correctly
Set boolean attributes correctly according to spec
8 years ago
paldepind 511b29a6a6 Set boolean attributes correctly according to spec 8 years ago
Andre Staltz 9910df92b3
Version 0.6.5 8 years ago
Andre Staltz 2135b65b30
Update gulpfile to bundle tovnode.js too 8 years ago
André Staltz 69a6ab7f0b Merge pull request #253 from Steelfish/master
fix tovnode to ensure text elements can be removed
8 years ago
Tom Bakker 1a0adb1c95 fix tovnode to ensure text elements can be removed 8 years ago
Simon Friis Vindum b98f5a91a2 Merge pull request #245 from emilniklas/patch-2
Add Tweed to the list of example projects
8 years ago
Emil Persson 94780592c6 Add Tweed to the list of example projects 8 years ago
André Staltz 9ee3be8b5a Merge pull request #234 from caridy/create-workflow-to-align-with-update
Create element workflow should align with update element workflow
8 years ago
André Staltz 12abb54ee1 Merge pull request #239 from staltz/dataset-fix
Fix dataset module to support old browsers
8 years ago
Andre Staltz c368eb3163
Fix dataset module to support old browsers
At least IE10 does not support the elm.dataset property, so we must use
elm.removeAttribute and elm.setAttribute instead.
8 years ago
Andre Staltz 062936dbf1
Version 0.6.4 8 years ago
André Staltz 549de52bf8 Merge pull request #242 from staltz/fix167
Introduce toVNode() to reconstruct root element as vnode
8 years ago
Andre Staltz a0033a635d
Introduce toVNode() to reconstruct root element as vnode
This commit addresses issue #167. Previously, in snabbdom v0.5.0,
patch(element, vnode) would always create a new element for the root.
This resulted in problems with custom elements (web components), and was
fixed in commit c091c59c59.

However, that commit resulted in bug #167. This meant that snabbdom
would have bugs with server-side rendering, where the root element would
be non-empty (it has many children, rendered on the server-side as
HTML), and the client-side rendering should reuse those existing
children (or clear all the children and recreate them again in patch()).

This commit introduces the function toVNode(elm) that deep-converts an
element (and its tree) to a VNode (and its tree), that is separately
imported and used before calling patch(). toVNode(elm) will look at the
element's attributes and gather those as data for the vnode.

Overall, this commit is important for fixing #167 and enabling
client/server-side rendering in an efficient manner
(destruction/recreation client-side is probably too expensive).
8 years ago
Simon Friis Vindum 9be854410e Merge pull request #232 from nunocastromartins/handle-null-children
Support for null/undefined children
8 years ago
Nuno Martins 367eef52f8 Fix #226. Support for `null`/`undefined` children
This commit makes the patching algorithm ignore `null` and `undefined`
children. This means that, whenever children are iterated, the algorithm
must check for possible `null` and `undefined` values.
8 years ago
André Staltz 3efe5612d7 Merge pull request #229 from pedrosland/feature/comments
Add ability to create comment nodes
8 years ago
Simon Friis Vindum 6ccf6f457d Merge pull request #228 from zhulongzheng/master
Fix compatibility issue of String.prototype.startsWith
8 years ago
Simon Friis Vindum c1d0cdccf9 Merge pull request #237 from jamen/master
Add reference to "snabby"
8 years ago
Jamen Marz b39d1c9de9 Punctuation 8 years ago
Jamen Marz fc3749e1a8 Add reference to snabby 8 years ago
Caridy 6594a20fde Create element workflow to align with update element workflow 8 years ago
zhulongzheng 18ef17db31 Update of #228 8 years ago
Peter Sutherland bb86adef8c Add ability to create comment nodes 8 years ago
zhulongzheng f6eacf3993 Fix compatibility issue of String.prototype.startsWith 8 years ago
Andre Staltz f143528e2e
Version 0.6.3 8 years ago
Andre Staltz 1b0163cb94
Fix modules/module file to be TypeScript source
In order for other TypeScript code to consume snabbdom's TypeScript
correctly, we must "export" the modules/module interface just like
we export other types.
8 years ago
Andre Staltz 3455d1dc21
Version 0.6.2 8 years ago
Andre Staltz ef8b60993b Fix hooks file to be TypeScript source
In order for other TypeScript code to consume snabbdom's TypeScript
correctly, we must "export" the hooks interfaces just like we export
other types.
8 years ago
Simon Friis Vindum e76e06a28e Merge pull request #221 from caridy/better-support-for-data-memoization
[perf-optimization] skip unnecessary work in modules when possible
8 years ago
Caridy 687db9f99b [perf-optimization] skip unnecessary work in modules that can support memoization of the data structure consumed by them 8 years ago
paldepind 673e2a7e7b Merge branch 'use-typeof' 8 years ago
paldepind e570f4cf03 Version 0.6.1 8 years ago
paldepind 19b135b1f5 Add npmignore 8 years ago
paldepind 0483640fa3 Version 0.6.0 8 years ago
Simon Friis Vindum 7da866270a Merge pull request #210 from aronallen/fix/ie11svg
use parentNode instead of parentElement
8 years ago
Aron Allen d8bd32f1e5 updated description of test 8 years ago
Aron Allen 166b8eca23 added test 8 years ago