changed parser typehint from DomElement to DomNode

refs #13