innerText in FireFox

by Евгений

HTML

<div class="me"><a stop-start_id="15" class="mLink tok" href="./product_info.php?t=220">спортивные новости / sportnews <span class="tor">(2011, author. / автор)</span> <span class="tor">[block, 12]</span> Free</a></div>

JavaScript

(function() {
    var node = document.querySelector('.me');
    var text = 'innerText' in node ? node.innerText : node.textContent; // Fuck Mozilla
    alert(text);
    
    var matches = text.match(/[a-z]+/gmi);
    alert(matches);
})();