How to select text by tag name in element?
<p>I need to select title which is in <code>div</code> wrapped by <code>h2</code>, so i do something like this <code>this.getElementsByTagName('h2')</code> where this is current div in which is h2 - it returns current <code>h2</code> element, but when i trying to get <code>innerHTML</code> or <code>innerText</code> it return null. What am I doing wrong?</p>
