fromDom accepts DOMElement

Fix by @positronium