DOM bindings for Derby
clear(): clear markers, components and event listenersuid(): get an unique idgetMarkers(): returns function, that templates or tags depending on what browser we are dealing withgetAttr(id, name): get attribute by element idsetAttr(id, name, val): set attribute by element idgetProp(id, name): get property by element idsetProp(id, name, val): set property by element idgetHtml(id): get inner html by element idsetHtml(id, html): set inner html by element/markers idappend(id, html): append html to element/markers by idprepend(id, html): prepend html to element/markers by idinsert(id, html, index): insert html at index into element/markers by idremove(id, index): remove node at index from element/markers by idmove(id, from, to, howMany = 1): move nodes at index within element/markers by id
- IE 6-7 SVG manipulation
- IE < 9
<script>insertion into empty div see metamorph - IE loosing some tags see meteor (mb the same thing as above)
- IE loosing comments in
<select>and<option>see meteor - IE
<select>value from attribute see meteor
You need to install grunt globally:
$ npm i -g gruntRun auto testing:
$ grunt testTest opens Chrome by default
You can open localhost:8080 in any browser to run automated tests
Open local file test/mocha.browser.html in IE 6
You can find borwser tests in test/Saddle.coffee
IE 6.0: SVG fails
IE 7.0: SVG fails
IE 8.0: SUCCESS
IE 9.0: SUCCESS
Opera 11.50: SUCCESS
Opera 12.11: SUCCESS
Safari 5.1: SUCCESS
Safari 6.0: SUCCESS
Firefox 3.0: SUCCESS
Firefox 12.0: SUCCESS
Firefox 18.0: SUCCESS
Chrome 24.0: SUCCESS
Chrome 26.0: SUCCESS
Android: SUCCESS
iOS: SUCCESS