or you could just set `element = new Element(element.ELEMENT, this)` and eliminate the extra return (assuming `this` points to the correct thing here, are you sure it does? i have a suspicion it should be `self._wd`)