sapo/Ink — pull request #157 by fabiosantoscode (2013-10-07 20:42:09+00:00)
Title: Create element

## Improved Ink.Dom.Element.create.

Now you can use it like this:

var myPanel = InkElement.create('div', {
appendHTML: '',
className: 'classes to add',
insertAfter: anotherPane
};

myPanel.innerHTML; // -> '

myPanel.parentNode; // -> anotherPane

You can call functions in InkElement like you see above, now. Creating elements and sprucing them up becomes hopefully a bit easier. (Notice that the above example also inserts the element in the DOM)

## insertBottom
for those who don't know to use appendChild, a method named like insertTop is available

## setHTML
There are some problems with using e`lm.innerHTML = `, mainly in IE when it involves tables. setHTML fixes those problems.

## HTML manipulation on IE
now you can use appendHTML, prependHTML, setHTML in IE. These will make sure that no `tbody` element is automatically created, and won't crash if you are working inside a table.