add docs for SVG, and better tests

This commit is contained in:
Leo Horie 2014-04-10 21:36:09 -04:00
parent 1aef5dd942
commit 5c9f9d782f
9 changed files with 100 additions and 9 deletions

View file

@ -5,6 +5,7 @@
### News:
- added regression tests for reported bugs
- added support for SVG
### Bug Fixes:
@ -14,6 +15,8 @@
- fixed caching bug in links w/ config option attached [#43](https://github.com/lhorie/mithril.js/issues/43)
- fixed attribute update bug when an element has both `oninput` and `onkeydown` handlers [#36](https://github.com/lhorie/mithril.js/issues/36)
---
[v0.1.3](/mithril/archive/v0.1.3) - maintenance
### News:

View file

@ -185,6 +185,18 @@ You can use this mechanism to attach custom event listeners to controller method
---
You can use Mithril to create SVG documents (as long as you don't need to support browsers that don't support SVG natively).
Mithril automatically figures out the correct XML namespaces when it sees an SVG island in the virtual DOM tree.
```javascript
m("svg[height='200px'][width='200px']", [
m("image[href='foo.jpg'][height='200px'][width='200px']")
])
```
---
### Signature
[How to read signatures](how-to-read-signatures.md)