3 ms·Why not make this a method of Element? myElement.findAndReplaceText(/foo/, 'em');by tantalor 14y agoWhy not make this a method of Element? myElement.findAndReplaceText(/foo/, 'em');