add docs for SVG, and better tests
This commit is contained in:
parent
1aef5dd942
commit
5c9f9d782f
9 changed files with 100 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue