Fix _elementOrElementsByType matching